scripts/
- Utility scripts written innode
to automate common taskscopyVendor
- Copies the vendor files fromnode_modules
towww
so that it can be deployed to a server as a standalone folderserve
- Starts a local web server to serve thewww
folder supporting hot reloading on file changes
types/
- Typescript type definitions. While we DO NOT use any TypeScript in the project, we do use the type definitions with JSDoc to get better code completion in our IDEs. Files in this folder only help the developers at development time and are not included in the bundle (www
) we ship to the users.www/
- The actual source code of the project written in pure HTML5, CSS and JS. The folder is ready to be deployed to any web server as a static site. Theindex.html
file is the entry point of the application.
The package.json
file contains the project metadata and the dependencies. The package-lock.json
file pins the actual
versions of the dependencies that are installed. The package-lock.json
file is automatically generated and should not
be edited manually. Distribution files from the node modules installed after npm install
are copied to www
by
executing npm run build
. This step is required only after you add / change a dependency. In this case it is likely
that you also need to edit scripts/copyVendor
to define the source path under node_modules
and the destination path
in www
.
In order to have a consistent code style, we use Prettier to format the code. The configuration
is defined in .prettierrc.json
. You should format your code before committing it to the repository by executing
npm run format
.