Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @theintern/dev with all npm packages installed. Try it out:

@theintern/dev lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

require("lint-staged/package.json"); // lint-staged is a peer dependency. require("pre-commit/package.json"); // pre-commit is a peer dependency. require("prettier/package.json"); // prettier is a peer dependency. require("tslib/package.json"); // tslib is a peer dependency. // require("@theintern/dev/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@theintern/dev v0.10.2

Development support scripts for Intern projects.

intern-dev

Support scripts for Intern and its sub-projects


Leadfoot logo           Intern logo           Dig Dug logo


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.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free