-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 2.69 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
{
"name": "go-music",
"scripts": {
"clean": "rm -rf build/",
"finished": "echo -e '\n――― Backend build finished! ―――\n'",
"make_runtime_dirs": "mkdir -p build/runtime/{config,data}",
"copy_frontend": "cp -r frontend/build build/frontend",
"generate_schema": "echo -e 'Generating schema.gql file.' && node build/go-music --gen-schema",
"build:dev": "webpack --config webpack.dev.js && npm run --silent make_runtime_dirs && npm run --silent finished",
"build:prod": "webpack --config webpack.prod.js && npm run --silent make_runtime_dirs && npm run --silent finished",
"build:release": "webpack --config webpack.prod.js --env.release && npm run --silent copy_frontend && npm run --silent finished",
"build": "func() { [ -z \"$1\" ] && mode='dev' || mode=\"$1\"; npm run --silent clean && npm run --silent build:back \"$mode\" && npm run --silent generate_schema && npm run --silent build:front \"$mode\"; }; func",
"build:front": "func() { [ -z \"$1\" ] && mode='dev' || mode=\"$1\"; npm run --silent --prefix 'frontend/' build \"$mode\"; }; func",
"build:back": "func() { [ -z \"$1\" ] && mode='dev' || mode=\"$1\"; npm run --silent clean && npm run --silent build:\"$mode\"; }; func",
"start": "node build/go-music",
"start:devServer": "echo 'Starting frontend development server:' && npm run --prefix frontend/ start",
"start:apiOnly": "echo -e 'Starting backend server (API only):\n' && node build/go-music --api-only"
},
"devDependencies": {
"@types/better-sqlite3": "^5.4.1",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.11",
"@types/graphql": "^14.5.0",
"@types/he": "^1.1.1",
"@types/iarna__toml": "^2.0.1",
"@types/minimist": "^1.2.1",
"@types/node": "^13.13.45",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"apollo": "^2.32.5",
"copy-webpack-plugin": "^5.1.2",
"eslint": "^6.8.0",
"eslint-loader": "^3.0.4",
"raw-loader": "^4.0.2",
"ts-loader": "^6.2.2",
"typegraphql-description-loader": "^1.1.0",
"typescript": "^3.9.9",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-merge": "^4.2.2",
"webpack-node-externals": "^1.7.2",
"webpack-shell-plugin": "^0.5.0"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"apollo-server-express": "^2.21.0",
"better-sqlite3": "^7.1.2",
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"graphql": "^15.5.0",
"minimist": "^1.2.5",
"music-metadata": "^7.8.1",
"reflect-metadata": "^0.1.13",
"strip-indent": "^3.0.0",
"type-graphql": "^1.1.1",
"typedi": "^0.10.0",
"walk-async-fd": "^1.1.0",
"xdg-basedir": "^4.0.0"
}
}