Config

All is easily configurable by changing values in your gulpfile.yml file in your project. These values are merged into the gulpfile.default.yml file.

For example, you can enable SCSS and JS like this:

css:
  enabled: true
js:
  enabled: true

You can find all the available options and defaults settings inside the gulpfile.default.yml file.

Folders structure

Commands

Specifics Commands

You can launch specifics tasks, for example "lint CSS files": gulp validate:css.

All the documentation can be found inside the Features section.


Babel

In order to use Babel, you need to create a .babelrc into your project, with the presets that you want installed.

Example:

Run:

$ npm install --save-dev babel-preset-es2015

And create a .babelrc file:

{
  "presets": ["es2015"]
}

ESLint

You need to create a .eslintrc.yml file, and specify whitch rules that you want.

The stack contains a template which follows the Drupal community rules. Create a .eslintrc.yml file with:

extends: "./node_modules/gulp-drupal-stack/templates/.eslintrc.json"

StyleLint

You need to create a .stylelintrc.yml file, and specify whitch rules that you want.

The stack contains a template which follows the Drupal community rules. Create a .stylelintrc.yml file with:

extends: "./node_modules/gulp-drupal-stack/templates/.stylelintrc.json"

CSScombx

The module follows the rules from Drupal.