-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.71 KB
/
package.json
File metadata and controls
85 lines (85 loc) · 2.71 KB
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
{
"name": "mixpanel-minimal",
"version": "0.2.0",
"description": "Tools to analyze and create minimal builds of Mixpanel SDK by removing unused methods",
"type": "module",
"main": "src/minipanel.js",
"types": "src/minipanel.d.ts",
"exports": {
".": {
"types": "./src/minipanel.d.ts",
"import": "./src/minipanel.js",
"default": "./src/minipanel.js"
}
},
"scripts": {
"analyze": "node tools/analyze.js",
"analyze:bundle": "webpack-bundle-analyzer dist/stats.json",
"find-dead": "node tools/find-dead-code.js",
"find-dead:verbose": "node tools/find-dead-code.js --verbose --context",
"trim": "node tools/trim.cjs",
"trim:dry": "node tools/trim.cjs --dry-run --verbose",
"build": "rollup -c",
"build:ts": "tsc --project tsconfig.json",
"build:webpack": "webpack --mode production --json > dist/stats.json",
"lint": "eslint src/**/*.js --ext .js",
"lint:unused": "eslint src/**/*.js --ext .js --rule 'no-unused-vars: error'",
"lint:trimmed": "eslint src/trimmed/*.js",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"clean": "rm -rf dist trimmed reports",
"size": "node tools/size-report.js",
"full": "npm run trim && npm run size"
},
"keywords": [
"mixpanel",
"optimization",
"tree-shaking",
"bundle-size",
"dead-code-elimination"
],
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/generator": "^7.23.0",
"@babel/parser": "^7.23.0",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "^7.23.0",
"@babel/traverse": "^7.23.0",
"@babel/types": "^7.23.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-terser": "^0.4.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"acorn": "^8.10.0",
"acorn-walk": "^8.2.0",
"babel-loader": "^9.1.3",
"chalk": "^4.1.2",
"eslint": "^8.50.0",
"eslint-plugin-tree-shaking": "^1.10.0",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^29.7.0",
"prettier": "^3.6.2",
"rollup": "^4.0.0",
"rollup-plugin-visualizer": "^5.9.0",
"terser": "^5.20.0",
"typescript": "^5.2.0",
"webpack": "^5.88.0",
"webpack-bundle-analyzer": "^4.9.0",
"webpack-cli": "^5.1.0"
},
"dependencies": {
"commander": "^11.0.0",
"glob": "^10.3.0",
"lodash": "^4.17.21"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yourusername/mixpanel-minimal.git"
},
"bugs": {
"url": "https://github.com/yourusername/mixpanel-minimal/issues"
},
"homepage": "https://github.com/yourusername/mixpanel-minimal#readme"
}