Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upgrade dependencies #15

Merged
merged 2 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"important-stuff"
],
"parser": "@babel/eslint-parser"
}
25 changes: 25 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and test

on:
push:
branches: main
pull_request:
branches: "*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.16.0
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm run lint
- run: pnpm run check-format
- run: pnpm run build
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"

pnpm exec pretty-quick --staged && pnpm test
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pnpm-lock.yaml
.babelrc
.eslintrc
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
@type {import('@jest/types').Config.ProjectConfig}
*/
const config = {
testEnvironment: "jsdom",
};

module.exports = config;
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
"scripts": {
"build": "babel src --out-dir lib --source-maps",
"test": "jest",
"format": "prettier --write .",
"check-format": "prettier --check .",
"coverage": "jest --coverage",
"prepublishOnly": "yarn build"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn test"
}
"lint": "eslint src",
"prepublishOnly": "pnpm run build",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -35,11 +34,14 @@
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/eslint-parser": "^7.15.8",
"@babel/preset-env": "^7.8.4",
"@types/jest": "^25.1.2",
"husky": "^4.2.2",
"jest": "^25.1.0",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1"
"@types/jest": "^27.0.2",
"eslint": "^8.0.0",
"eslint-config-important-stuff": "^1.1.0",
"husky": "^7.0.0",
"jest": "^27.2.5",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1"
}
}
Loading