Skip to content

Files

Latest commit

8439384 · Dec 30, 2019

History

History
52 lines (40 loc) · 1.54 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.54 KB

How to use

Codacy Badge Greenkeeper badge

Installing

npm install techpacket-build-tools --save

Configuration

  1. 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/plugin-typescript")()],
    
     };
  2. To start a project in a development environment, use the command:
     techpacket-build-tools --config .techpacketrc.js
  3. To build a project in the product environment, use the command:
    techpacket-build-tools build --config .techpacketrc.js
  4. To start an watcher without to start the server, use the command:
    techpacket-build-tools watch --config .techpacketrc.js
  5. To use the typescript, install the plugin:
    npm i @techpacket-build-tools/plugin-typescript --save-dev

And also add it to the config, to the plugins section.