开发者社区> 镜像站> NPM> blender-gulp
blender-gulp
Blender CMS Gulp settings
Last updated 5 years ago by sebastiandedeyne .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install blender-gulp 
SYNC missed versions from official npm registry.

blender-gulp

Software License Code Climate

This is the gulp setup for Blender CMS.

Install

Install gulp globally

$ npm install --global gulp

Install blender-gulp

This NPM package is custom built for Spatie projects and is therefore not registered on NPM.

We assume that you have Composer already installed for the php code style fixer.

We install it via a custom npm registry npm.spatie.be:

$ npm i blender-gulp --save-dev

Sample webpack.config.js

const webpack = require('webpack');

const config = require('blender-gulp/config/webpack');

config.entry = {
    'back.vendor': ['jquery'],
    'back.head': './js/back/head.js',
    'back.app': './js/back/app.js',
    'back.style': './sass/back/back.scss',
    'front.head': './js/front/head.js',
    'front.app': './js/front/app.js',
    'front.style': './sass/front/front.scss',
};

config.plugins.push(new webpack.optimize.CommonsChunkPlugin({
    name: 'back.vendor',
    chunks: ['back.head', 'back.app', 'back.editor', 'back.chart'],
    filename: 'back.vendor.js',
}));

config.plugins.push(new webpack.ProvidePlugin({
    $: 'jquery',
    jQuery: 'jquery',
}));

module.exports = config;

Usage

Run gulp help to see options

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email willem@spatie.be instead of using the issue tracker.

Credits

About Spatie

Spatie is webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

Current Tags

  • 2.0.8                                ...           latest (5 years ago)

2 Versions

  • 2.0.8                                ...           5 years ago
  • 2.0.4                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (21)
Dev Dependencies (1)
Dependents (0)
None