1.0.14 • Published 6 years ago

swint-builder-js v1.0.14

Weekly downloads
79
License
MIT
Repository
github
Last release
6 years ago

swint-builder-js

Greenkeeper badge 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-js

Options

  • name : String, default: Project
  • inDir : String, default: path.dirname(require.main.filename)
  • outDir : String, default: path.join(path.dirname(require.main.filename), '../out')
  • lint
    • check : Boolean, default: true
    • ruleFile : String, default: path.join(path.dirname(require.main.filename), 'eslint.json')
  • minify : Boolean, default: true
  • useSourceMap : Boolean, default: true
  • variables : 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
});
1.0.14

6 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago