Skip to content

Commit fba0a6b

Browse files
shellscapeguybedford
authored andcommitted
chore(repo): remove circle ci, add validate workflow, update deps (#867)
* chore(repo): remove circle ci, add validate workflow, update deps * chore: add node 16, remove 10 * chore: add filters to workflows * chore: update workflow names * chore: centralize linting * chore: linting updates after consolidation * chore: update snaps * chore: more linting fixes * chore: update windows workflow to limit runs
1 parent 3a543df commit fba0a6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1449
-1708
lines changed

.circleci/config.yml

-118
This file was deleted.

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
.eslintrc.js
2+
**/dist
3+
**/node_modules
4+
**/test/**/output
5+
packages/commonjs/test/fixtures
6+
packages/typescript/test/fixtures/syntax-error

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ module.exports = {
5050
]
5151
},
5252
overrides: [
53+
{
54+
"files": ["**/test/**/*.{js,ts}"],
55+
"rules": {
56+
"no-console": "off"
57+
}
58+
},
5359
{
5460
"files": ["**/*.ts"],
5561
"rules": {

.github/workflows/node-windows.yml

+31-21
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
1-
name: Node
1+
name: Windows
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types:
6+
- edited
7+
- opened
8+
- synchronize
9+
push:
10+
branches:
11+
- "*"
412

513
jobs:
614
build:
7-
815
runs-on: windows-2019
916

1017
strategy:
1118
matrix:
12-
node: [ '12', '10' ]
19+
node: ["16", "14", "12"]
1320

14-
name: ${{ matrix.node }} (Windows)
21+
name: Node v${{ matrix.node }}
1522
steps:
16-
- name: Configure git line-breaks
17-
run: git config --global core.autocrlf false
18-
- name: Checkout Commit
19-
uses: actions/checkout@v1
20-
- name: Setup Node
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node }}
24-
- name: checkout master
25-
run: git branch -f master origin/master
26-
- name: install pnpm
27-
run: npm install pnpm -g
28-
- name: pnpm install
29-
run: pnpm install --ignore-scripts
30-
- name: run tests
31-
run: pnpm run ci:test
23+
- name: Configure git line-breaks
24+
run: git config --global core.autocrlf false
25+
26+
- name: Checkout Commit
27+
uses: actions/checkout@v1
28+
29+
- name: Setup Node
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node }}
33+
34+
- name: install pnpm
35+
run: npm install pnpm -g
36+
37+
- name: pnpm install
38+
run: pnpm install --ignore-scripts
39+
40+
- name: run tests
41+
run: pnpm run ci:test --filter ...[${{ github.sha }}]

.github/workflows/validate.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Validate Monorepo
2+
3+
on:
4+
pull_request:
5+
types:
6+
- edited
7+
- opened
8+
- synchronize
9+
push:
10+
branches:
11+
- "*"
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node: ["16", "14", "12"]
20+
21+
name: Node v${{ matrix.node }}
22+
23+
steps:
24+
- name: Checkout Commit
25+
uses: actions/checkout@v1
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node }}
31+
32+
- name: Install pnpm
33+
run: npm install pnpm -g
34+
35+
- name: Sanity Check
36+
run: |
37+
echo branch `git branch --show-current`;
38+
echo node `node --version`;
39+
echo yarn `pnpm --version`
40+
41+
- name: pnpm install
42+
run: pnpm install
43+
44+
- name: Audit Dependencies
45+
run: pnpm security
46+
47+
- name: Build Packages
48+
run: pnpm build --recursive
49+
50+
- name: Lint Monorepo
51+
run: pnpm lint --recursive
52+
53+
- name: Run Tests
54+
run: pnpm ci:coverage --filter ...[${{ github.sha }}]

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
enable-pre-post-scripts = true
12
link-workspace-packages = false
23
shamefully-hoist = true
34
shared-workspace-shrinkwrap = true

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12
1+
14

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.github/ISSUE_TEMPLATE
22
.github/ISSUE_TEMPLATE.md
33
.github/PULL_REQUEST_TEMPLATE.md
4+
packages/json/test/fixtures/garbage/*
5+
packages/yaml/test/fixtures/**/*
6+
**/dist

package.json

