From fe6f67ee647d7df6147288c43c96a641e4317a8f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 30 Mar 2019 14:00:20 +0100 Subject: [PATCH 1/2] package updates --- .babelrc | 4 ++-- README.md | 18 +++++++++++--- package.json | 22 +++++++++--------- .../gatsby-plugin-matomo.png | Bin 4 files changed, 28 insertions(+), 16 deletions(-) rename gatsby-plugin-matomo.png => src/gatsby-plugin-matomo.png (100%) diff --git a/.babelrc b/.babelrc index f6a4950..832bdea 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,6 @@ { "presets": [ - ["env", { "browser": true }], - ["react"] + ["@babel/env"], + ["@babel/react"] ] } diff --git a/README.md b/README.md index ec1dbdf..dd49809 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![gatsby-plugin-matomo](https://raw.githubusercontent.com/kremalicious/gatsby-plugin-matomo/master/gatsby-plugin-matomo.png)](https://kremalicious.com/gatsby-plugin-matomo/) +[![gatsby-plugin-matomo](https://raw.githubusercontent.com/kremalicious/gatsby-plugin-matomo/master/src/gatsby-plugin-matomo.png)](https://kremalicious.com/gatsby-plugin-matomo/) # gatsby-plugin-matomo @@ -7,7 +7,16 @@ [![Maintainability](https://api.codeclimate.com/v1/badges/067339a02f2058f5ba01/maintainability)](https://codeclimate.com/github/kremalicious/gatsby-plugin-matomo/maintainability) [![Greenkeeper badge](https://badges.greenkeeper.io/kremalicious/gatsby-plugin-matomo.svg)](https://greenkeeper.io/) -🥂 Gatsby plugin to add Matomo (formerly Piwik) onto a site. https://kremalicious.com/gatsby-plugin-matomo/ +> 🥂 Gatsby plugin to add Matomo (formerly Piwik) onto a site. https://kremalicious.com/gatsby-plugin-matomo/ + +--- + +- [Features](#features) +- [Usage](#usage) + - [Options](#options) +- [Development](#development) +- [Changelog](#changelog) +- [License](#license) ## Features @@ -52,7 +61,7 @@ Plugin uses sensible defaults prioritizing user experience & privacy: _NOTE: By default, this plugin only generates output when run in production mode. To test your tracking code, run `gatsby build && gatsby serve`, or set `dev` option to `true`_. -## Options +### Options Option | Explanation -----------------|--------- @@ -88,6 +97,9 @@ plugins: [ ```bash npm i +npm start + +# create production build npm run build # publishing to npm & GitHub releases diff --git a/package.json b/package.json index bb870c3..7f51873 100644 --- a/package.json +++ b/package.json @@ -13,19 +13,19 @@ "prepublishOnly": "cross-env NODE_ENV=production npm run build", "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0" }, - "dependencies": { - "babel-runtime": "^6.26.0", - "react": "^16.6.3", - "react-hot-loader": "^4.3.12" - }, + "dependencies": {}, "devDependencies": { - "babel-cli": "^6.26.0", - "babel-preset-env": "^1.7.0", - "babel-preset-react": "^6.24.1", - "conventional-changelog-cli": "^2.0.11", + "@babel/cli": "^7.2.3", + "@babel/core": "^7.4.0", + "@babel/preset-env": "^7.4.2", + "@babel/preset-react": "^7.0.0", + "conventional-changelog-cli": "^2.0.12", "cross-env": "^5.2.0", - "eslint": "^5.9.0", - "eslint-plugin-react": "^7.11.1", + "eslint": "^5.16.0", + "eslint-plugin-react": "^7.12.4", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "react-hot-loader": "^4.8.1", "release-it": "^10.0.0" }, "homepage": "https://github.com/kremalicious/gatsby-plugin-matomo", diff --git a/gatsby-plugin-matomo.png b/src/gatsby-plugin-matomo.png similarity index 100% rename from gatsby-plugin-matomo.png rename to src/gatsby-plugin-matomo.png From 5da11a47609f48328d544bab07600576c6f060e0 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 30 Mar 2019 14:05:08 +0100 Subject: [PATCH 2/2] run changelog before release --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f51873..05c9e68 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive", "release-major": "./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive", "prepublishOnly": "cross-env NODE_ENV=production npm run build", - "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0" + "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0", + "beforeStage": "npm run changelog" }, "dependencies": {}, "devDependencies": {