https://github.com/uphold/uphold-scripts
https://github.com/uphold/uphold-scripts
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uphold/uphold-scripts
- Owner: uphold
- License: mit
- Created: 2018-06-22T15:19:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T10:05:03.000Z (12 months ago)
- Last Synced: 2024-11-02T00:36:02.157Z (7 months ago)
- Language: JavaScript
- Size: 680 KB
- Stars: 0
- Watchers: 50
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# uphold-scripts
[![npm][npm-image]][npm-url]
Set of [NPM scripts](https://docs.npmjs.com/cli/run-script)
and [dev dependencies](http://npm.github.io/using-pkgs-docs/package-json/types/devdependencies.html)
to help with common tasks on [Uphold projects](https://github.com/uphold).## Available Scripts
- `changelog` - generate changelog file for a given version
- `lint` - run eslint to lint JS files
- `release` - cut a new release for a new version
- `test` - run the test suite with jest pre-configured
- `version` - tag a new version and generate its changelog## Installation
Install the package via `yarn`:
```sh
❯ yarn add uphold-scripts --dev
```or via `npm`:
```sh
❯ npm install uphold-scripts --save-dev
```And then configure `package.json` to look like this:
```json
{
"scripts": {
"changelog": "uphold-scripts changelog $npm_package_version",
"lint": "uphold-scripts lint .",
"lint-staged": "lint-staged -q",
"release": "uphold-scripts release",
"test": "uphold-scripts test",
"version": "uphold-scripts version"
},
"pre-commit": [
"lint-staged"
],
"lint-staged": {
"*.{js,mjs}": ["uphold-scripts lint"]
}
}
```To use the [ESLint](https://eslint.org) validations, this is the minimal `.eslintrc.yml` required:
```yaml
extends: uphold
```## License
MIT
[npm-image]: https://img.shields.io/npm/v/uphold-scripts/latest
[npm-url]: https://www.npmjs.com/package/uphold-scripts