-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
125 lines (125 loc) · 4.17 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
{
"name": "@ef-carbon/locale",
"version": "2.1.1",
"description": "Provides TypeScript interfaces, class and defines for understanding a language locale.",
"main": "dist/lib/index.umd.js",
"module": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"bin": {
"ef-locale": "dist/bin/locale"
},
"homepage": "https://ef-carbon.github.io/locale/",
"repository": "https://github.com/ef-carbon/locale.git",
"license": "MIT",
"engines": {
"node": ">=8.3"
},
"scripts": {
"prepublishOnly": "yarn -s build",
"commit": "git-cz",
"distclean": "git clean -Xfd",
"clean": "git clean -Xfde node_modules",
"build": "yarn -s build:ts",
"postbuild": "ef-tspm -s && yarn -s build:rollup && yarn -s build:clime:patch",
"build:ts": "tsc",
"build:rollup": "yarn -s build:rollup:library && yarn -s build:rollup:binary",
"build:rollup:module": "rollup -c rollup.cjs.config.js --environment",
"build:rollup:modules": "foreach -g 'dist/bin/+(command|provider|generator)/**/*.js' -x 'yarn -s build:rollup:module NAME:#{name},RELDIR:#{reldir}'",
"build:rollup:binary": "rollup -c rollup.binary.config.js && yarn -s build:rollup:modules",
"build:rollup:library": "rollup -c rollup.library.config.js",
"build:clime:patch": "rename -f dist/bin/command/default.js dist/bin/command/default.mjs && rename -f dist/bin/command/default.cjs dist/bin/command/default.js",
"format": "yarn -s lint:format:fix",
"lint": "yarn -s lint:ts && yarn -s lint:format && yarn -s lint:commit && yarn -s lint:ci",
"lint:fix": "yarn -s lint:ts:fix && yarn -s lint:format:fix",
"lint:ci": "yamllint .circleci/config.yml",
"lint:ts": "tslint --project lint -t verbose",
"lint:ts:fix": "yarn -s lint:ts --fix",
"lint:format": "yarn -s lint:format:fix --verify",
"lint:format:fix": "tsfmt --useTsconfig lint/tsconfig.json -r",
"lint:commit": "commitlint --from=$(git merge-base origin/master HEAD) --to=HEAD",
"watch:ts": "tsc -w",
"watch:test": "jest --watch",
"test": "jest",
"coverage": "yarn -s test --coverage",
"ci": "yarn -s build && yarn -s lint && yarn -s test && yarn -s docs",
"fix": "yarn -s lint:fix",
"docs": "yarn -s typedoc lib",
"docs:open": "yarn -s opn dist/docs/index.html",
"generate": "yarn -s build && ./dist/bin/locale --generator ./dist/bin/generator/typescript.cjs lib"
},
"husky": {
"hooks": {
"pre-push": "yarn -s ci",
"commit-msg": "commitlint -e $GIT_PARAMS"
}
},
"directories": {
"lib": "lib",
"test": "test",
"doc": "docs"
},
"dependencies": {
"clime": "^0.5.9",
"diacritics": "^1.3.0",
"node-fetch": "^2.1.2",
"word-wrap": "^1.2.3"
},
"devDependencies": {
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"@ef-carbon/tspm": "^2.2.2",
"@semantic-release/changelog": "^2.1.1",
"@semantic-release/git": "5.0.0",
"@types/diacritics": "^1.3.1",
"@types/jest": "^23.1.5",
"@types/node-fetch": "^2.1.1",
"codecov": "^3.0.4",
"commitizen": "^2.10.1",
"cz-conventional-changelog": "^2.1.0",
"foreach-cli": "^1.8.0",
"husky": "^1.0.0-rc.13",
"jest": "^23.4.0",
"jest-junit-reporter": "^1.1.0",
"opn-cli": "^3.1.0",
"rename-cli": "^5.1.2",
"rollup": "^0.62.0",
"rollup-plugin-replace": "^2.0.0",
"semantic-release": "^15.7.1",
"ts-jest": "^22",
"tslint": "^5.10.0",
"typedoc": "^0.11.1",
"typescript": "^2.9.2",
"typescript-formatter": "^7.2.2",
"yaml-lint": "^1.2.4"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"jest": {
"globals": {
"ts-jest": {
"tsConfigFile": "test/tsconfig.json",
"enableTsDiagnostics": true
}
},
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.(ts|tsx)$": "./node_modules/ts-jest/preprocessor.js"
},
"testMatch": [
"**/test/**/*.test.(ts|js)"
],
"testEnvironment": "node",
"moduleNameMapper": {
"^@bin(.*)$": "<rootDir>/bin$1",
"^@test(.*)$": "<rootDir>/test$1",
"^@lib(.*)$": "<rootDir>/lib$1",
"^@locale(.*)$": "<rootDir>/lib/locale$1"
}
}
}