https://github.com/commenthol/letool
master your npm devDependencies
https://github.com/commenthol/letool
Last synced: 10 months ago
JSON representation
master your npm devDependencies
- Host: GitHub
- URL: https://github.com/commenthol/letool
- Owner: commenthol
- License: unlicense
- Created: 2018-01-29T21:49:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T21:56:12.000Z (over 8 years ago)
- Last Synced: 2025-02-26T18:53:39.523Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# letool
> master your npm devDependencies
Manage your development dependencies in one place for multiple packages, such saving you from copy-pasting boilerplate code.
It bundles some/my favourite dev tools for testing (mocha), code-coverage (nyc), linting (eslint-config-standard), transpiling (babel) ...
You are welcome to copy this code, rename the package name and change/ fill it with your favorite tools.
## Installation
```sh
npm i letool
```
## Commands
### setup
```sh
letool setup
# or
npx letool setup
```
Sets the required scripts in `package.json` of the current working directory and copies `.*ignore` files if not present in the folder.
Settings or files already present will not be overwritten, so use `letool setup -f` to force overwriting.
Check `./config/setup/package.json` which scripts and settings are put into `package.json`
```json
{
"scripts": {
"test": "letool mocha",
"lint": "letool lint",
"cover": "letool coverage",
"build": "letool transpile"
}
}
```
### mocha
Runs [mocha](https://www.npmjs.com/package/mocha).
### coverage
Runs [nyc](https://www.npmjs.com/package/nyc) using `npm test`
### lint
Runs [eslint](https://www.npmjs.com/package/eslint) with a default config in `./config/eslint.js`
### transpile
```sh
letool transpile
```
It uses [babel](https://www.npmjs.com/package/babel) with presets `env` and `stage-2` to transpile all es5/es6 code in `./src` to `./lib`.
## Files
```
├── bin
│ └── tool.js
├── config // configuration files for `scripts`
│ └── setup // setup assets
│ ├── dot.eslintrc.js
│ ├── dot.eslintignore
│ ├── dot.gitignore
│ ├── dot.npmignore
│ └── package.json // package props for merging
├── scripts
│ ├── coverage.js
│ ├── lint.js
│ ├── mocha.js
│ ├── setup.js
│ └── transpile.js
└── src
```
## LICENSE
[Unlicense](https://unlicense.org)