To use this boilerplate, your computer needs:
- Clone this repository
- Navigate to the project folder and run
npm install - Run
npm link - Run
npm 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 component run
ssm create-component componentNameorssm create componentName. This command will create the files in the following folders:/src/assets/scripts/layout-builder/components/componentName.js/src/assets/styles/layout-builder/components/_componentName.scss/src/partials/layout-builder/components/componentName.html -
ssm create-component componentName -jwill create all component's files except js file -
ssm create-component componentName -cwill create all component's files except scss file -
ssm create-component componentName -hwill create all component's files except html file -
Flags can be combined, for example
ssm create-component componentName -j -hwill create only scss file -
To delete component's files run
ssm remove-component componentNameorssm remove componentName. -
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