intern-dev

Development support scripts for Intern projects.

BSD-3-Clause 17 个版本
安装
npm install intern-dev
yarn add intern-dev
pnpm add intern-dev
bun add intern-dev
README

intern-dev

Support scripts for Intern and its sub-projects

Usage

Include this project in devDependencies in your Intern component's package.json, then add the desired scripts to scripts in package.json. For example:

"scripts": {
	"build": "intern-dev-build",
	"clean": "intern-dev-clean",
	"lint": "intern-dev-lint",
	"release": "intern-dev-release",
	"test": "intenr-dev-clean && intern-dev-build && intern-dev-test",
	"watch": "intern-dev-watch"
}

Configuration

Components should generally try to follow the conventions used by this package (standard tslint, sources in src, test config in tests/intern.js, etc.), in which case no configuration is required. However, limited configuration is supported through the internDev property in your project's package.json.

"internDev": {
	// Patterns to ignore
	"ignore": [ "ignore", "glob", "patterns" ],
	"resources": {
		// Arrays of patterns to copy for a build, keyed by destination path
		"_build": [
			"patterns",
			{ base: "src/stuff", pattern: "to" },
			"copy"
		]
	},
	// Path to custom test config
	"testConfig": "tests/custom.config.js"
}

Note that all paths and path patterns are relative to the project root.

版本列表
0.4.0 2017-07-06
0.3.4 2017-06-16
0.3.3 2017-06-07
0.3.2 2017-06-05
0.3.1 2017-06-04
0.3.0 2017-06-04
0.2.10 2017-06-02
0.2.9 2017-05-04
0.2.8 2017-05-03
0.2.7 2017-04-11
0.2.6 2017-04-10
0.2.5 2017-04-10
0.2.4 2017-04-10
0.2.3 2017-04-10
0.2.2 2017-04-10
0.2.1 2017-04-10
0.2.0 2017-04-08