Skip to content

Temme build

Oussama Essamadi edited this page Dec 29, 2018 · 1 revision

Build


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 and dist 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 the dist 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
Clone this wiki locally