-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: use pnpm * chore!: drop support for Node v10 * chore: remove circleci, use github workflows for everything * refactor: use typescript * chore: clean up tests for new linting * chore: try to fix tests in CI * chore: update tsconfig to es2018 to remove optional chaining
- Loading branch information
1 parent
9d0fe7c
commit a93ca8c
Showing
42 changed files
with
9,249 additions
and
11,959 deletions.
There are no files selected for viewing
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
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 +1,8 @@ | ||
test/output | ||
/node_modules | ||
dist | ||
*.snap | ||
output.js | ||
*-wps-hmr.* | ||
*.hot-update.js | ||
test/**/output | ||
.eslintrc.js |
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,7 @@ | ||
module.exports = { | ||
extends: ["shellscape/typescript"], | ||
parserOptions: { | ||
project: ["./tsconfig.eslint.json"], | ||
tsconfigRootDir: __dirname, | ||
} | ||
}; |
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,29 +1,44 @@ | ||
name: Node | ||
name: Windows | ||
|
||
on: [push, pull_request] | ||
on: | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-2019 | ||
|
||
strategy: | ||
matrix: | ||
node: [ '14', '12', '10' ] | ||
node: ['16'] | ||
|
||
name: ${{ matrix.node }} (Windows) | ||
name: Node v${{ matrix.node }} | ||
steps: | ||
- name: Configure git line-breaks | ||
run: git config --global core.autocrlf false | ||
- name: Checkout Commit | ||
uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: checkout master | ||
run: git branch -f master origin/master | ||
- name: npm install | ||
run: npm ci | ||
- name: run tests | ||
run: npm run test | ||
- name: Configure git line-breaks | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Checkout Commit | ||
uses: actions/checkout@v1 | ||
|
||
- name: Checkout Master | ||
run: git branch -f master origin/master | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: install pnpm | ||
run: npm install pnpm -g | ||
|
||
- name: pnpm install | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: run tests | ||
run: pnpm test |
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,25 @@ | ||
name: Pull Request Title Format | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
prTitle: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check PR Title | ||
uses: clowdhaus/actions/[email protected] | ||
with: | ||
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```" | ||
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*$' | ||
github-token: ${{ secrets.GITHUB_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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Validate | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node: ['16', '14', '12'] | ||
|
||
name: Node v${{ matrix.node }} | ||
|
||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Checkout Master | ||
run: git branch -f master origin/master | ||
|
||
- name: Install pnpm | ||
run: npm install pnpm -g | ||
|
||
- name: Sanity Check | ||
run: | | ||
echo branch `git branch --show-current`; | ||
echo node `node --version`; | ||
echo yarn `pnpm --version` | ||
- name: pnpm install | ||
run: pnpm install | ||
|
||
- name: Audit Dependencies | ||
run: pnpm security | ||
|
||
- name: Build Packages | ||
run: pnpm build --recursive | ||
|
||
- name: Lint Repo | ||
run: pnpm lint:js | ||
|
||
- name: Run Tests | ||
run: pnpm ci:coverage |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ coverage | |
coverage.lcov | ||
node_modules | ||
test/output/ | ||
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,3 @@ | ||
# pnpm options | ||
enable-pre-post-scripts = true | ||
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,8 @@ | ||
.github/ISSUE_TEMPLATE | ||
.github/ISSUE_TEMPLATE.md | ||
.github/PULL_REQUEST_TEMPLATE.md | ||
packages/json/test/fixtures/garbage/* | ||
packages/yaml/test/fixtures/**/* | ||
**/dist/ | ||
**/fixtures/ | ||
pnpm-lock.yaml |
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,3 @@ | ||
// Note: This file is necessary so that prettier writes which happen in hooks and scripts match the | ||
// same config that we're using from the eslint-config package. | ||
module.exports = require('eslint-config-shellscape/prettier'); |
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
Oops, something went wrong.