-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
139 lines (139 loc) · 4.57 KB
/
package.json
File metadata and controls
139 lines (139 loc) · 4.57 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
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
{
"name": "pptxviewjs",
"version": "1.1.8",
"description": "A JavaScript library for viewing PowerPoint presentations in web browsers using Canvas rendering",
"main": "dist/PptxViewJS.cjs.js",
"module": "dist/PptxViewJS.es.js",
"browser": "dist/PptxViewJS.min.js",
"types": "dist/PptxViewJS.d.ts",
"exports": {
".": {
"types": "./dist/PptxViewJS.d.ts",
"browser": {
"import": "./dist/PptxViewJS.es.js",
"require": "./dist/PptxViewJS.cjs.js",
"default": "./dist/PptxViewJS.es.js"
},
"import": "./dist/PptxViewJS.es.js",
"require": "./dist/PptxViewJS.cjs.js",
"default": "./dist/PptxViewJS.es.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"scripts": {
"build": "npm run build:clean && rollup -c rollup.config.mjs && npm run build:types",
"build:min": "npm run build:clean && rollup -c rollup.config.mjs --environment BUILD=minified && npm run build:types",
"build:clean": "rimraf dist && node ./cli/ensure-dist.mjs",
"build:types": "node ./cli/copy-types.mjs",
"build:watch": "rollup -c rollup.config.mjs -w",
"build:production": "cross-env NODE_ENV=production npm run build",
"build:public": "rimraf pptxviewjs/public && mkdir -p pptxviewjs/public && cp -r dist types LICENSE README.md package.json pptxviewjs/public/",
"clean": "npm run build:clean",
"prebuild": "npm run build:clean",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage --watchAll=false",
"test:unit": "jest test/basic.test.js test/utils.test.js test/PPTXViewer.test.js",
"test:integration": "jest test/integration.test.js",
"test:performance": "jest test/performance.test.js",
"test:headless": "node test/headless-load.js",
"test:all": "npm run test:unit && npm run test:integration && npm run test:performance",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"format": "prettier --write \"src/**/*.js\"",
"format:check": "prettier --check \"src/**/*.js\"",
"quality": "npm run lint && npm run format:check && npm run test:ci",
"prepublishOnly": "npm run build:production",
"vercel-build": "npm run build:min",
"deploy": "./tools/deploy-to-vercel.sh",
"deploy:force": "./tools/deploy-to-vercel.sh --force",
"deploy:prod": "npm run build:min && vercel --prod --yes",
"deploy:preview": "npm run build:min && vercel --yes",
"publish:dry": "npm pack --dry-run",
"pack:dry": "npm pack --dry-run --ignore-scripts",
"dev": "rollup -c -w & python3 -m http.server 8080",
"start": "python3 -m http.server 8080",
"serve": "python3 -m http.server 8080",
"serve-https": "python3 -m http.server 8443 --bind 0.0.0.0",
"benchmark": "node test/benchmark.js",
"profile": "node --prof test/profile.js",
"pptx-to-jpg": "node cli/pptx-converter.js",
"convert": "./tools/pptx-to-jpg.sh"
},
"keywords": [
"pptx",
"powerpoint",
"presentation",
"slide-viewer",
"canvas",
"javascript-library",
"browser",
"viewer",
"rendering",
"xml-parser",
"zip-processor"
],
"author": "Alex Wong",
"license": "MIT",
"peerDependencies": {
"chart.js": ">=4.4.1",
"jszip": ">=3.10.1"
},
"peerDependenciesMeta": {
"chart.js": {
"optional": true
},
"jszip": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
"@babel/preset-env": "^7.28.0",
"@eslint/js": "^9.31.0",
"@jest/globals": "^30.0.5",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/rollup-darwin-x64": "4.50.2",
"babel-jest": "^30.0.5",
"canvas": "^3.1.2",
"chart.js": "^4.4.1",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.8",
"express": "^4.21.2",
"glob": "^11.0.3",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.0.5",
"jszip": "^3.10.1",
"multer": "^1.4.5-lts.1",
"nodemon": "^3.0.1",
"pptxgenjs": "^4.0.1",
"prettier": "^3.6.2",
"puppeteer": "^24.16.2",
"rimraf": "^5.0.7",
"rollup": "^4.45.1"
},
"engines": {
"node": ">=18.0.0"
},
"files": [
"dist/PptxViewJS.es.js",
"dist/PptxViewJS.cjs.js",
"dist/PptxViewJS.min.js",
"dist/PptxViewJS.d.ts",
"types/",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"sideEffects": true
}