-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.min.json
268 lines (199 loc) · 8.9 KB
/
package.min.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
// Note1: Taken from: https://medium.com/dev-bits/everything-i-know-about-writing-modular-javascript-applications-37c125d8eddf
// Note2: Taken from: https://medium.com/@carmenwick/webpack-tutorial-part-1-the-basics-f82e3879a3f8
{
// The name of this project
"name": "pixi_ui",
// The version of this project
"version": "1.0.0",
// The description of this project
"description": "Port of pixi_ui to typescript and PIXI v6",
// The main output of this package
"main": "./dist/pixi_ui.js",
"scripts": {
// --color Enables/Disables colors on the console.
"devServer": "webpack serve --color ",
"devServerPack": "npm run build:dev && webpack serve --color --open ",
"start": "npm run build:prod && webpack serve --color",
// Testing server components of pixi_ui
"example": "npm run devServerPack index.html",
"example1": "npm run devServerPack Examples/popup.html",
"example2": "npm run devServerPack Examples/popupmenu.html",
"example3": "npm run devServerPack Examples/app.html",
"example4": "npm run devServerPack Examples/message.html",
"example5": "npm run devServerPack Examples/modal.html",
"example6": "npm run devServerPack Examples/theme.html",
"example7": "npm run devServerPack Examples/progress.html",
"example8": "npm run devServerPack Examples/badge.html",
"example9": "npm run devServerPack Examples/button.html",
"example10": "npm run devServerPack Examples/buttongroup.html",
"postinstall": "echo npm run bootstrap",
// How we do a clean
// Why rimraf? rimraf is device independant.
"clean": "rimraf js/* dist/pixi_ui.*",
"cleanSyncJS": "rimraf rmdirSync js/*",
"cleanCache": "rimraf $HOME/Library/Caches/Google/Chrome $HOME/Library/Caches/com.microsoft.VSCode",
// Unused at this time
"xpretest": "echo npm run lint && npm run build",
"coverage": "echo npm run pretest && nyc floss --path=test && nyc report --reporter=html",
"coverage:ci": "echo npm run pretest && nyc floss --path=test && nyc report --reporter=text-lcov > coverage.lcov",
"docs": "mkdirp dist && jsdoc -c jsdoc.conf.json -R README.md",
"xtypes:default": "echo mkdirp dist/types && jsdoc -c types/jsdoc.conf.json && node types/assemble pixi.js",
// Run type checking only, do not build
// Run rimraf synchronously so tsc starts fresh
"types": "npm run cleanSyncJS && tsc",
// Continually Run type checking only, do not build
"startTypes": "tsc --watch",
// Run pixify to create pixi_ui.js library
// Just another way of creating the library. not supported though.
// It was used for some comparison testing at one time.
"buildPixify": "pixify --name pixi_ui --license ./src/LICENSE --source ./js --dest ./dist --compress false --minify false",
"startBuildPixify": "pixify --name pixi_ui --license ./src/LICENSE --source ./js --dest ./dist --compress false --minify false --watch",
// Unused at this time
"lint": "eslint --ext .ts src/* ",
"lintfix": "npm run lint src/*.ts --fix",
"pretest": "echo 'pretest. not running: npm run build:dev'",
// Tests are done comparing output to original source
"test": "npm run clean && npm run build:dev && COMPARE_ORIGINAL=true mochapack --mode development --require test/pixi-setup.js test/src/*.ts test/src/*/*.ts",
// Tests without comparing output to original source
"testNC": "npm run clean && npm run build:dev && mochapack --mode development --require test/pixi-setup.js test/src/*.ts test/src/*/*.ts",
// A single test compared with Original source
"aTest": "COMPARE_ORIGINAL=true mochapack --mode development --require test/pixi-setup.js",
// A single test without comparing to Original source
"aTestNC": "mochapack --mode development --require test/pixi-setup.js",
// continually watch for changes and test them
//"startTest": "npm run build:dev && mochapack --watch --mode development --require test/pixi-setup.js test/*.ts test/*/*.ts",
"startTest": "npm run build:dev && COMPARE_ORIGINAL=true mochapack --watch --mode development --require test/pixi-setup.js test/*.ts test/*/*.ts",
// Clean prior to any type of build
"prebuild": "echo 'Not running clean'",
"prebuild:dev": "echo 'Not running clean'",
"prebuild:prod": "npm run clean",
// the default build is for dev
"build": "npm run build:dev",
// Do not bundle pixi.js
"build:prod": "webpack --mode production",
// Bundle pixi.js for testing
"build:dev": "webpack --mode development",
// Alias
"dev": "npm run build:dev",
"postbuild": "tsc",
// Continious building is in development mode
"watch": "webpack --mode development --watch",
// Alias
"startBuild": "npm run watch",
// Not used at this time
"predist": "npm run build:prod && npm run test",
"dist": "echo npm run docs",
"postdist": "echo copyfiles -f bundles/*/dist/* dist && copyfiles -f \"packages/**/dist/*\" dist/packages",
"prerelease": "echo npm run clean:build && npm test",
"postversion": "echo npm run build:prod",
"release": "echo npm publish . "
},
// Not used at this time
"xpre-commit": [
"lintfix"
],
// Me ;-)
// Though a lot of credit goes to Institute of Wissensmedien (IWM)
"author": "John Talbot",
// I believe in totally free use as long as it is stated as such.
// I could not find any Licenses at IWM, but the MIT one is most relevant
"license": "MIT",
// Production requirements
"dependencies": {
"eventemitter3": "^4.0.0",
"pixi.js": "^6.5.6"
},
// Development requirements
"devDependencies": {
// The command line interface to babel
"@babel/cli": "^7.19.3",
// The core translator from javascript to its final form
"@babel/core": "^7.19.3",
// Allow class properties in javascript
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
// Allow private properties in javascript
"@babel/plugin-proposal-private-methods": "^7.18.6",
// How babel turns output into compatability between firefox/IE ...
"@babel/preset-env": "^7.19.3",
// The same for typescript
"@babel/preset-typescript": "^7.18.6",
// Pixi javascript documentation templates
"@pixi/jsdoc-template": "^2.6.0",
// For type checking use of jquery in main.ts
"@types/jquery": "^3.5.14",
// For type checking of mocha test files
"@types/mocha": "^10.0.0",
// For Typescript and pixi type definitions
// already part of pixi5
//"@types/pixi.js": "^5.0.0",
// For underscore, when it gies, this goes
"@types/underscore": "^1.11.4",
// The eslint parser to use
"babel-eslint": "^10.1.0",
// The loader to convert to proper javascript
"babel-loader": "^8.2.5",
// A real canvas
"canvas": "^2.10.1",
// Chai methods for Unit testing
"chai": "~4.3.6",
// Used in post distribution. Not used yet ...
"copyfiles": "^2.4.1",
// mocha testing of pixi with a debuggable canvas
"electron": "^15.5.7",
// Lint for javascript
"eslint": "^8.25.0",
// We use config-prettier and in our tslint.config
"eslint-config-prettier": "^6.10.0",
// For Webpack to use eslint
"eslint-webpack-plugin": "^3.2.0",
// mocha testing of pixi with a debuggable canvas
"floss": "git://github.com/ztalbot2000/floss#f2de91cc36f25809ee4cb6458da30a4facad91b6",
// used for testing if files exist
"fs": "0.0.1-security",
// High resolution Pixi event handler
// included automatically?
//"eventemitter3": "^4.0.0",
"glob": "^8.0.3",
"jsdoc": "^3.6.11",
// A canvas template for jsdom unit testing, when there is no canvas
"jsdom-canvas-2": "^11.6.3-alpha.0",
// Another compressor like Uglify. Remove ????
"minimist": "^1.2.6",
// Unit testing
"mocha": "^7.2.0",
// Allow arrays of webpack.config.js Configuration elements
"mochapack": "^2.1.4",
// Hmm
"nyc": "^15.0.0",
// A way of getting path information like __dirname
"path": "^0.12.7",
// For mocha testing of source like apps.ts
"pixi.js-legacy": "^6.5.6",
// Dont know how to get webpack to create a proper library yet
"pixify": "^1.9.0",
// Hmmm
"pre-commit": "^1.2.2",
// For a platform independant way of removing files
"rimraf": "^3.0.2",
// For unit testing listeners
"sinon": "^14.0.1",
"sinon-chai": "^3.7.0",
// A Webpack minimizer of the final product
"terser-webpack-plugin": "^5.3.6",
// The Typescript loader into webpack
"ts-loader": "^9.4.1",
// Use typescript to build webpack.conf.js
"ts-node": "^10.9.1",
// Typescript documentation compiler
"tsd-jsdoc": "^2.5.0",
// The typescript compiler
"typescript": "^4.8.4",
// Webpack itself
"webpack": "^5.74.0",
// Webpack command line interface
"webpack-cli": "^4.10.0",
// Webpack web server
"webpack-dev-server": "^4.11.1"
}
}