Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightingbeetle/light-scripts
Build scripts for Lighting Beetle* light framework
https://github.com/lightingbeetle/light-scripts
babel build-script gulp light pug scss
Last synced: about 1 month ago
JSON representation
Build scripts for Lighting Beetle* light framework
- Host: GitHub
- URL: https://github.com/lightingbeetle/light-scripts
- Owner: lightingbeetle
- License: mit
- Created: 2017-03-04T10:08:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T14:36:28.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T14:26:51.223Z (about 1 month ago)
- Topics: babel, build-script, gulp, light, pug, scss
- Language: JavaScript
- Size: 1.81 MB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Light scripts
> Build scripts for Lighting Beetle* light framework.
## Table of Contents
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Features](#features)
- [Usage](#usage)
- [License](#license)## Prerequisites
```
node.js >= 6.9.0
```## Install
```
npm install light-scripts --save-dev
```
or
```
yarn add light-scripts --dev
```## Features
* Webserver with liverelaod ([Browsersync](https://www.browsersync.io/))
* Pug templates compilation with incremental builds ([Pug](https://pugjs.org/)) ([pug-inheritance](https://github.com/adammockor/pug-inheritance))
* Scss compilation ([node-sass](https://github.com/sass/node-sass))
* CSS autoprefixing ([autoprefixer](https://autoprefixer.github.io/))
* JS bundling ([webpack 2](https://webpack.js.org/))
* JS compilation ([babel](https://babeljs.io/)) ([babel-preset-env](https://github.com/babel/babel-preset-env))
* JS linting ([eslint](http://eslint.org/)) ([airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base))
* Image optimization ([imagemin](https://github.com/imagemin/imagemin))
* Lean Modernizr builds ([gulp-modernizr](https://github.com/doctyper/gulp-modernizr))
* Deploying via rsync/sftp ([gulp-rsync](https://github.com/jerrysu/gulp-rsync))## Usage
### Config
Add `light.config.js` file to `light` project root. Format of config file should look like this:
```js
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