-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
152 lines (152 loc) · 5.29 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "dc-delivery-sdk-js",
"version": "0.15.0",
"description": "Amplience Dynamic Content Delivery SDK",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"browser": "dist/dynamicContent.browser.umd.min.js",
"repository": "https://github.com/amplience/dc-delivery-sdk-js",
"license": "Apache-2.0",
"keywords": [],
"scripts": {
"describe": "npm-scripts-info",
"build": "run-s clean && run-s build-ts && run-s build-dist",
"build-ts": "run-p build-ts:*",
"build-ts:main": "tsc -p tsconfig.json",
"build-ts:module": "tsc -p tsconfig.module.json",
"build-ts:spec": "tsc -p tsconfig.spec.json",
"build-dist": "run-p build-dist:*",
"build-dist:dev": "NODE_ENV=development webpack",
"build-dist:prod": "NODE_ENV=production webpack",
"test": "run-s build test-lint test-node test-e2e",
"test-lint": "eslint \"src/**/*.ts\" && prettier \"src/**/*.ts\" --list-different",
"fix": "eslint \"src/**/*.ts\" --fix && prettier \"src/**/*.{ts,js,json}\" --write",
"test-node": "NODE_OPTIONS=--max-old-space-size=4096 nyc --silent mocha 'build/main/**/*.spec.js'",
"test-node:debug": "nyc --silent mocha --inspect 'build/main/**/*.spec.js'",
"test-browser-local": "node ./node_modules/karma/bin/karma start karma.local.conf.js --single-run",
"test-e2e": "ts-node e2e-tests.ts -p tsconfig.e2e-tests.json",
"watch": "run-s clean build-ts && run-p \"build-ts:main -- -w\" \"build-ts:spec -- -w\" \"test-node -- --watch\"",
"watch:debug": "run-s clean build-ts && run-p \"build-ts:main -- -w\" \"build-ts:spec -- -w\" \"test-node:debug -- --watch\"",
"cov": "run-s build-ts test-node cov:html && opn coverage/index.html",
"cov:html": "nyc report --reporter=html",
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
"cov:check": "nyc report --reporter=lcov && nyc check-coverage --lines 80 --functions 80 --branches 80",
"doc": "run-s doc:html && open build/docs/index.html",
"doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
"doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"clean": "trash build test dist",
"all": "run-s clean test cov:check doc:html",
"deploy-docs": "run-s doc:html doc:publish",
"prepack": "npm ci && npm run test"
},
"scripts-info": {
"info": "Display information about the package scripts",
"build": "Clean and rebuild the project",
"test": "Lint and unit test the project",
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
"cov": "Rebuild, run tests, then create and open the coverage report",
"doc": "Generate HTML API documentation and open it in a browser",
"doc:json": "Generate API documentation in typedoc JSON format",
"release": "Bump package.json version, update CHANGELOG.md, tag release"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"axios": "^1.6.0",
"axios-retry": "^3.2.3"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/polyfill": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@types/chai": "^4.2.11",
"@types/chai-as-promised": "^7.1.2",
"@types/mocha": "^7.0.2",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"axios-mock-adapter": "^2.1.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codecov": "^3.8.2",
"core-js": "^3.6.5",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-unused-imports": "^1.1.5",
"gh-pages": "^3.0.0",
"husky": "^4.2.3",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-safari-launcher": "^1.0.0",
"karma-typescript": "^5.0.3",
"karma-webpack": "^5.0.0",
"lint-staged": "^10.0.8",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"opn-cli": "^3.1.0",
"prettier": "^2.0.5",
"start": "^5.1.0",
"trash-cli": "^5.0.0",
"ts-loader": "^7.0.5",
"ts-node": "^8.6.0",
"typedoc": "^0.17.8",
"typescript": "^4.7.4",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"nyc": {
"exclude": [
"**/*.spec.js"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm test && npm run cov:check",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
100
],
"type-case": [
1,
"always",
"lower-case"
],
"subject-case": [
1,
"always",
"lower-case"
]
}
},
"lint-staged": {
"*.ts": [
"prettier --write \"src/**/*.ts\"",
"eslint --fix \"src/**/*.ts\""
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}