# scriptkit

> Node cli to turn an es6 script with requires/imports into a standalone file for use in browser

Latest version **3.0.0** (published 2019-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install scriptkit
pnpm add scriptkit
yarn add scriptkit
bun add scriptkit
```

Provides the command `scriptkit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-06-26 |
| First published | 2017-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Greg Allen |
| Maintainers | alaguna, aleperez92, dawnerd, ecwillis, jga, orthagonal1 |
| Keywords | cli, es6, babel, browserify, browser, taskkit |

## Links

- npm: https://www.npmjs.com/package/scriptkit
- Repository: https://github.com/firstandthird/scriptkit
- Homepage: https://github.com/firstandthird/scriptkit#readme
- Issues: https://github.com/firstandthird/scriptkit/issues
- npm.io page: https://npm.io/package/scriptkit

## Dependencies (11)

- [serve](https://npm.io/package/serve.md) ^11.0.2
- [taskkit](https://npm.io/package/taskkit.md) ^3.2.1
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.3
- [taskkit-clean](https://npm.io/package/taskkit-clean.md) ^1.1.0
- [taskkit-shell](https://npm.io/package/taskkit-shell.md) ^2.0.0
- [taskkit-eslint](https://npm.io/package/taskkit-eslint.md) ^1.2.0
- [taskkit-rollup](https://npm.io/package/taskkit-rollup.md) ^4.0.1
- [taskkit-analyze](https://npm.io/package/taskkit-analyze.md) ^1.0.0
- [taskkit-watcher](https://npm.io/package/taskkit-watcher.md) ^3.0.0
- [lodash.startcase](https://npm.io/package/lodash.startcase.md) ^4.4.0
- [taskkit-livereload](https://npm.io/package/taskkit-livereload.md) ^0.0.6

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2019-06-26
- 2.0.3 — 2019-04-05
- 2.0.2 — 2019-04-05
- 2.0.1 — 2019-02-21
- 2.0.0 — 2019-02-21
- 1.0.0 — 2018-10-17
- 0.4.1 — 2018-10-17
- 0.4.0 — 2018-06-13
- 0.3.0 — 2017-10-10
- 0.2.0 — 2017-02-26
- 0.1.0 — 2017-02-22
- 0.0.22 — 2017-02-02
- 0.0.20 — 2017-01-28
- 0.0.19 — 2017-01-27
- 0.0.18 — 2017-01-27
- … 17 more at https://npm.io/package/scriptkit/versions

## README

# ScriptKit

Single command line utility to turn an es6/es2016 script with requires/imports into a standalone file for use in browser.  No more dealing with configurations, install and run.

## Features

* Uses babel to turn es2015 code that is compatible with older browsers
* Uses rollup to combine depedencies and remove unneeded code
* Lint your js files using eslint
* Uglify to minify your code
* File watcher to rebuild when files change
* Runs `npm test` after build or when files change
* Support for live reload
* Static file serving (great for example files)
* Configuration all done in package.json (no need for additional config files)

## Install

```sh
npm i -D scriptkit
```

## Setup

(in your package.json)

```js
{
  "scripts": {
    "build": "scriptkit", //run build and then exit
    "dev": "scriptkit dev", //run build and watch for changes
    "prod": "scriptkit --env production" //build and minify
  },
  "scriptkit": {
    "files": {
      "dist/common.js": "src/common.js"
    }
  },
  "eslintConfig": {
    "extends": "firstandthird"
  }
}
```

## Commands

### default

Lint, build and test (`npm test`)

### dev

Lint, build, watch for changes, serve current directory, serve livereload script

### build

Lint and build

### config

Displays the config that is going to be used

### help

Returns all the commands you can run

---
_Source: https://npm.io/package/scriptkit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
