-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
96 lines (96 loc) · 5.18 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "codistica-js",
"private": true,
"workspaces": {
"packages": [
"packages/*"
]
},
"license": "MIT",
"browserslist": [
"since 2015"
],
"engines": {
"node": ">=10.0.0"
},
"husky": {
"hooks": {
"pre-commit": "codistica-husky-hooks-handlers pre-commit prettify",
"commit-msg": "codistica-husky-hooks-handlers commit-msg ./packages",
"pre-push": "codistica-husky-hooks-handlers pre-push test:quick"
}
},
"scripts": {
"babel:lib": "lerna exec --ignore @codistica/demo --parallel \"cross-env NODE_ENV=production cross-env NPM_CONFIG_ES_MODULES=false babel --root-mode upward ./src --out-dir ./lib --copy-files\"",
"babel:lib-es": "lerna exec --ignore @codistica/demo --parallel \"cross-env NODE_ENV=production cross-env NPM_CONFIG_ES_MODULES=true babel --root-mode upward ./src --out-dir ./lib-es --copy-files\"",
"build": "yarn run clean && yarn run prettify && lerna run prebuild --parallel && yarn run build:dist && yarn run build:lib && yarn run build:lib-es && yarn run build:types && yarn run build:jsdoc",
"build:dist": "exit 0",
"build:jsdoc": "lerna exec --ignore @codistica/demo --ignore @codistica/react --ignore @codistica/react-icons --ignore @codistica/react-mui --parallel \"jsdoc -c ../../.jsdocrc.js\"",
"build:lib": "yarn run babel:lib && yarn run flow:copy-lib",
"build:lib-es": "yarn run babel:lib-es && yarn run flow:copy-lib-es",
"build:types": "yarn run tsc:core && yarn run tsc:other",
"bump": "lerna version --no-push --no-changelog --no-git-tag-version",
"clean": "yarn run clean:build && yarn run clean:dist && yarn run clean:jsdoc && yarn run clean:lib && yarn run clean:lib-es && yarn run clean:types && yarn run clean:coverage && rimraf .eslintcache",
"clean:build": "rimraf \"./packages/*/build\"",
"clean:dist": "rimraf \"./packages/*/dist\"",
"clean:jsdoc": "rimraf \"./packages/*/jsdoc\"",
"clean:lib": "rimraf \"./packages/*/lib\"",
"clean:lib-es": "rimraf \"./packages/*/lib-es\"",
"clean:types": "rimraf \"./packages/*/types\"",
"clean:coverage": "rimraf ./.nyc_output ./coverage",
"coverage": "nyc --reporter=lcov yarn run test",
"flow:copy-lib": "lerna exec --parallel --scope @codistica/react --scope @codistica/react-icons --scope @codistica/react-mui \"flow-copy-source ./src ./lib\"",
"flow:copy-lib-es": "lerna exec --parallel --scope @codistica/react --scope @codistica/react-icons --scope @codistica/react-mui \"flow-copy-source ./src ./lib-es\"",
"lint": "eslint \"./packages/*/**/*.js\" --cache",
"prepack": "yarn run build && yarn run test",
"prettify": "prettier --loglevel warn --write \"**/*.{js,json}\"",
"start:demo": "cross-env HTTPS=true yarn workspace @codistica/demo run start",
"start:react": "yarn workspace @codistica/react run start",
"start:react-icons": "yarn workspace @codistica/react-icons run start",
"start:react-mui": "yarn workspace @codistica/react-mui run start",
"test": "mocha \"./packages/*/lib/__tests__/index.test.js\"",
"test:quick": "yarn run build:lib && yarn run test",
"tsc:core": "lerna exec --scope @codistica/core --scope @codistica/browser --scope @codistica/node \"tsc -p ./tsconfig.build.types.json\"",
"tsc:other": "lerna exec --ignore @codistica/core --ignore @codistica/browser --ignore @codistica/node --ignore @codistica/demo --ignore @codistica/react --ignore @codistica/react-icons --ignore @codistica/react-mui --parallel --no-bail \"tsc -p ./tsconfig.build.types.json\"",
"uninstall": "yarn run clean && lerna clean --yes && rimraf ./node_modules"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/eslint-plugin": "^7.12.1",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-flow": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@codistica/babel-preset-default": "^1.0.1",
"@codistica/eslint-config-default": "^2.0.0",
"@codistica/husky-hooks-handlers": "^1.0.1",
"@codistica/prettier-config-default": "^1.0.1",
"@types/chai": "^4.2.12",
"@types/mocha": "^8.0.3",
"@types/node": "^14.14.8",
"@types/react": "^16.9.49",
"@types/tapable": "^1.0.6",
"@types/webpack": "^4.41.22",
"cross-env": "^7.0.2",
"eslint": "^6.6.0",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsdoc": "^30.5.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.2",
"flow-bin": "^0.133.0",
"flow-copy-source": "^2.0.9",
"husky": "^4.3.0",
"jsdoc": "^3.6.5",
"jsdoc-babel": "^0.5.0",
"lerna": "^3.22.1",
"mocha": "^8.1.3",
"nyc": "^15.1.0",
"prettier": "^2.1.1",
"rimraf": "^3.0.2",
"typescript": "^4.0.2"
}
}