-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from teobler/master
引入 nx 作为前端项目的构建工具
- Loading branch information
Showing
11 changed files
with
41,240 additions
and
24,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: web | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: go to web app folder | ||
shell: bash | ||
run: cd quake_webapp | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
- name: setup pnpm and install all dependencies | ||
uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: 6.0.2 | ||
run_install: | | ||
- recursive: true | ||
- name: Derive appropriate SHAs for base and head for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v2 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
|
||
- run: yarn run nx affected -- --target=build --base=origin/master --parallel --max-parallel=3 | ||
# - run: yarn run nx affected -- --target=test --base=origin/master --parallel --max-parallel=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"extends": "@nrwl/workspace/presets/npm.json", | ||
"npmScope": "quake_webapp", | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "@nrwl/nx-cloud", | ||
"options": { | ||
"cacheableOperations": [ | ||
"build", | ||
"test", | ||
"lint", | ||
"package", | ||
"prepare" | ||
], | ||
"accessToken": "NWZhOTRlMDItNDgyNy00ZjMyLTk0ZWQtODJjMWZmZmQxMTNifHJlYWQtd3JpdGU=" | ||
} | ||
} | ||
}, | ||
"targetDependencies": { | ||
"build": [ | ||
{ | ||
"target": "build", | ||
"projects": "dependencies" | ||
} | ||
], | ||
"prepare": [ | ||
{ | ||
"target": "prepare", | ||
"projects": "dependencies" | ||
} | ||
], | ||
"package": [ | ||
{ | ||
"target": "package", | ||
"projects": "dependencies" | ||
} | ||
] | ||
}, | ||
"affected": { | ||
"defaultBase": "master" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.