ne-ci
v1.0.5
Published
ne-ci specail version to support lazy-load
Downloads
5
Readme
ne-ci
Front-end project packaging tools
Installation
$ npm install ne-ci --g
Option
step 1
ne-ci init | i [create initialize your project config]
step 2
ne-ci build | b [integration of resources, inject dependency, compress code]
step 3
ne-ci upload | u [upload static assets to CDN]
step 4 (optional, only for CMS project)
ne-ci publish | p [push html file into the CMS template]
for more option of configuration
{
encoding: 'UTF-8',
entry: '*.html', // or an array exp: ['./a.html', './module/b.html', './11/*.html']
output: {
cdnPath: '',
clean: true, // whether remove existing file in dist folder, before each building
dir: {
root: 'dist',
image: 'images',
js: 'js',
css: 'css',
others: 'assets'
},
cssFile: 'head~[hash].css',
jsFile: 'foot~[hash].js',
},
svnRoot: 'd:/frontend', // setting svn root dir for compatible with absolute paths of previous projects
log: false,
image: {
base64: 1024 // less than 1024 byte, would convert to base64 url
},
upload: { // add item of "otppwd: ******" in outer network environment
username: '',
password: '',
path: '',
includeHtml: false,
exclude: []
},
api: {}
}
>= 0.3.3
- support dynamic dependence and router
v0.4.0
- fix bug: remove js file of unnecessary built [dist.js]
v0.4.2
- optimize output formation of uploaded CDN url