When running npm run build
the following actions take place:
- All the JSON files in
/data
are combined into a single JSON list and put in the file/dist/allData.json
. - Each individual file in
/data
is used as the data to expand the/templates/page.html
template, and the resulting file is written into/build
. - The files in
/pages
are copied over to the/build
directory. - Parcel is then run over all the files in the
/build
directory to produce final files in/dist
.
./data
- The raw JSON files../css
- CSS files../src
- TypeScript source files../templates
- Handlebars templated HTML files../pages
- Fixed pages, likeindex.html
../dist
- The final output directory. (Not checked in.)./build
- Staging are for files passed into Parcel. (Not checked in.)