|
5 | 5 | "author": "Puppet, Inc.",
|
6 | 6 | "license": "UNLICENSED",
|
7 | 7 | "scripts": {
|
8 |
| - "build": |
9 |
| - "NODE_ENV=production webpack --config=config/bundle.webpack.config.js", |
10 |
| - "build:styleguide": |
11 |
| - "(export $(cat config/.env.production | xargs) && webpack --config=config/production.webpack.config.js)", |
| 8 | + "build": "./scripts/build", |
| 9 | + "build:styleguide": "./scripts/build-styleguide", |
12 | 10 | "precommit": "lint-staged",
|
13 | 11 | "prepare": "echo 'Building uikit' && npm run build",
|
14 |
| - "format": |
15 |
| - "eslint --fix src styleguide config && prettier --write --list-different '{src,styleguide,config}/**/*.{js,jsx,mjs,graphql,json,css,md}'", |
16 |
| - "lint": "eslint src styleguide config --ext .js --ext .jsx", |
| 12 | + "format": "./scripts/format", |
| 13 | + "lint": "./scripts/lint", |
17 | 14 | "start": "node --experimental-modules styleguide/server/dev.mjs",
|
18 | 15 | "serve": "node --experimental-modules styleguide/server/prod.mjs",
|
19 | 16 | "test": "jest",
|
20 | 17 | "test:coverage": "jest --collectCoverage",
|
21 | 18 | "test:watch": "jest --watch"
|
22 | 19 | },
|
23 | 20 | "lint-staged": {
|
24 |
| - "*.{js, jsx, mjs}": ["eslint --fix"], |
25 |
| - "*.{js,jsx,mjs,graphql,json,css,md}": [ |
| 21 | + "*.{js,jsx,mjs}": ["eslint --fix", "git add"], |
| 22 | + "*.{graphql,json,css,md}": [ |
26 | 23 | "prettier --single-quote --trailing-comma=all --write",
|
27 | 24 | "git add"
|
28 | 25 | ]
|
|
0 commit comments