https://github.com/chapter-three/cthreem-core
Build tools for Drupal themes.
https://github.com/chapter-three/cthreem-core
Last synced: about 2 months ago
JSON representation
Build tools for Drupal themes.
- Host: GitHub
- URL: https://github.com/chapter-three/cthreem-core
- Owner: chapter-three
- Created: 2018-06-15T17:50:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-06T17:01:21.000Z (about 6 years ago)
- Last Synced: 2025-02-28T20:33:35.535Z (2 months ago)
- Language: JavaScript
- Size: 130 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://nodei.co/npm/cthreem-core/)
# CThreem Core
Build tools for Drupal themes.
## Installation
```bash
npm install cthreem-core --save
# -- or --
yarn add cthreem-core
```Create a `gulpfile.js` and (optionally) a `gulp-config.js`:
```bash
cp node_modules/cthreem-core/examples/gulpfile.js gulpfile.js
cp node_modules/cthreem-core/gulp-config.js gulp-config.js
```Edit the above `gulp-config.js` file as needed.
Create config files:
```bash
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 .stylelintrc
```## Usage
If you are running `Gulp` v4 globally, then you can just use gulp.
```bash
gulp compile
# -- or --
gulp watch
# -- or --
gulp
```To see available tasks:
```bash
gulp --tasks
```If you are *not* running `Gulp` v4 globally, then you need to create one or more npm [run scripts](https://docs.npmjs.com/cli/run-script). Add the following to your `package.json`:
```json
{
...
"scripts": {
"compile": "gulp compile",
"start": "gulp default",
"gulp": "gulp"
},
...
}
```Now you can use gulp through `npm run`:
```bash
npm run start
# -- or --
npm run gulp
```To see available tasks:
```bash
npm run gulp -- --tasks
```