-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
386 changed files
with
19,763 additions
and
31,685 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,4 @@ | ||
!**/.* | ||
node_modules | ||
lib | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @type import('haoma').ESLintConfig */ | ||
module.exports = require('haoma').getESLintConfig() |
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,46 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
if: ${{ startsWith(github.event.head_commit.message, 'chore(release):') }} | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
persist-credentials: false | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '13' | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('pnpm-lock.yaml') }} | ||
- if: ${{ steps.cache.outputs.cache-hit != 'true' }} | ||
run: npx pnpm install | ||
- run: | | ||
npm run build | ||
npm run test | ||
if $IS_BETA; then | ||
npm run publish-package-next | ||
else | ||
npm run publish-package | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
IS_BETA: ${{ contains(github.event.head_commit.message, 'beta') }} | ||
- uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/dist | ||
TARGET_FOLDER: v3 |
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,32 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '13' | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: node_modules | ||
key: ${{ hashFiles('pnpm-lock.yaml') }} | ||
- if: ${{ steps.cache.outputs.cache-hit != 'true' }} | ||
run: npx pnpm install | ||
- run: | | ||
npm run build | ||
npm run test-with-coverage | ||
npx codecov | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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,7 +1,9 @@ | ||
*.log | ||
.DS_Store | ||
Thumbs.db | ||
node_modules | ||
*.stackdump | ||
.rpt2_cache | ||
coverage | ||
lib | ||
.typedoc | ||
*.tsbuildinfo | ||
*.log* | ||
/lib | ||
/dist | ||
/coverage | ||
/docs |
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 @@ | ||
shamefully-hoist=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,6 @@ | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
pnpm-lock.yaml | ||
lib | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @type import('haoma').PrettierConfig */ | ||
module.exports = require('haoma').getPrettierConfig() |
This file was deleted.
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,21 @@ | ||
const pkg = require('./package.json') | ||
|
||
/** | ||
* @param {String} content | ||
*/ | ||
module.exports.readVersion = content => { | ||
return content.match(new RegExp(`${pkg.name}@([^']+)'`))[1] | ||
} | ||
|
||
/** | ||
* @param {String} content | ||
* @param {String} version | ||
*/ | ||
module.exports.writeVersion = (content, version) => { | ||
const prevVersion = module.exports.readVersion(content) | ||
const nextVersion = version.includes('beta') ? prevVersion : version | ||
return content.replace( | ||
new RegExp(`(?<=${pkg.name}@)[^']+(?=')`, 'g'), | ||
nextVersion, | ||
) | ||
} |
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,14 @@ | ||
/** @type import('standard-version').Options */ | ||
module.exports = { | ||
// ref: https://github.com/conventional-changelog/standard-version#can-i-use-standard-version-for-additional-metadata-files-languages-or-version-files | ||
bumpFiles: [ | ||
{ | ||
filename: 'package.json', | ||
type: 'json', | ||
}, | ||
{ | ||
filename: 'README.md', | ||
updater: '.versionrc.README-updater.js', | ||
}, | ||
], | ||
} |
This file was deleted.
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 |
---|---|---|
@@ -1,24 +1,3 @@ | ||
{ | ||
"eslint.enable": true, | ||
"eslint.nodePath": "./node_modules", | ||
"eslint.packageManager": "yarn", | ||
"eslint.run": "onSave", | ||
"eslint.options": { | ||
"ignorePath": ".gitignore", | ||
"cache": true, | ||
"cacheLocation": "./node_modules/.cache/eslint" | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"files.associations": { | ||
"*.json": "jsonc" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.