@botonic/dx v0.35.1
Botonic CI (continuous integration)
What Does This Package Do?
This package simplifies the configuration of all CI tasks for projects which use botonic.
Features
- eslint
- typescript type checking
Setup
- Install this package
npm install -D @botonic/dx- Copy the contents of the
sample-configfolder to the root of your project (Merge this package.json's scripts into your project ones) - The files at
sample-configjust import the configuration maintained within this project. To adapt them to your project needs, you just need to patch the specific options after importing the baseline. See instructions on each of these files.
package.json
Instructions here because it cannot contain comments
- Even if you don't plan to publish your package, it's important to correctly configure the "files" field. Otherwise, you may get the node/no-unpublished-import eslint error when importing a dev dependency from a test or a configuration file (remove --cache from eslint command after updating your package.json).
Usage
eslint
For a project to use our proposed eslint configuration, you'll need to:
- Add the scripts starting with
lintfrom sample-config/package.json to your package.json. npm run lintwill now perform a quick check which will also fix some of the detected issues.npm run lint-ciwill perform a slower check which detects more issues. It will not fix any issue, since it's designed to be integrated into your CI pipeline.
Due to an eslint_d issue, --fix --quiet does not autofix issues.
Please check the eslint user guide for adapting this configuration to your needs.
Typescript
In case your project uses typescript (or contains .d.ts files), add the scripts starting with
build from sample-config/package.json to your package.json
npm run buildwill transpile into JS.npm run build-ciwill validate your project source code and tests using your tsconfig.test.json configuration
Implementation details
Depends on @botonic/eslint-config. As per the official documentation, the eslint plugins are configured there as peer dependencies.
Version
Due to a npm bug, npm version interaction with git
(check clean stage, commit and create tag) is broken. Hence, sample-config manually checks that
there are no modifications in git files.
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
7 months ago
9 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago