First, you must download and install node.js. NPM stands for node packaged modules and is a way to manage development dependencies through Node.js.
Download the Node.js source code or a pre-built installer for your platform, and start developing, you can download it from nodejs.org
You can check it in your terminal window using these commands
node --version and
GulpJS is a JavaScipt task runner. In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc...
CRYPTO ICO Build System use the gulp task to generate the different templates.
From the command line:
- Install gulp globally with
npm install gulp-cli -g
- To install node packages, navigate to the root
crypto_ico/directory. Then run
npm install. NPM use the
package.jsonfile and automatically install the required local dependencies listed in it.
gulpfile.js file contain all the predefined task. Below template contain all the gulp task and usage.
You can modify or add your task in
||Clean js and css folders from theme-assets.|
||Gulp task to clean js folder from theme-assets, copy js files from src folder and minify them.|
||Compile core, main(app), pages and plugins scss files.|
||Clean css folder, compile all scss files, auto prefix them, organize them and finally minify them in theme-assets/css folder.|
||Clean css folder, compile all scss files, auto prefix them, organize them and finally minify them in theme-assets/css-rtl folder.|
||Compile all pages PUG files and create relative HTML pages in
||Gulp task to generate css and js files in theme-assets folder.|
||Watch all scss and pug files change and compile it accordingly. In this command you need to pass the Layout, LayoutName & TextDirection. Read gulp template commands for more info.|