Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "update nx-scripts" #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Transpile
run: |
yarn
yarn nx run 2021-app:build
yarn nx run 2023-app:build
yarn 2021-app:build
yarn 2023-app:build
env:
CI: true
NEXT_PUBLIC_NEWT_SPACE_UID: ${{ secrets.NEXT_PUBLIC_NEWT_SPACE_UID }}
Expand All @@ -57,8 +57,8 @@ jobs:
# `_` から始まるディレクトリが見えず 404 となってしまう対策を追加
- name: Export
run: |
yarn nx run 2021-app:export
yarn nx run 2023-app:export
yarn 2021-app:export
yarn 2023-app:export
touch dist/apps/2021-app/exported/.nojekyll
touch dist/apps/2023-app/exported/.nojekyll
rm -rf docs/2021 docs/2022-2023
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
- name: Typecheck
run: |
yarn
yarn nx run 2021-app:typecheck
yarn nx run 2023-app:typecheck
yarn 2021-app:typecheck
yarn 2023-app:typecheck
env:
CI: true

- name: Lint
run: |
yarn
yarn nx run 2021-app:lint
yarn nx run 2023-app:lint
yarn 2021-app:lint
yarn 2023-app:lint
env:
CI: true
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

bash ./bin/imagemin
npx nx run 2021-app:lint
npx nx run 2023-app:lint
npm run 2021-app:lint
npm run 2023-app:lint
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,25 @@
"author": "yuukit <[email protected]>",
"private": true,
"scripts": {
"prepare": "husky install"
"prepare": "husky install",
"2021-app:dev": "nx run 2021-app:serve",
"2021-app:build": "nx run 2021-app:build",
"2021-app:export": "nx run 2021-app:export",
"2021-app:typecheck": "nx run 2021-app:typecheck",
"2021-app:lint": "nx run 2021-app:lint",
"2023-app:dev": "nx run 2023-app:serve",
"2023-app:build": "nx run 2023-app:build",
"2023-app:export": "nx run 2023-app:export",
"2023-app:typecheck": "nx run 2023-app:typecheck",
"2023-app:lint": "nx run 2023-app:lint",
"shared-hooks:typecheck": "nx run shared-hooks:typecheck",
"shared-hooks:lint": "nx run shared-hooks:lint",
"shared-types:typecheck": "nx run shared-types:typecheck",
"shared-types:lint": "nx run shared-types:lint",
"shared-ui:storybook": "nx run shared-ui:storybook",
"shared-ui:build-storybook": "nx run shared-ui:build-storybook",
"shared-ui:typecheck": "nx run shared-ui:typecheck",
"shared-ui:lint": "nx run shared-ui:lint"
},
"dependencies": {
"@emotion/css": "11.10.6",
Expand Down