-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
27 lines (27 loc) · 1.01 KB
/
Copy pathpackage.json
File metadata and controls
27 lines (27 loc) · 1.01 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
{
"name": "nice-try-train",
"version": "2.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"chokidar-cli": "^3.0.0",
"fs-extra": "^11.2.0",
"node-dev": "^8.0.0",
"npm-run-all": "^4.1.5",
"ts-node": "^10.9.2",
"typed-factorio": "^3.9.0",
"typescript": "^5.7.2",
"typescript-to-lua": "^1.28.1"
},
"scripts": {
"build": "tstl",
"build:watch": "tstl --watch",
"deploy:clean": "node scripts/clean.js",
"deploy:copy": "node scripts/install.js",
"deploy": "run-s build deploy:clean deploy:copy",
"watch": "chokidar 'locale/**/*.cfg' '**/*.lua' '**/*.json' -c 'npm run deploy'",
"prepackage": "rm -rf build && mkdir build",
"package": "VERSION=$(cat info.json | jq -r .version) && RELEASE=nice-try-train_$VERSION && rm -rf $RELEASE && mkdir -p $RELEASE && cp -r changelog.txt *.lua locale info.json $RELEASE && rm -rf build && mkdir -p build && zip -r build/$RELEASE.zip $RELEASE && rm -rf $RELEASE",
"release": "run-s build package"
}
}