Skip to content

Commit

Permalink
Upgrade deps, add Github workflow, yarn -> pnpm (#17)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* Upgrade deps, add Github workflow, yarn -> pnpm

* Self review

* Self review

* Fix build

* Upgrade pnpm version

* Upgrade github action
  • Loading branch information
joeldenning authored May 17, 2021
1 parent 2fc2e4f commit 5eebdc6
Show file tree
Hide file tree
Showing 8 changed files with 6,880 additions and 5,626 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["important-stuff"],
"parser": "babel-eslint"
"parser": "@babel/eslint-parser"
}
23 changes: 23 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and test

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: pnpm/[email protected]
with:
version: 6.2.5
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm run lint
- run: pnpm run check-format
- run: pnpm run build
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpx pretty-quick --staged && pnpx lint
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
lib
LICENSE
yarn.lock
.prettierignore
.prettierignore
pnpm-lock.yaml
37 changes: 17 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
"build": "rimraf lib && babel src/single-spa-svelte.js --out-file lib/single-spa-svelte.js --source-maps",
"test": "cross-env BABEL_ENV=test jest",
"lint": "eslint src",
"format": "prettier --write './**'",
"prepublishOnly": "npm run build"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn lint"
}
"format": "prettier --write .",
"check-format": "prettier --check .",
"prepublishOnly": "pnpm run build",
"prepare": "husky install"
},
"files": [
"lib",
Expand All @@ -35,20 +32,20 @@
},
"homepage": "https://github.com/single-spa/single-spa-svelte#readme",
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@types/jest": "^26.0.14",
"babel-eslint": "^11.0.0-beta.2",
"babel-jest": "^26.5.2",
"cross-env": "^7.0.2",
"eslint": "^7.11.0",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.2",
"@babel/eslint-parser": "^7.14.2",
"@babel/preset-env": "^7.14.2",
"@types/jest": "^26.0.23",
"babel-jest": "^26.6.3",
"cross-env": "^7.0.3",
"eslint": "^7.26.0",
"eslint-config-important-stuff": "^1.1.0",
"husky": "^4.3.0",
"jest": "^26.5.2",
"jest-cli": "^26.5.2",
"prettier": "^2.1.2",
"pretty-quick": "^3.0.2",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"prettier": "^2.3.0",
"pretty-quick": "^3.1.0",
"rimraf": "^3.0.2"
}
}
Loading

0 comments on commit 5eebdc6

Please sign in to comment.