1.2.0 • Published 7 years ago
cthreem-core v1.2.0
CThreem Core
Build tools for Drupal themes.
Installation
npm install cthreem-core --save
# -- or --
yarn add cthreem-coreCreate a gulpfile.js and (optionally) a gulp-config.js:
cp node_modules/cthreem-core/examples/gulpfile.js gulpfile.js
cp node_modules/cthreem-core/gulp-config.js gulp-config.jsEdit the above gulp-config.js file as needed.
Create config files:
cp node_modules/cthreem-core/examples/.babelrc .babelrc
cp node_modules/cthreem-core/examples/.eslintrc.js .eslintrc.js
cp node_modules/cthreem-core/examples/.stylelintrc .stylelintrcUsage
If you are running Gulp v4 globally, then you can just use gulp.
gulp compile
# -- or --
gulp watch
# -- or --
gulpTo see available tasks:
gulp --tasksIf 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:
{
...
"scripts": {
"compile": "gulp compile",
"start": "gulp default",
"gulp": "gulp"
},
...
}Now you can use gulp through npm run:
npm run start
# -- or --
npm run gulpTo see available tasks:
npm run gulp -- --tasks