Skip to content

Commit

Permalink
chore(repo): remove circle ci, add validate workflow, update deps (#867)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
shellscape committed Apr 22, 2021
1 parent afe2287 commit a82166b
Show file tree
Hide file tree
Showing 73 changed files with 1,449 additions and 1,708 deletions.
118 changes: 0 additions & 118 deletions .circleci/config.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .eslintignore
@@ -1 +1,6 @@
.eslintrc.js
**/dist
**/node_modules
**/test/**/output
packages/commonjs/test/fixtures
packages/typescript/test/fixtures/syntax-error
6 changes: 6 additions & 0 deletions .eslintrc.js
Expand Up @@ -50,6 +50,12 @@ module.exports = {
]
},
overrides: [
{
"files": ["**/test/**/*.{js,ts}"],
"rules": {
"no-console": "off"
}
},
{
"files": ["**/*.ts"],
"rules": {
Expand Down
52 changes: 31 additions & 21 deletions .github/workflows/node-windows.yml
@@ -1,31 +1,41 @@
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: [ '12', '10' ]
node: ["16", "14", "12"]

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: install pnpm
run: npm install pnpm -g
- name: pnpm install
run: pnpm install --ignore-scripts
- name: run tests
run: pnpm run ci:test
- 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: install pnpm
run: npm install pnpm -g

- name: pnpm install
run: pnpm install --ignore-scripts

- name: run tests
run: pnpm run ci:test --filter ...[${{ github.sha }}]
54 changes: 54 additions & 0 deletions .github/workflows/validate.yml
@@ -0,0 +1,54 @@
name: Validate Monorepo

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: 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 Monorepo
run: pnpm lint --recursive

- name: Run Tests
run: pnpm ci:coverage --filter ...[${{ github.sha }}]
1 change: 1 addition & 0 deletions .npmrc
@@ -1,3 +1,4 @@
enable-pre-post-scripts = true
link-workspace-packages = false
shamefully-hoist = true
shared-workspace-shrinkwrap = true
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
12
14
3 changes: 3 additions & 0 deletions .prettierignore
@@ -1,3 +1,6 @@
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
packages/json/test/fixtures/garbage/*
packages/yaml/test/fixtures/**/*
**/dist
17 changes: 6 additions & 11 deletions package.json
Expand Up @@ -2,21 +2,16 @@
"name": "@rollup/plugins",
"private": true,
"scripts": {
"ci:coverage": "node scripts/run-changed.js ci:coverage",
"ci:coverage:submit": "node scripts/codecov",
"ci:lint": "node scripts/run-changed.js ci:lint",
"ci:test": "node scripts/run-changed.js ci:test",
"lint": "pnpm run lint:docs && npm run lint:json && pnpm run lint:package && node scripts/run-changed.js lint",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint scripts util",
"lint:json": "prettier --write tsconfig.*.json codecov.yml pnpm-workspace.yaml",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"lint": "pnpm lint:docs && pnpm --no-bail lint:json && pnpm lint:package && pnpm lint:js",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write **/README.md",
"lint:js": "eslint --cache packages scripts shared util --ext .js,.ts",
"lint:json": "prettier --write **/tsconfig*.json **/*.{yml,yaml}",
"lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package",
"preinstall": "node scripts/disallow-npm.js",
"pub": "node scripts/pub.js",
"publish": "node scripts/publish.js",
"security": "pnpm audit --audit-level=moderate",
"test": "node scripts/run-changed.js test",
"test:ts": "node scripts/run-changed.js test:ts"
"security": "pnpm audit --audit-level=moderate"
},
"dependencies": {
"conventional-commits-parser": "^3.1.0",
Expand Down
4 changes: 0 additions & 4 deletions packages/alias/package.json
Expand Up @@ -24,10 +24,6 @@
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test",
Expand Down
5 changes: 1 addition & 4 deletions packages/alias/tsconfig.json
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*",
"types/**/*"
]
"include": ["src/**/*", "types/**/*"]
}
4 changes: 0 additions & 4 deletions packages/auto-install/package.json
Expand Up @@ -21,10 +21,6 @@
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache src test --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint",
Expand Down
2 changes: 1 addition & 1 deletion packages/auto-install/test/fixtures/npm/package.json
@@ -1 +1 @@
{}
{}
5 changes: 1 addition & 4 deletions packages/auto-install/tsconfig.json
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*",
"types/**/*"
]
"include": ["src/**/*", "types/**/*"]
}
4 changes: 0 additions & 4 deletions packages/babel/package.json
Expand Up @@ -24,10 +24,6 @@
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache src test",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build && pnpm run test:ts",
"pretest": "pnpm run build",
Expand Down
4 changes: 0 additions & 4 deletions packages/beep/package.json
Expand Up @@ -22,10 +22,6 @@
"ci:lint": "pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "ava --verbose",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache lib test types --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"test": "ava"
},
"files": [
Expand Down
4 changes: 0 additions & 4 deletions packages/buble/package.json
Expand Up @@ -24,10 +24,6 @@
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test",
Expand Down
5 changes: 1 addition & 4 deletions packages/buble/tsconfig.json
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": [
"src/**/*",
"types/**/*"
]
"include": ["src/**/*", "types/**/*"]
}
4 changes: 0 additions & 4 deletions packages/commonjs/package.json
Expand Up @@ -24,10 +24,6 @@
"ci:lint": "pnpm run build && pnpm run lint",
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
"lint:docs": "prettier --single-quote --arrow-parens avoid --trailing-comma none --write README.md",
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
"prebuild": "del-cli dist",
"prepare": "pnpm run build",
"prepublishOnly": "pnpm run lint && pnpm run test:ts",
Expand Down

0 comments on commit a82166b

Please sign in to comment.