@artossystems/solutions-scripts
CLI for common scripts for the Solutions Team's projects
Last updated 3 months ago by will-stone .
MIT · Original npm · Tarball · package.json
$ cnpm install @artossystems/solutions-scripts 
SYNC missed versions from official npm registry.

solutions-scripts

CLI toolbox for common scripts for JavaScript and TypeScript projects.

Installation

yarn add -D @artossystems/solutions-scripts

Scripts

pre-commit

solutions-scripts comes with Husky and lint-staged. The pre-commit script will run prettier and linting over staged files. Add the following to your package.json:

{
  "husky": {
    "hooks": {
      "pre-commit": "solutions-scripts pre-commit"
    }
  }
}

lint

solutions-scripts comes with a rather strict ESLint configuration. By default it will run against your whole project, except files covered by your .gitignore, unless you provide your own eslintignore file or --ignore-path.

{
  "scripts": {
    "lint": "solutions-scripts lint"
  }
}

The configuration will detect TypeScript and React projects and apply rules accordingly.

For IDE integration, add your own ESLint config and extend the provided config:

{
  "eslintConfig": {
    "extends": [
      "./node_modules/@artossystems/solutions-scripts/dist/config/eslintrc"
    ]
  }
}

The same can be done for the Prettier config:

{
  "prettier": "./node_modules/@artossystems/solutions-scripts/dist/config/prettierrc"
}

Inspiration

This is heavily inspired by kcd-scripts. Check out Kent's blog posts: Concerning toolkits and Tools without config.

Publish

npm publish --access public

Current Tags

  • 0.0.11                                ...           latest (3 months ago)

8 Versions

  • 0.0.11                                ...           3 months ago
  • 0.0.10                                ...           4 months ago
  • 0.0.9                                ...           4 months ago
  • 0.0.8                                ...           4 months ago
  • 0.0.7                                ...           4 months ago
  • 0.0.6                                ...           4 months ago
  • 0.0.5                                ...           4 months ago
  • 0.0.4                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 8
Last Month 0
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |