npm install techpacket-build-tools --save
- Create
.techpacketrc.js
config. As example:module.exports = { // HTML OPTIONS html: { templatePath: './packages/client/src', }, // OPTIONS publicPath: './packages/client', outDir: './packages/client/dist', entry: './packages/client/src/app.js', // PLUGINS plugins: [require('techpacket-build-tools/packages/plugin-typescript')()], };
- To start a project in a development environment, use the command:
techpacket-build-tools --config .techpacketrc.js
- To build a project in the product environment, use the command:
techpacket-build-tools build --config .techpacketrc.js
- To start an watcher without to start the server, use the command:
techpacket-build-tools watch --config .techpacketrc.js