-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
131 lines (131 loc) · 4.21 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"author": {
"name": "Tsur",
"email": "[email protected]"
},
"name": "rae",
"version": "1.0.3",
"description": "Simple Rae Dictionary Library",
"keywords": [
"dictionary",
"rae",
"spanish",
"words",
"definition",
"lema"
],
"license": "MIT",
"main": "build/lib.js",
"files": [
"build"
],
"repository": {
"type": "git",
"url": "https://github.com/tsur/node-rae.git"
},
"bin": {
"rae": "./build/cli.js"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"babel-loader": "^8.0.5",
"circular-dependency-plugin": "^4.2.1",
"clipboard": "^1.7.1",
"cp": "^0.2.0",
"cross-env": "^5.1.1",
"css-loader": "^0.28.7",
"eslint": "^4.10.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-mocha": "^4.11.0",
"exports-loader": "^0.6.4",
"express": "^4.16.2",
"file-loader": "^1.1.5",
"gh-pages": "^1.0.0",
"ghooks": "^2.0.0",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^3.2.0",
"htmlparser2": "^3.9.2",
"imports-loader": "^0.7.1",
"jest-cli": "^21.2.1",
"mocha": "^4.0.1",
"readline": "^1.3.0",
"rimraf": "^2.6.2",
"semantic-release": "^8.2.0",
"should": "^13.1.2",
"style-loader": "^0.19.0",
"uglifyjs-webpack-plugin": "^2.1.1",
"validate-commit-msg": "^2.14.0",
"webpack": "^4.28.3",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-cli": "^3.2.0"
},
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"isomorphic-fetch": "^2.2.1",
"lodash": "^4.17.4"
},
"scripts": {
"pretest": "rimraf coverage",
"test": "cross-env NODE_ENV=test jest --coverage",
"test:watch": "cross-env NODE_ENV=test jest --watch --no-cache",
"build:lib": "webpack --config internals/webpack/lib.js --color -p --progress",
"build:cli": "webpack --config internals/webpack/cli.js --color -p --progress",
"build:site": "webpack --config internals/webpack/site.js --color -p --progress",
"build:server": "webpack --config internals/webpack/server.js --color -p --progress",
"prebuild": "rimraf build",
"build": "npm run build:lib && npm run build:cli && npm run build:site && npm run build:server",
"lint": "eslint . --ignore-path .gitignore --ignore-pattern internals",
"predeploy:site": "rimraf build && cross-env URL=https://rae-api.herokuapp.com/ webpack --config internals/webpack/site.js --color -p --progress",
"deploy:site": "node ./internals/scripts/gh-pages.js",
"predeploy:server": "rimraf build && cross-env PROD=true CORS=\"https://tsur.github.io, http://zuri.rocks\" webpack --config internals/webpack/server.js --color -p --progress",
"deploy:server": "rimraf rae-api && git clone https://git.heroku.com/rae-api.git && cp build/server.js rae-api && cp internals/heroku/package.json rae-api && cp internals/heroku/Procfile rae-api && cp internals/heroku/index.js rae-api && cd rae-api && git add . && git commit -m \"Deploy to heroku\" && git push origin master && cd .. && rimraf rae-api",
"deploy": "npm run deploy:server && npm run deploy:site",
"validate": "npm run lint && npm run build:cli && npm run test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"config": {
"ghooks": {
"pre-push": "npm run lint",
"commit-msg": "validate-commit-msg"
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js",
"!src/cli/**/*.js",
"!src/server/**/*.js",
"!src/site/**/*.js",
"!src/__tests__/**/*.js",
"!build/**/*.js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/internals/",
"/examples/"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/internals/",
"/examples/"
],
"coverageThreshold": {
"global": {
"branches": 70,
"functions": 70,
"lines": 70,
"statements": 70
}
},
"moduleDirectories": [
"node_modules",
"src"
],
"setupTestFrameworkScriptFile": "<rootDir>/internals/testing/test-bundler.js",
"transformIgnorePatterns": [
"<rootDir>/node_modules/"
]
}
}