-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ja-space-around-link to preset (#53)
* feat: add ja-space-around-link to preset - 無効の状態で追加する * feat(website): add website * update readme * update readme * CI: use latest * CI: update CI
- Loading branch information
Showing
10 changed files
with
2,096 additions
and
40 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
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,37 @@ | ||
name: website | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Set Env | ||
run: | | ||
echo "OWNER_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}')" >> $GITHUB_ENV | ||
echo "REPO_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')" >> $GITHUB_ENV | ||
echo "CURRENT_VERSION=$(node -p 'require("./package.json").version')" >> $GITHUB_ENV | ||
- name: Install | ||
run: yarn install | ||
- name: Build | ||
run: | | ||
yarn install | ||
npm run website -- --metadataVersion="${CURRENT_VERSION}" | ||
env: | ||
OWNER_NAME: ${{ env.OWNER_NAME }} | ||
REPO_NAME: ${{ env.REPO_NAME }} | ||
CURRENT_VERSION: ${{ env.CURRENT_VERSION }} | ||
working-directory: website/ | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./website/dist |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"lerna": "2.0.0-beta.24", | ||
"version": "2.3.0", | ||
"useWorkspaces": true, | ||
"npmClient": "yarn" | ||
|
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
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
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
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,8 @@ | ||
{ | ||
"filters": { | ||
"comments": true | ||
}, | ||
"rules": { | ||
"preset-ja-spacing": true | ||
} | ||
} |
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,18 @@ | ||
{ | ||
"private": true, | ||
"name": "website", | ||
"version": "5.0.0", | ||
"homepage": "https://github.com/textlint-ja/textlint-rule-preset-ja-spacing", | ||
"scripts": { | ||
"textlint": "textlint ../README.md", | ||
"textlint:fix": "textlint --fix ../README.md", | ||
"test": "npm run textlint", | ||
"website": "textlint-website-generator --output-dir ./dist" | ||
}, | ||
"devDependencies": { | ||
"@textlint/website-generator": "^0.15.0", | ||
"textlint": "^13.3.3", | ||
"textlint-filter-rule-comments": "^1.2.2", | ||
"textlint-rule-preset-ja-spacing": "^2.3.0" | ||
} | ||
} |
Oops, something went wrong.