1.0.14 • Published 5 years ago

swint-builder-js v1.0.14

Weekly downloads
79
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.13

6 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago