swint-builder-js
v1.0.14
Published
JavaScript builder for Swint
Readme
swint-builder-js
JavaScript builder for Swint. Walks a directory and concatenates the file on a certain order.
Warning: This is not the final draft yet, so do not use this until its official version is launched
Installation
$ npm install --save swint-builder-jsOptions
name:String, default:ProjectinDir:String, default:path.dirname(require.main.filename)outDir:String, default:path.join(path.dirname(require.main.filename), '../out')lintcheck:Boolean, default:trueruleFile:String, default:path.join(path.dirname(require.main.filename), 'eslint.json')
minify:Boolean, default:trueuseSourceMap:Boolean, default:truevariables:Object, default:{}walkOption:Object, default:{ ext: 'js' }
Usage
buildJS({
name: 'Test',
inDir: path.join(__dirname, 'js'),
outDir: path.join(__dirname, 'out'),
lint: {
check: true,
ruleFile: path.join(__dirname, 'js/eslint.json')
},
minify: true,
useSourceMap: true,
variables: {
tmplVar: 'A'
}
}, function() {
// Build complete
});