You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

swint-builder-js

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swint-builder-js

JavaScript builder for Swint

1.0.14
latest
Source
npm
Version published
Weekly downloads
6
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

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
});

Keywords

swint

FAQs

Package last updated on 05 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts