mirror of
https://github.com/kou029w/jest-hands-on.git
synced 2025-02-04 07:38:37 +00:00
Compare commits
5 commits
6e851b31d0
...
f9451ff736
Author | SHA1 | Date | |
---|---|---|---|
f9451ff736 | |||
d0c463667a | |||
8bac7ca085 | |||
008b1f2afd | |||
b297d78575 |
13 changed files with 6503 additions and 2934 deletions
10
.github/workflows/github-pages.yml
vendored
10
.github/workflows/github-pages.yml
vendored
|
@ -12,18 +12,12 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
environment: github-pages
|
environment: github-pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: alpine
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: Homebrew/actions/setup-homebrew@master
|
|
||||||
- id: brew_cache
|
|
||||||
run: echo "::set-output name=dir::$(brew --cache)"
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ steps.brew_cache.outputs.dir }}
|
|
||||||
key: brew-v3
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
brew bundle
|
apk add mdbook tar
|
||||||
mdbook build
|
mdbook build
|
||||||
- uses: actions/upload-pages-artifact@v2
|
- uses: actions/upload-pages-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -6,6 +6,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with: { node-version: lts/*, cache: yarn }
|
with:
|
||||||
- run: yarn
|
node-version: "lts/*"
|
||||||
- run: yarn test
|
cache: npm
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm test
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
overrides:
|
|
||||||
- files: "*.md"
|
|
||||||
options:
|
|
||||||
parser: markdown-nocjsp
|
|
1
Brewfile
1
Brewfile
|
@ -1 +0,0 @@
|
||||||
brew "mdbook"
|
|
|
@ -4,14 +4,12 @@
|
||||||
|
|
||||||
### 前提
|
### 前提
|
||||||
|
|
||||||
- Ubuntu 20.04 LTS
|
- mdBook
|
||||||
- Homebrew
|
|
||||||
|
|
||||||
### 手順
|
### 手順
|
||||||
|
|
||||||
下記のコマンドを実行すると `book` ディレクトリ以下にファイルが生成されます。
|
下記のコマンドを実行すると `book` ディレクトリ以下にファイルが生成されます。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew bundle
|
|
||||||
mdbook build
|
mdbook build
|
||||||
```
|
```
|
||||||
|
|
6480
package-lock.json
generated
Normal file
6480
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -9,13 +9,12 @@
|
||||||
"templates/*"
|
"templates/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest src && yarn workspaces run test",
|
"test": "jest src && npm test --workspaces",
|
||||||
"format": "prettier --ignore-path .gitignore --write ."
|
"format": "prettier --write ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0"
|
||||||
"prettier-plugin-md-nocjsp": "^1.5.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3"
|
"jest": "^29.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3"
|
"jest": "^29.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3"
|
"jest": "^29.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3"
|
"jest": "^29.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"watch": "jest --watchAll"
|
"watch": "jest --watchAll"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.20.2",
|
"@babel/preset-env": "^7.23.3",
|
||||||
"jest": "^29.4.3"
|
"jest": "^29.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue