CThreem Core
Build tools for Drupal themes.
Installation
npm install cthreem-core --save# -- or -- yarn add cthreem-core
Create a gulpfile.js
and (optionally) a gulp-config.js
:
cp node_modules/cthreem-core/examples/gulpfile.js gulpfile.jscp node_modules/cthreem-core/gulp-config.js gulp-config.js
Edit the above gulp-config.js
file as needed.
Create config files:
cp node_modules/cthreem-core/examples/.babelrc .babelrccp node_modules/cthreem-core/examples/.eslintrc.js .eslintrc.jscp node_modules/cthreem-core/examples/.stylelintrc .stylelintrc
Usage
If you are running Gulp
v4 globally, then you can just use gulp.
gulp compile# -- or -- gulp watch# -- or -- gulp
To see available tasks:
gulp --tasks
If you are not running Gulp
v4 globally, then you need to create one or more npm run scripts. Add the following to your package.json
:
Now you can use gulp through npm run
:
npm run start# -- or -- npm run gulp
To see available tasks:
npm run gulp -- --tasks