To use this boilerplate, your computer needs:
- Clone this repository
- Navigate to the project folder and run
yarn - Run
npm link - Run
yarn startto run Gulp. Your finished site will be created in a folder calleddist, viewable at this URL:
http://localhost:8000
To create compressed, production-ready assets, run npm run build.
-
To add a new module run
ssm create-module moduleNameorssm create moduleName. This command will create the files in the following folders:/src/assets/scripts/layout-builder/modules/moduleName.js/src/assets/styles/layout-builder/modules/_moduleName.scss/src/partials/layout-builder/modules/moduleName.html -
ssm create-module moduleName -jwill create all module's files except js file -
ssm create-module moduleName -cwill create all module's files except scss file -
ssm create-module moduleName -hwill create all module's files except html file -
Flags can be combined, for example
ssm create-module moduleName -j -hwill create only scss file -
To delete module's files run
ssm remove-module moduleNameorssm remove moduleName. -
To add a new template run
ssm create-template templateName. This command will create the files in the following folders:/src/assets/scripts/layout-builder/templates/templateName.js/src/assets/styles/layout-builder/templates/_templateName.scss/src/partials/layout-builder/templates/templateName.html -
To delete template's files run
ssm remove-template templateName.
Styleguid is available at this url /styleguide
- This package comes with several code snippets, executable using VS Code. Look inside
.vscode/snippets/html.jsonto see what's available. In order to use them, first install the Project Snippets Extension