Front End Build Toolkit
npm iThis will install all required dependencies and devDependencies defined in package.json.
After NPM installs all required dependencies, navigate to node_modules/name-that-color/index.js and modify the module as follows:
if (require.main === module)
{
console.log(chalk.magenta(process.argv[2]) + ' name is ' + chalk.cyan(ntc.name(oneColor(process.argv[2]).hex())[1]));
}
else
{
module.exports = ntc;
}Next, create an .env file using .env.example as, well, an example lol.
Then execute the following command:
npm startThis will compile the project into _dev, launch your browser and watch for changes in _src.
The toolkit has options to launch in different modes:
HMR Mode - Hot Module Replacement
npm run hmrIgnored when running a build.
Tooling Mode
npm run toolingWhile you can run HMR and Tooling modes together, HMR is only for _src development.
Fun Mode :)
npm run funConf Mode Shush!
npm run confTo run a production build, execute the following command:
npm run buildThis will compile and minify the project into _build.
All source code is located in _src.
- Core JavaScript/Typescript =>
_src/js - Core SASS =>
_src/sass - Modules (Javascript/Typescript, SCSS and HTML) =>
_src/modules
