Skip to content

Commit 7e651a9

Browse files
committed
Add GitHub Actions
1 parent 1d49038 commit 7e651a9

File tree

4 files changed

+57
-181
lines changed

4 files changed

+57
-181
lines changed

.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check:
7+
name: Check
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js 12
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run lint

.github/workflows/deploy.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: master
6+
7+
jobs:
8+
deploy:
9+
name: Deploy
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js 12
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm run build
20+
- uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: dist
24+
publish_branch: master

package-lock.json

+2-161
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+13-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
{
2-
"name": "typescripttolua.github.io",
3-
"version": "1.0.0",
4-
"description": "",
2+
"private": true,
53
"scripts": {
64
"build": "rimraf dist && webpack --mode production",
75
"dev": "webpack-dev-server --mode development",
8-
"deploy": "npm run build && npx gh-pages -d dist -b master",
96
"lint": "npm run lint:prettier",
107
"lint:prettier": "prettier --check \"**/*.{js,ts,yml,json,md,html,scss,webmanifest}\""
118
},
12-
"keywords": [],
13-
"author": "",
14-
"license": "",
159
"prettier": {
1610
"printWidth": 120,
1711
"trailingComma": "all"
1812
},
19-
"devDependencies": {
13+
"dependencies": {
2014
"@types/highlight.js": "^9.12.3",
15+
"@types/lz-string": "^1.3.33",
16+
"@types/webpack-env": "^1.15.1",
17+
"fengari-web": "^0.1.4",
18+
"highlight.js": "^9.18.0",
19+
"lua-types": "^2.7.0",
20+
"lz-string": "^1.4.4",
21+
"monaco-editor": "^0.19.3",
22+
"renderjson": "^1.4.0",
23+
"typescript-to-lua": "^0.31.0"
24+
},
25+
"devDependencies": {
2126
"@types/node": "^13.5.0",
2227
"css-loader": "^3.4.2",
2328
"file-loader": "^5.0.2",
24-
"gh-pages": "^2.2.0",
2529
"html-loader": "^0.5.5",
2630
"html-webpack-plugin": "^3.2.0",
2731
"prettier": "^1.19.1",
@@ -38,16 +42,5 @@
3842
"webpack-cli": "^3.3.10",
3943
"webpack-dev-server": "^3.10.1",
4044
"worker-loader": "^2.0.0"
41-
},
42-
"dependencies": {
43-
"@types/lz-string": "^1.3.33",
44-
"@types/webpack-env": "^1.15.1",
45-
"fengari-web": "^0.1.4",
46-
"highlight.js": "^9.18.0",
47-
"lua-types": "^2.7.0",
48-
"lz-string": "^1.4.4",
49-
"monaco-editor": "^0.19.3",
50-
"renderjson": "^1.4.0",
51-
"typescript-to-lua": "^0.31.0"
5245
}
5346
}

0 commit comments

Comments
 (0)