-
Notifications
You must be signed in to change notification settings - Fork 44
/
package.json
146 lines (146 loc) · 8 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
{
"name": "@mparticle/web-sdk",
"version": "2.30.4",
"description": "mParticle core SDK for web applications",
"license": "Apache-2.0",
"keywords": [
"mparticle",
"analytics",
"cdp"
],
"files": [
"dist/mparticle.common.js",
"dist/mparticle.esm.js",
"dist/mparticle.js",
"src/"
],
"publishConfig": {
"access": "public"
},
"main": "dist/mparticle.common.js",
"module": "dist/mparticle.esm.js",
"repository": "https://github.com/mParticle/mparticle-web-sdk",
"scripts": {
"build": "cross-env ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js",
"build:cbt": "rollup --config test/cross-browser-testing/rollup.CBT.config.js",
"build:dev": "cross-env ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js",
"build:iife": "cross-env ENVIRONMENT=prod BUILD=iife rollup --config rollup.config.js",
"build:npm": "cross-env ENVIRONMENT=prod BUILD=cjs rollup --config rollup.config.js",
"build:esm": "cross-env ENVIRONMENT=prod BUILD=esm rollup --config rollup.config.js",
"build:stub": "cross-env ENVIRONMENT=prod BUILD=stub rollup --config rollup.config.js",
"build:snippet": "uglifyjs snippet.js -m -o snippet.min.js",
"build:tests": "cross-env ENVIRONMENT=prod TESTTYPE=main rollup --config rollup.test.config.js",
"build:test-bundle": "cross-env TESTTYPE=main ENVIRONMENT=prod rollup --config rollup.test.config.js",
"build:browserify:cjs": "browserify test/integrations/cjs/browserify/index.js -o test/integrations/cjs/dist/browserify-output.js",
"build:rollup:cjs": "rollup --config test/integrations/cjs/rollup/rollup.config.js",
"build:webpack:cjs": "webpack --config test/integrations/cjs/webpack/webpack.config.js",
"build:rollup:module": "rollup --config test/integrations/module/rollup/rollup.config.js",
"build:webpack:module": "webpack --config test/integrations/module/webpack/webpack.config.js",
"build:rollup:requirejs": "rollup --config test/integrations/requirejs/rollup.requirejs.config.js",
"build:ts": "tsc -p .",
"test": "npm run build && npm run build:test-bundle && cross-env DEBUG=false karma start test/karma.config.js",
"test:browserstack": "karma start test/cross-browser-testing/browserstack.karma.config.js",
"test:browserstack:debug": "cross-env DEBUG=true karma start test/cross-browser-testing/browserstack.karma.config.js",
"test:debug": "cross-env DEBUG=true karma start test/karma.config.js",
"test:stub": "cross-env TESTTYPE=stub ENVIRONMENT=prod rollup --config rollup.test.config.js && karma start test/stub/karma.stub.config.js",
"test:integrations": "npm run test:requirejs && npm run test:integrations:cjs && npm run test:integrations:module",
"test:integrations:cjs": "npm run test:integrations:cjs:browserfy && npm run test:integrations:cjs:webpack && npm run test:integrations:cjs:rollup",
"test:integrations:cjs:browserfy": "npm run build:browserify:cjs && npm run test:karma:browserify:cjs",
"test:integrations:cjs:webpack": "npm run build:webpack:cjs && npm run test:karma:webpack:cjs",
"test:integrations:cjs:rollup": "npm run build:rollup:cjs && npm run test:karma:rollup:cjs",
"test:integrations:module": "npm run test:integrations:module:webpack && npm run test:integrations:module:rollup",
"test:integrations:module:webpack": "npm run build:webpack:module && npm run test:karma:webpack:module",
"test:integrations:module:rollup": "npm run build:rollup:module && npm run test:karma:rollup:module",
"test:requirejs": "npm run build:iife && npm run build:rollup:requirejs && npm run test:requirejs:before && npm run test:requirejs:after",
"test:requirejs:before": "cross-env FILE_ORDER=before_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:requirejs:after": "cross-env FILE_ORDER=after_mp karma start test/integrations/requirejs/karma.requirejs.config.js",
"test:karma:webpack:cjs": "cross-env BUNDLER=webpack karma start test/integrations/cjs/karma.webpack.config.js",
"test:karma:browserify:cjs": "cross-env BUNDLER=browserify karma start test/integrations/cjs/karma.browserify.config.js",
"test:karma:rollup:cjs": "cross-env BUNDLER=rollup karma start test/integrations/cjs/karma.rollup.config.js",
"test:karma:webpack:module": "cross-env BUNDLER=webpack karma start test/integrations/module/karma.webpack.config.js",
"test:karma:rollup:module": "cross-env BUNDLER=rollup karma start test/integrations/module/karma.rollup.config.js",
"test:jest": "jest --config jest.config.js",
"test:jest:watch": "jest --config jest.config.js --watch",
"watch": "cross-env ENVIRONMENT=dev BUILD=iife rollup --config rollup.config.js -w",
"watch:all": "cross-env ENVIRONMENT=prod BUILDALL=true rollup --config rollup.config.js -w",
"watch:tests": "cross-env ENVIRONMENT=dev TESTTYPE=main rollup --config rollup.test.config.js -w",
"lint": "eslint src/ test/src/",
"gts:check": "gts check",
"gts:fix": "gts fix",
"prettier": "node_modules/.bin/prettier --check \"**/*.js\"",
"uglify": "npx uglify-js dist/mparticle.js --output dist/mparticle.min.js",
"gzip": "gzip -c dist/mparticle.min.js > dist/mparticle.min.js.gz",
"bundle": "npm run uglify && npm run gzip",
"report:bundled": "ls -l dist/mparticle.min.js.gz | awk '{print $5}'",
"report:bundled:human": "ls -lh dist/mparticle.min.js.gz | awk '{print $5}'"
},
"pre-commit": [
"lint"
],
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@babel/eslint-plugin": "^7.17.7",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"@mparticle/data-planning-models": "^0.1.0",
"@mparticle/event-models": "^1.1.8",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-typescript": "^11.1.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/chai": "^4.2.3",
"@types/jest": "^29.5.1",
"@types/jest-expect-message": "^1.1.0",
"@types/mocha": "^9.0.0",
"@types/mparticle__web-sdk": "^2.16.1",
"@types/node": "^20.1.0",
"babel-preset-minify": "^0.5.1",
"browser-sync": "^2.26.3",
"browserify": "^17.0.0",
"chai": "^4.2.0",
"core-js": "^3.33.0",
"cross-env": "^7.0.3",
"eslint": "^8.36.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "3.4.1",
"fetch-mock": "^9.1.1",
"gts": "^5.0.1",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"karma": "^6.3.2",
"karma-browserstack-launcher": "^1.6.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-edge-launcher": "^0.4.1",
"karma-firefox-launcher": "^2.1.2",
"karma-ie-launcher": "^1.0.0",
"karma-junit-reporter": "^2.0.1",
"karma-mocha": "^2.0.1",
"karma-safari-launcher": "^1.0.0",
"karma-should": "^1.0.0",
"mocha": "^9.0.0",
"pre-commit": "^1.2.2",
"prettier": "1.18.2",
"rollup": "^2.75.7",
"shelljs": "^0.8.4",
"should": "^7.1.0",
"sinon": "^16.1.3",
"ts-jest": "^29.1.0",
"tslib": "^2.1.0",
"typescript": "^5.0.2",
"uglify-js": "^3.4.9",
"webpack": "^5.36.2",
"webpack-cli": "^5.0.2"
},
"dependencies": {
"@babel/runtime": "^7.23.2"
}
}