3.3.1 • Published 3 years ago
light-scripts v3.3.1
Light scripts
Build scripts for Lighting Beetle* light framework.
Table of Contents
Prerequisites
node.js >= 6.9.0
Install
npm install light-scripts --save-dev
or
yarn add light-scripts --dev
Features
- 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 -T
License
MIT
3.3.1
3 years ago
3.3.0
3 years ago
3.2.0
3 years ago
3.1.0
4 years ago
3.0.0
5 years ago
2.3.4
5 years ago
2.3.3
7 years ago
2.3.2
7 years ago
2.3.1
7 years ago
2.3.0
7 years ago
2.2.5
7 years ago
2.2.4
7 years ago
2.2.3
7 years ago
2.2.2
8 years ago
2.2.1
8 years ago
2.2.0
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago