3.3.1 • Published 4 years ago
light-scripts v3.3.1
Light scripts
Build scripts for Lighting Beetle* light framework.
Table of Contents
Prerequisites
node.js >= 6.9.0Install
npm install light-scripts --save-devor
yarn add light-scripts --devFeatures
- Webserver with liverelaod (Browsersync)
- Pug templates compilation with incremental builds (Pug) (pug-inheritance)
- Scss compilation (node-sass)
- CSS autoprefixing (autoprefixer)
- JS bundling (webpack 2)
- JS compilation (babel) (babel-preset-env)
- JS linting (eslint) (airbnb-base)
- Image optimization (imagemin)
- Lean Modernizr builds (gulp-modernizr)
- Deploying via rsync/sftp (gulp-rsync)
Usage
Config
Add light.config.js file to light project root. Format of config file should look like this:
module.exports = (defaultPaths, defaultConfig, flags) => ({
paths: {},
config: {},
});Via config file, default configuration can be customized if necessary.
If custom configuration is not needed, light.config.js can be omitted.
Tasks
Tasks should be run in main project folder, which depends on light-scripts.
Main gulp tasks:
- Project serving with live-reload:
gulp serve- Project build:
gulp serve- Other tasks:
gulp -TLicense
MIT
3.3.1
4 years ago
3.3.0
4 years ago
3.2.0
4 years ago
3.1.0
5 years ago
3.0.0
6 years ago
2.3.4
6 years ago
2.3.3
8 years ago
2.3.2
8 years ago
2.3.1
8 years ago
2.3.0
8 years ago
2.2.5
8 years ago
2.2.4
9 years ago
2.2.3
9 years ago
2.2.2
9 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.0
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago