-
Notifications
You must be signed in to change notification settings - Fork 33
/
package.json
executable file
·89 lines (89 loc) · 2.91 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
{
"name": "bbo",
"version": "1.1.26",
"description": "bbo is a utility library of zero dependencies for javascript.",
"homepage": "https://tnfe.github.io/bbo",
"author": "halldwang",
"license": "MIT",
"keywords": [
"bbo",
"bbo-cli",
"tools",
"lodash",
"underscore",
"javascript-library",
"utils-library",
"utility-library",
"utility",
"utils"
],
"repository": {
"type": "git",
"url": "git+https://github.com/tnfe/bbo.git"
},
"bugs": {
"url": "https://github.com/tnfe/bbo/issues"
},
"main": "index.js",
"module": "es/index.js",
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run lint"
}
},
"scripts": {
"start": "webpack-dev-server --progress --config ./config/webpack.config.js",
"lint": "npm run eslint && npm run prettier",
"fix": "npm run eslint:fix && npm run prettier:fix",
"eslint": "eslint ./src --ext .js",
"eslint:fix": "eslint ./src --ext .js --fix",
"prettier": "prettier -l \"./**/*.{js,json}\"",
"prettier:fix": "prettier --write -l \"./**/*.{js,json}\"",
"build": "npm run build-universal && npm run build-module",
"build-universal": "rollup -c config/rollup/dist/umd-min.js && rollup -c config/rollup/dist/umd.js",
"build-module": "rollup -c config/rollup/module/cjs-all.js && rollup -c config/rollup/module/umd.js && rollup -c config/rollup/module/es.js && rollup -c config/rollup/module/es-all.js",
"prepare-npm-package": "rm -rf dist_mod && mkdir dist_mod && cp package.json README.md ./dist_mod && npm run build",
"test": "jest",
"coverage": "jest --coverage",
"verify": "npm run eslint && npm run coverage",
"deploy": "rollup -c config/rollup_dist.js && cp dist/bbo.js docs/scripts",
"precommit": "lint-staged && jest --onlyChanged"
},
"devDependencies": {
"@babel/core": "7.7.7",
"@babel/plugin-transform-block-scoping": "7.7.4",
"@babel/plugin-transform-destructuring": "7.7.4",
"@babel/plugin-transform-modules-commonjs": "7.7.5",
"@babel/plugin-transform-object-assign": "7.7.4",
"@babel/plugin-transform-parameters": "7.7.7",
"@babel/plugin-transform-shorthand-properties": "7.7.4",
"@babel/plugin-transform-spread": "7.7.4",
"@rollup/plugin-multi-entry": "3.0.0",
"babel-eslint": "10.0.3",
"babel-plugin-module-resolver": "4.0.0",
"eslint": "7.7.0",
"glob": "7.1.6",
"husky": "3.1.0",
"jest": "24.9.0",
"lint-staged": "9.5.0",
"prettier": "1.19.1",
"rollup": "1.27.14",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-terser": "5.2.0",
"source-map-support": "0.5.16",
"eslint-config-alloy": "^3.0.0",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.7.1",
"html-webpack-plugin": "^3.2.0"
},
"dependencies": {},
"lint-staged": {
"*.{js}": [
"eslint --fix",
"prettier --write",
"git add"
]
}
}