mirror of
https://github.com/kremalicious/gatsby-plugin-matomo.git
synced 2024-12-22 17:23:23 +01:00
Merge pull request #141 from kremalicious:feature/updates
CI tweaks & package updates
This commit is contained in:
commit
0df7ae9ac0
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"parser": "@babel/eslint-parser",
|
||||||
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
||||||
"plugins": ["prettier"],
|
"plugins": ["prettier"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
11
.github/dependabot.yml
vendored
11
.github/dependabot.yml
vendored
@ -1,8 +1,7 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: '04:00'
|
time: '04:00'
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -1,29 +1,44 @@
|
|||||||
name: 'CI/CD Pipeline'
|
name: 'CI/CD Pipeline'
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
node: ['14']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v1
|
- run: npm ci
|
||||||
with:
|
- run: npm test
|
||||||
node-version: '13.x'
|
- run: npm run build
|
||||||
- uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node
|
|
||||||
|
|
||||||
- run: npm install
|
coverage:
|
||||||
- name: Run tests & publish code coverage
|
runs-on: ubuntu-latest
|
||||||
uses: paambaati/codeclimate-action@v2.4.0
|
steps:
|
||||||
with:
|
- uses: actions/checkout@v2
|
||||||
coverageCommand: npm test
|
- uses: actions/setup-node@v2
|
||||||
|
- run: npm ci
|
||||||
|
- uses: paambaati/codeclimate-action@v2.7.5
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
|
with:
|
||||||
|
coverageCommand: npm test
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: test
|
needs: test
|
||||||
@ -31,17 +46,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '13.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm install
|
|
||||||
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
# - uses: actions/setup-node@v1
|
# - uses: actions/setup-node@v1
|
||||||
# with:
|
# with:
|
||||||
# node-version: '13.x'
|
|
||||||
# registry-url: 'https://npm.pkg.github.com'
|
# registry-url: 'https://npm.pkg.github.com'
|
||||||
# - run: npm publish
|
# - run: npm publish
|
||||||
# env:
|
# env:
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"tabWidth": 2
|
"tabWidth": 2,
|
||||||
|
"endOfLine": "auto"
|
||||||
}
|
}
|
||||||
|
3189
package-lock.json
generated
3189
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
37
package.json
37
package.json
@ -4,30 +4,31 @@
|
|||||||
"version": "0.8.3",
|
"version": "0.8.3",
|
||||||
"author": "Matthias Kretschmann <m@kretschmann.io>",
|
"author": "Matthias Kretschmann <m@kretschmann.io>",
|
||||||
"scripts": {
|
"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__",
|
"start": "babel -w src --out-dir . --ignore **/__tests__",
|
||||||
"test": "npm run lint && jest --coverage",
|
"test": "npm run lint && jest --coverage",
|
||||||
"lint": "eslint ./src/**/*.js",
|
"lint": "eslint ./src/**/*.js",
|
||||||
"format": "prettier --write 'src/**/*.js'",
|
"format": "prettier --write 'src/**/*.js'",
|
||||||
"release": "release-it --non-interactive",
|
"release": "release-it --non-interactive",
|
||||||
"changelog": "auto-changelog -p",
|
"changelog": "auto-changelog -p",
|
||||||
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.10.4",
|
"@babel/cli": "^7.12.10",
|
||||||
"@babel/core": "^7.10.4",
|
"@babel/core": "^7.12.10",
|
||||||
"@babel/runtime": "^7.10.4",
|
"@babel/eslint-parser": "^7.12.1",
|
||||||
"auto-changelog": "^2.1.0",
|
"@babel/runtime": "^7.12.5",
|
||||||
"babel-preset-gatsby-package": "^0.5.1",
|
"auto-changelog": "^2.2.1",
|
||||||
"cross-env": "^7.0.2",
|
"babel-preset-gatsby-package": "^0.11.0",
|
||||||
"eslint": "^7.3.1",
|
"cross-env": "^7.0.3",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint": "^7.19.0",
|
||||||
"eslint-plugin-prettier": "^3.1.4",
|
"eslint-config-prettier": "^7.2.0",
|
||||||
"jest": "^26.1.0",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"prettier": "^2.0.5",
|
"jest": "^26.6.3",
|
||||||
"react": "^16.13.1",
|
"prettier": "^2.2.1",
|
||||||
"release-it": "^14.2.0"
|
"react": "^17.0.1",
|
||||||
|
"release-it": "^14.2.2"
|
||||||
},
|
},
|
||||||
"homepage": "https://kremalicious.com/gatsby-plugin-matomo",
|
"homepage": "https://kremalicious.com/gatsby-plugin-matomo",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -41,9 +42,9 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"gatsby": ">=2.0.0",
|
"gatsby": ">=2",
|
||||||
"react": ">=16.4.2",
|
"react": ">=16.8",
|
||||||
"react-dom": ">=16.4.2"
|
"react-dom": ">=16.8"
|
||||||
},
|
},
|
||||||
"repository": "github:kremalicious/gatsby-plugin-matomo",
|
"repository": "github:kremalicious/gatsby-plugin-matomo",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
Loading…
Reference in New Issue
Block a user