This project needs at least npm 3.x.x
$ npm run infoto display a list of all npm script$ npm run startor$ npm startlaunch an Express + BrowserSync local server. If you want to open your browser when server is ready$ npm run start:open$ npm run buildbuild, copy all your file and assets in relevant folders : all img go to/build/assets/img/folder, CSS & JS files go to/build/assets/main.(js|css), and template file are copied, with folder hierarchie.$ npm run testto launch Style and JS linternpm run test:eslintperform a full linting of all JS files in/src/and reporte error in console. Follow the Standard JS StyleGuide except for indent, who are of 4 spaces.npm run test:eslintfmttry to format you JS file againt rules defined in.eslintrcfile, if can't prompt for error.npm run test:stylelintperform a recursive linting of CSS file, againt Stylelint Config Standard, with 4 indent rule.npm run test:stylelfmttry to format your stylesheet according to rules specified in.stylelintrcfile.
- rimraf for a better/crossplatform
rm -rfyou can use it like that :$ npm run rimraf <path/to/fileOrFolder> - ncp Asynchronous recursive file & directory copying. Basic usage
$ npm run ncp <source> <dest>
All path configurations should be administrable in config/project.config.js file. You can change where are stored views or assets folder by this way, pass some config for PostCss, and so on.
homePage point to the template you want to render (not the layout, the template).
viewsPath are related to the folder of all views basicly /views
assetsPath where all commons files are stored (css, js, images, etc.)/
viewsPath and assetsPath are used by BrowserSync to know file who watch
aliases are used to reproduce {% extends "@STARTERPack/layout.html.twig" %}
cssNextConfig are used by PostCSS modules.
StarterPack use node-twig to render Twig templates. You can find mocks for Twig in the extensions folder.