+6-11
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,16 @@
22
"name": "@rollup/plugins",
33
"private": true,
44
"scripts": {
5-
"ci:coverage": "node scripts/run-changed.js ci:coverage",
65
"ci:coverage:submit": "node scripts/codecov",
7-
"ci:lint": "node scripts/run-changed.js ci:lint",
8-
"ci:test": "node scripts/run-changed.js ci:test",
9-
"lint": "pnpm run lint:docs && npm run lint:json && pnpm run lint:package && node scripts/run-changed.js lint",
10-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
11-
"lint:js": "eslint scripts util",
12-
"lint:json": "prettier --write tsconfig.*.json codecov.yml pnpm-workspace.yaml",
13-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
6+
"lint": "pnpm lint:docs && pnpm --no-bail lint:json && pnpm lint:package && pnpm lint:js",
7+
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write **/README.md",
8+
"lint:js": "eslint --cache packages scripts shared util --ext .js,.ts",
9+
"lint:json": "prettier --write **/tsconfig*.json **/*.{yml,yaml}",
10+
"lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package",
1411
"preinstall": "node scripts/disallow-npm.js",
1512
"pub": "node scripts/pub.js",
1613
"publish": "node scripts/publish.js",
17-
"security": "pnpm audit --audit-level=moderate",
18-
"test": "node scripts/run-changed.js test",
19-
"test:ts": "node scripts/run-changed.js test:ts"
14+
"security": "pnpm audit --audit-level=moderate"
2015
},
2116
"dependencies": {
2217
"conventional-commits-parser": "^3.1.0",

packages/alias/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"ci:lint": "pnpm run build && pnpm run lint",
2525
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2626
"ci:test": "pnpm run test -- --verbose",
27-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
28-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
29-
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
30-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
3127
"prebuild": "del-cli dist",
3228
"prepare": "pnpm run build",
3329
"prepublishOnly": "pnpm run lint && pnpm run test",

packages/alias/tsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"include": [
4-
"src/**/*",
5-
"types/**/*"
6-
]
3+
"include": ["src/**/*", "types/**/*"]
74
}

packages/auto-install/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
"ci:lint": "pnpm run build && pnpm run lint",
2222
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2323
"ci:test": "pnpm run test -- --verbose",
24-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
25-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
26-
"lint:js": "eslint --fix --cache src test --ext .js,.ts",
27-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2824
"prebuild": "del-cli dist",
2925
"prepare": "pnpm run build",
3026
"prepublishOnly": "pnpm run lint",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

packages/auto-install/tsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"include": [
4-
"src/**/*",
5-
"types/**/*"
6-
]
3+
"include": ["src/**/*", "types/**/*"]
74
}

packages/babel/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"ci:lint": "pnpm run build && pnpm run lint",
2525
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2626
"ci:test": "pnpm run test -- --verbose",
27-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
28-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
29-
"lint:js": "eslint --fix --cache src test",
30-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
3127
"prebuild": "del-cli dist",
3228
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build && pnpm run test:ts",
3329
"pretest": "pnpm run build",

packages/beep/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"ci:lint": "pnpm run lint",
2323
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2424
"ci:test": "ava --verbose",
25-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
26-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
27-
"lint:js": "eslint --fix --cache lib test types --ext .js,.ts",
28-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2925
"test": "ava"
3026
},
3127
"files": [

packages/buble/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"ci:lint": "pnpm run build && pnpm run lint",
2525
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2626
"ci:test": "pnpm run test -- --verbose",
27-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
28-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
29-
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
30-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
3127
"prebuild": "del-cli dist",
3228
"prepare": "pnpm run build",
3329
"prepublishOnly": "pnpm run lint && pnpm run test",

packages/buble/tsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"include": [
4-
"src/**/*",
5-
"types/**/*"
6-
]
3+
"include": ["src/**/*", "types/**/*"]
74
}

packages/commonjs/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"ci:lint": "pnpm run build && pnpm run lint",
2525
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2626
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
27-
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
28-
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
29-
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
30-
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
3127
"prebuild": "del-cli dist",
3228
"prepare": "pnpm run build",
3329
"prepublishOnly": "pnpm run lint && pnpm run test:ts",

0 commit comments

Comments
 (0)