npm install -g ez-compiler
npm init
ornpm init -y
(If you're lazy like me and want npm to answer all the questions for you)ezc create default
ORezc create angular1
(with any flags you like. See listed below.)
Files will be created in a./src
directory. The file structures for default and angular1 are shown belownpm install
to install the preprocessor flags you addedezc compile
(to watch and automatically compile and build files)
Once the files are compiled, they will automatically be put into the./dist
folder.
!!!!Please don't change the directory names. This tool will not work if you change "src" or "dist"!!!!
When you run ezc create default
OR ezc create angular1
, you can add flags to use preprocessors, like SASS, Pug/Jade, Coffeescript, and more. These change the file extensions in the src
directory to the corresponding file extensions. These are the current flags that exist as of right now. Please don't hesitate to suggest ones that should be added. NOTE: When flags are added, the file extensions for files related to that preprocessor will be changed. i.e. .css -> .sass
--stylus
for Stylus--sass
for Sass--scss
for Scss--pug
for Pug/Jade--coffee
for Coffeescript--babel
for Babel
- dist
- assets/
- css/
- style.css
- js/
- app.js
- index.html
- src
- assets/
- css/
- style.css
- js/
- app.js
- index.html
- dist
- assets/
- css/
- style.css
- controllers/
- services/
- templates/
- app.js
- index.html
- src
- assets/
- css/
- style.css
- controllers/
- services/
- templates/
- app.js
- index.html