|
12 | 12 | "url": "git://github.com/ubilabs/google-maps-react-hooks.git"
|
13 | 13 | },
|
14 | 14 | "scripts": {
|
15 |
| - "build": "rm -rf dist/* && microbundle -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json", |
16 |
| - "dev": "rm -rf dist/* && microbundle watch -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json", |
| 15 | + "build": "npm run barrel && npm run microbundle:build", |
| 16 | + "start": "npm run barrel:watch && npm run mircobundle:dev", |
| 17 | + "microbundle:build": "rm -rf dist/* && microbundle -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json", |
| 18 | + "microbundle:dev": "rm -rf dist/* && microbundle watch -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json", |
17 | 19 | "lint": "eslint './{src,examples}/**/*.{ts,tsx}'",
|
18 | 20 | "types": "tsc --project tsconfig.json --noEmit",
|
19 | 21 | "test": "npm run lint && npm run types",
|
|
22 | 24 | "preversion": "npm run test",
|
23 | 25 | "version": "npm run changelog && git checkout -b chore/release-${npm_package_version} && git add .",
|
24 | 26 | "postversion": "git push -u origin chore/release-${npm_package_version} && git push --tags --no-verify",
|
| 27 | + "barrel": "eslint --fix src/index.ts", |
| 28 | + "barrel:watch": "nodemon --delay 1 -e ts,tsx --watch src/hooks -x 'npm run barrel --silent || exit 1'", |
25 | 29 | "postinstall": "npm install --prefix examples",
|
26 | 30 | "start:sample-map": "cd examples && npm run clean-examples && npm run start:map",
|
27 | 31 | "start:map-with-markers": "cd examples && npm run clean-examples && npm run start:map-markers",
|
|
46 | 50 | "conventional-changelog-cli": "^2.1.1",
|
47 | 51 | "eslint": "^8.25.0",
|
48 | 52 | "eslint-config-prettier": "^8.3.0",
|
| 53 | + "eslint-plugin-codegen": "^0.16.1", |
49 | 54 | "eslint-plugin-import": "^2.23.4",
|
50 | 55 | "eslint-plugin-prettier": "^4.2.1",
|
51 | 56 | "eslint-plugin-react": "^7.24.0",
|
52 | 57 | "eslint-plugin-react-hooks": "^4.2.0",
|
53 | 58 | "microbundle": "^0.15.1",
|
| 59 | + "nodemon": "^2.0.20", |
54 | 60 | "prettier": "^2.3.2",
|
55 | 61 | "typescript": "^4.3.5"
|
56 | 62 | },
|
|
0 commit comments