-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 2.37 KB
/
package.json
File metadata and controls
51 lines (51 loc) · 2.37 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
{
"name": "2dk",
"version": "0.0.1-alpha",
"private": true,
"description": "For the love of 2D. A JavaScript SDK.",
"repository": "https://github.com/kitajchuk/2dk",
"type": "module",
"author": {
"name": "Brandon Lee Kitajchuk",
"email": "bk@kitajchuk.com",
"url": "https://kitajchuk.com"
},
"keywords": [
"2dk",
"2d",
"games",
"gaming",
"video games",
"game development"
],
"main": "./src/lib/index.js",
"scripts": {
"predev": "rm -rf dist && mkdir dist && mkdir dist/games && yarn copy:games && yarn build",
"dev": "concurrently \"yarn serve:dev\" \"yarn watch\"",
"serve:dev": "esbuild --servedir=dist",
"watch": "concurrently \"yarn watch:src\" \"yarn watch:studio\" \"yarn watch:games\" \"yarn watch:public\"",
"watch:src": "chokidar \"src/**/*\" -c \"yarn build:2dk && yarn build:app && yarn copy\"",
"watch:studio": "chokidar \"studio/src/client/**/*.scss\" -c \"yarn build:studio\"",
"watch:games": "chokidar \"studio/games/**/*\" -c \"yarn copy:games\"",
"watch:public": "chokidar \"public/index.html\" -c \"cp -R ./public/index.html ./dist/index.html\"",
"prebuild": "rm -rf dist && mkdir dist",
"build": "yarn build:dist && yarn build:2dk && yarn build:app && yarn build:studio",
"postbuild": "yarn copy && node games.js",
"build:dist": "cp -R ./public/* ./dist/",
"postbuild:dist": "sass --no-source-map --style=compressed ./src/styles/2dk.scss ./dist/2dk.css",
"build:2dk": "esbuild ./src/lib/index.js --bundle --minify --target=esnext --outfile=./studio/public/js/2dk.js",
"postbuild:2dk": "sass --no-source-map --style=compressed ./src/styles/2dk.scss ./studio/src/templates/2dk.css",
"build:app": "esbuild ./src/app.js --bundle --minify --target=esnext --outfile=./studio/src/templates/app.js",
"build:studio": "sass --no-source-map --style=compressed ./studio/src/client/styles/studio.scss ./studio/public/css/studio.css",
"copy": "yarn copy:the_missing_link && yarn copy:games",
"copy:the_missing_link": "cp ./studio/src/templates/2dk.css ./studio/games/the_missing_link && cp ./studio/src/templates/app.js ./studio/games/the_missing_link",
"copy:games": "cp -R ./studio/games/ ./dist/games/"
},
"devDependencies": {
"chokidar-cli": "^3.0.0",
"concurrently": "^9.1.2",
"esbuild": "^0.25.2",
"sass-embedded": "^1.86.0",
"shelljs": "^0.9.2"
}
}