-
-
Notifications
You must be signed in to change notification settings - Fork 0
Temme build
Oussama Essamadi edited this page Dec 29, 2018
·
1 revision
Building Temme on your own couldn't be any easier, simply by running the following npm script, you'll be set in seconds:
npm run prod
That will:
- Clean up the package by removing any old builds (
build
anddist
folders). - Compile all of the typescript code into javascript as commonjs modules and place them under the
build
folder. - Bundle your source code under a
temme.js
file and place it in thedist
folder. - Update the temme.js file that the docs webpage depends on.
There are also other npm scripts available for you:
Command | Description |
---|---|
clean | Deletes the dist and build folders. |
build | Compiles the typescript code into es6 modules. |
bundle | Bundles the source code for production. |
docs | Updates the temme.js file of the documentation. |
prod | Executes all of the above. |
test | Runs the unit tests |