This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
118 lines (118 loc) · 2.98 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
{
"name": "traduora-cli",
"version": "0.15.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"tdd": "test --watch",
"test": "jest",
"start": "node --require @babel/register ./src/index.js ",
"eslint": "eslint src __mocks__ .babelrc.js",
"prebuild": "npm run eslint && npm test && node_modules/.bin/del lib ;",
"build": "NODE_ENV=production babel src --out-dir lib --ignore \"src/**/*.spec.js\" --ignore \"**/__mocks__/**\"",
"prepack": "npm run build",
"postbuild": "chmod +x lib/index.js",
"bin": "node --require dotenv/config ./lib/index.js",
"version": "npm run build",
"postversion": "git push && git push --tags"
},
"bin": {
"traduora": "lib/index.js"
},
"author": "Jochen Preusche <[email protected]>",
"license": "MIT",
"dependencies": {
"axios": "^0.20.0",
"cosmiconfig": "^7.0.0",
"globby": "^11.0.1",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.20",
"yargs": "^16.0.3"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/preset-env": "^7.11.5",
"@babel/register": "^7.11.5",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.3.0",
"babel-plugin-shebang": "^1.0.0",
"del-cli": "^3.0.1",
"dotenv": "^8.2.0",
"eslint": "^7.8.1",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.3.0",
"jest": "^26.4.2",
"jest-mock-axios": "^4.2.1",
"lint-staged": "^10.3.0",
"prettier": "^2.1.1"
},
"jest": {
"modulePathIgnorePatterns": [
"<rootDir>/lib/"
],
"coverageDirectory": "<rootDir>/coverage",
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.js",
"!coverage/**/*",
"!lib/**/*",
"!**/__mocks__/**",
"!**/*.spec.js"
],
"setupFilesAfterEnv": [
"<rootDir>/jestsetup.js"
],
"rootDir": "./",
"testEnvironment": "node",
"clearMocks": true
},
"engines": {
"node": ">= 9.0.0",
"npm": ">= 5.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/iilei/traduora-cli"
},
"lint-staged": {
"*.js": [
"npm run eslint -- --fix",
"git add"
],
"*.{css,sass,less}": [
"./bin/fail.sh Please use .scss for styling!"
],
"*.scss": [
"stylelint --fix --syntax=scss",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm test -- --coverage #"
}
},
"prettier": {
"trailingComma": "all",
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"traduora": {
"base-path": "/api/v1",
"pull-to": "<rootDir>/intl/pull/<locale>.<hash:4>.json",
"client-id": "test",
"locale": "en_GB",
"locales": [
"de_DE",
"en_GB"
]
}
}