apply-config v2.1.2
Apply Config
A collection of scripts to quickly provide a base config of various common setups to your project
ESLint (with typescript and prettier)
Configure your typescript project to work with eslint simply by running:
npx apply-config eslint-typescriptThis script will configure eslint to run on your project and install dependencies to lint typescript and to run prettier.
- Verifies that
package.jsoncan be located - copies the base
.eslintrc.jsto your project folder - adds or updates the
lintnpm script - installs the required dev dependencies
The sample config is supposed to be a starting point to get you going. You can then add or edit the rules as you see fit.
GitHub Actions
Get started with 2 simple workflows, one that runs your build on every check-in and one that pushes to NPM when you create a release
npx apply-config github-actions- Verifies that
package.jsoncan be located - copies
build.ymlandrelease.ymlto.github/workflows
Karma Webpack (with typescript support)
An alternative to using angular test bed. Faster to run and much less maintenance.
npx apply-config karma-webpack-typescript- Verifies that
package.jsoncan be located - asks for the location to copy
test.tsto (defaults tosrc) - copies the base
karma.conf.jsto your project folder - copies
test.tsto specified folder - adds or updates the
testandtest:watchnpm script - installs the required dev dependencies
ESLint Typescript
npx apply-config eslint-typescript- copies sample
.eslintrc.jsto project - adds
lintandlint:fixscripts topackage.json - install
eslint,prettierand@typescript-eslintdependencies
Jest Typescript
npx apply-config jest-typescript- copies sample
jest.config.jsto project - adds
testandtest:watchscripts topackage.json - install
jestandts-jestdependencies
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
5 years ago
5 years ago
5 years ago