Components of the generation tool
npm install cmpjs -g
If your NPM version is 2.x, execute the 'npm dedupe' after the execution of the 'npm install' command.
cmpjs create <componentName> [--combine]
command:
cmpjs create new-box
result:
./index.cmp
----content:
<style src="./src/new-box.scss" lang="sass"></style>
<template src="./src/new-box.html"></template>
<script src="./src/new-box.js" lang="es6"></script>
/src
---new-box.scss
---new-box.html
---new-box.js
./cmp.config.js
./karma.conf.js
./package.json
cmpjs build