Aptuitiv Build Tools Development
The source CSS files are in the src directory and are organized in subdirectories based on their usage.
The files are built with npm run build to the dist directory. The build process does three things:
- Copies the CSS files that are directly in the
srcfolder to thedistfolder. - Copy the CSS files in the directories to the
distfolder. - Create the breakpoint files for specified files in specific directories. For example, for the
src/marginfolder, this would create the breakpoint folders withindist/marginfolder and wrap the original CSS from thesrc/marginfolder with the correct media query.
Build the CSS files
Before deploying a new version you must build the CSS files. Run this:
npm run build
Developing Javascript files
There are some scripts that are used for the build process or for command-line functionality. While developing those scripts we want to use eslint.
You can manually run eslint on the files.
npm run eslint
Or, you can watch the files while you work, which is recommended.
npm run watch