Merge pull request #141 from kremalicious:feature/updates

CI tweaks & package updates
This commit is contained in:
Matthias Kretschmann 2021-02-01 00:13:17 +01:00 committed by GitHub
commit 0df7ae9ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1516 additions and 1775 deletions

View File

@ -1,4 +1,5 @@
{
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"parserOptions": {

View File

@ -1,8 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: '04:00'
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
time: '04:00'

View File

@ -1,29 +1,44 @@
name: 'CI/CD Pipeline'
on: [push]
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['14']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/setup-node@v1
with:
node-version: '13.x'
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node
- run: npm ci
- run: npm test
- run: npm run build
- run: npm install
- name: Run tests & publish code coverage
uses: paambaati/codeclimate-action@v2.4.0
with:
coverageCommand: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci
- uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
publish:
needs: test
@ -31,17 +46,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '13.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - uses: actions/setup-node@v1
# with:
# node-version: '13.x'
# registry-url: 'https://npm.pkg.github.com'
# - run: npm publish
# env:

View File

@ -2,5 +2,6 @@
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2
"tabWidth": 2,
"endOfLine": "auto"
}

3189
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,30 +4,31 @@
"version": "0.8.3",
"author": "Matthias Kretschmann <m@kretschmann.io>",
"scripts": {
"build": "babel src --out-dir . --ignore **/__tests__",
"build": "cross-env NODE_ENV=production babel src --out-dir . --ignore **/__tests__",
"start": "babel -w src --out-dir . --ignore **/__tests__",
"test": "npm run lint && jest --coverage",
"lint": "eslint ./src/**/*.js",
"format": "prettier --write 'src/**/*.js'",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
"prepublishOnly": "npm run build"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/runtime": "^7.10.4",
"auto-changelog": "^2.1.0",
"babel-preset-gatsby-package": "^0.5.1",
"cross-env": "^7.0.2",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^26.1.0",
"prettier": "^2.0.5",
"react": "^16.13.1",
"release-it": "^14.2.0"
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.12.1",
"@babel/runtime": "^7.12.5",
"auto-changelog": "^2.2.1",
"babel-preset-gatsby-package": "^0.11.0",
"cross-env": "^7.0.3",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"react": "^17.0.1",
"release-it": "^14.2.2"
},
"homepage": "https://kremalicious.com/gatsby-plugin-matomo",
"keywords": [
@ -41,9 +42,9 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"gatsby": ">=2.0.0",
"react": ">=16.4.2",
"react-dom": ">=16.4.2"
"gatsby": ">=2",
"react": ">=16.8",
"react-dom": ">=16.8"
},
"repository": "github:kremalicious/gatsby-plugin-matomo",
"bugs": {