Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Commit 0d4468f

Browse files
committed
feat: building building updated
1 parent ba855c8 commit 0d4468f

29 files changed

+10492
-685
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- name: Restore node_modules cache
19+
uses: actions/cache@v2
20+
with:
21+
path: '**/node_modules'
22+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
23+
- name: Install dependencies
24+
run: yarn ci
25+
- name: run linter
26+
run: yarn lint

.github/workflows/nodejs.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
with:
16+
fetch-depth: 0
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
- name: Restore node_modules cache
22+
uses: actions/cache@v2
23+
with:
24+
path: '**/node_modules'
25+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
26+
- name: Install dependencies and create dist
27+
run: yarn dist
28+
- name: Release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: npx semantic-release

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
/coverage
1010

1111
# production
12-
/build
13-
/dist
12+
**/build/
13+
**/*.js
14+
**/temp/
15+
**/dist/
1416

1517
# misc
1618
.DS_Store
@@ -26,4 +28,3 @@ yarn-error.log*
2628

2729
# Project specific
2830

29-

.vscode/launch.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,11 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
"type": "node",
9-
"name": "vscode-jest-tests",
10-
"request": "launch",
11-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/react-scripts",
12-
"args": [
13-
"test",
14-
"--env=jsdom",
15-
"--runInBand"
16-
],
17-
"cwd": "${workspaceFolder}",
18-
"console": "integratedTerminal",
19-
"protocol": "inspector",
20-
"internalConsoleOptions": "neverOpen",
21-
"disableOptimisticBPs": true
22-
},
237
{
248
"type": "chrome",
259
"request": "launch",
2610
"name": "Launch Chrome against localhost",
27-
"url": "http://localhost:3000",
11+
"url": "http://localhost:3001",
2812
"webRoot": "${workspaceFolder}"
2913
}
3014
]

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.exclude": {
3+
"**/node_modules/": true,
4+
"**/build/": true
5+
}
6+
}

common/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {};

host-express/index.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

host-express/package.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
{
2+
"name": "genetic-racers",
3+
"private":"true",
4+
"version": "0.0.0-development",
25
"scripts": {
3-
"build": "yarn i && cd ./host-express/ && yarn build"
6+
"script": "cd ./scripts/ && ts-node-script",
7+
"postinstall": "run-p install:*",
8+
"install:server": "yarn --cwd server install",
9+
"install:ui": "yarn --cwd ui install",
10+
"ci": "yarn install --ignore-scripts --frozen-lockfile & run-s ci:*",
11+
"ci:server": "yarn --cwd server install --frozen-lockfile",
12+
"ci:ui": "yarn --cwd ui install --frozen-lockfile",
13+
"build": "run-p build:*",
14+
"build:ui": "yarn --cwd ui build",
15+
"build:server": "yarn --cwd server build",
16+
"dist": "yarn ci && run-s build \"script dist\"",
17+
"dev": "run-p dev:*",
18+
"dev:server": "yarn --cwd server dev",
19+
"dev:ui": "yarn --cwd ui dev",
20+
"semantic-release": "semantic-release",
21+
"lint": "tslint -c tslint.json ./{ui/src,server/src,common}/**/*.ts{,x}",
22+
"lint:fix": "yarn lint --fix"
23+
},
24+
"devDependencies": {
25+
"@types/node": "^14.11.1",
26+
"npm-run-all": "^4.1.5",
27+
"pkg": "^4.4.9",
28+
"semantic-release": "^17.1.2",
29+
"ts-node": "^9.0.0",
30+
"tslint": "^6.1.3",
31+
"typescript": "^4.0.2"
32+
},
33+
"repository": {
34+
"type": "git",
35+
"url": "https://github.com/Sciator/GeneticRacers.git"
36+
},
37+
"release": {
38+
"assets": "dist/*"
439
}
540
}

0 commit comments

Comments
 (0)