https://github.com/theintern/dev
Tools for developing Intern
https://github.com/theintern/dev
Last synced: about 1 year ago
JSON representation
Tools for developing Intern
- Host: GitHub
- URL: https://github.com/theintern/dev
- Owner: theintern
- License: other
- Created: 2016-12-15T19:54:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T00:13:07.000Z (about 3 years ago)
- Last Synced: 2025-04-09T04:23:47.117Z (about 1 year ago)
- Language: JavaScript
- Size: 942 KB
- Stars: 2
- Watchers: 6
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
```js
"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`.
```js
"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.