From 332b563d4511f964b234c0829ed6436ff1b7d11d Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Mon, 8 Apr 2019 20:02:43 -0700 Subject: [PATCH 1/3] Add publishing tools and dependency testing --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 26da9d0..27f795e 100644 --- a/package.json +++ b/package.json @@ -34,13 +34,17 @@ "@oclif/dev-cli": "^1", "@oclif/plugin-help": "^2", "@oclif/test": "^1", + "auto-changelog": "^1.12.0", "chai": "^4", + "dependency-check": "^3.3.0", "eslint": "^5.5", "eslint-config-oclif": "^3.1", "eslint-config-prettier": "^4.1.0", "eslint-plugin-prettier": "^3.0.1", + "gh-release": "^3.5.0", "globby": "^8", "mocha": "^5", + "npm-run-all": "^4.1.5", "nyc": "^13", "prettier": "^1.16.4" }, @@ -70,9 +74,12 @@ "postpack": "rm -f oclif.manifest.json", "posttest": "eslint .", "prepack": "oclif-dev manifest && oclif-dev readme", - "test": "nyc mocha --forbid-only \"test/**/*.test.js\"", + "test": "run-s test:*", + "test:mocha": "nyc mocha --forbid-only \"test/**/*.test.js\"", + "test:deps": "dependency-check ./package.json --entry \"src/commands/**/!(*.test).js\" --unused --missing --no-dev --no-peer -i @oclif/plugin-not-found -i @oclif/config -i @oclif/plugin-help -i @oclif/plugin-plugins", "format": "npm run format:prettier -- --write", "format:prettier": "prettier \"{{src,test}/**/,}*.js\"", - "version": "oclif-dev readme && git add README.md" + "version": "oclif-dev readme && auto-changelog -p --template keepachangelog && git add README.md CHANGELOG.md", + "prepublishOnly": "git push && git push --tags && gh-release" } } From f4eae86b5944ce972a0597bd00e99807d0bdc585 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Mon, 8 Apr 2019 20:07:26 -0700 Subject: [PATCH 2/3] Fix scripts --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 27f795e..fdb8c71 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "netlify-dev-plugin", "description": "Netlify development tools plugin", - "version": "0.2.0", + "version": "1.0.0-beta", "author": "David Calavera @calavera", "bugs": "https://github.com/netlify/netlify-dev-plugin/issues", "dependencies": { @@ -12,6 +12,8 @@ "@oclif/config": "^1", "ascii-table": "0.0.9", "boxen": "^3.0.0", + "chalk": "^2.4.2", + "chokidar": "^2.1.5", "copy-template-dir": "^1.4.0", "execa": "^1.0.0", "fs-extra": "^7.0.1", @@ -23,7 +25,6 @@ "inquirer-autocomplete-prompt": "^1.0.1", "netlify": "2.4.1", "node-fetch": "^2.3.0", - "opn": "^5.5.0", "ora": "^3.4.0", "safe-join": "^0.1.2", "static-server": "^2.2.1", @@ -71,15 +72,15 @@ }, "repository": "netlify/netlify-dev-plugin", "scripts": { + "format": "npm run format:prettier -- --write", + "format:prettier": "prettier \"{{src,test}/**/,}*.js\"", "postpack": "rm -f oclif.manifest.json", "posttest": "eslint .", "prepack": "oclif-dev manifest && oclif-dev readme", + "prepublishOnly": "git push && git push --tags && gh-release", "test": "run-s test:*", - "test:mocha": "nyc mocha --forbid-only \"test/**/*.test.js\"", "test:deps": "dependency-check ./package.json --entry \"src/commands/**/!(*.test).js\" --unused --missing --no-dev --no-peer -i @oclif/plugin-not-found -i @oclif/config -i @oclif/plugin-help -i @oclif/plugin-plugins", - "format": "npm run format:prettier -- --write", - "format:prettier": "prettier \"{{src,test}/**/,}*.js\"", - "version": "oclif-dev readme && auto-changelog -p --template keepachangelog && git add README.md CHANGELOG.md", - "prepublishOnly": "git push && git push --tags && gh-release" + "test-skip:mocha": "nyc mocha --forbid-only \"test/**/*.test.js\"", + "version": "oclif-dev readme && auto-changelog -p --template keepachangelog && git add README.md CHANGELOG.md" } } From bf9d33dab206ce83df97a196daf5aa9e0abfc875 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Mon, 8 Apr 2019 20:07:44 -0700 Subject: [PATCH 3/3] 1.0.0-beta.0 --- CHANGELOG.md | 85 +++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1bc27bb --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,85 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +## 1.0.0-beta.0 - 2019-04-09 + +### Merged + +- fix: Making sure command is properly set in settings from dev block [`#103`](https://github.com/netlify/netlify-dev-plugin/pull/103) +- add nextjs, hexo, gridsome, phenomic, docusaurus, brunch [`#102`](https://github.com/netlify/netlify-dev-plugin/pull/102) +- New visual identity with Netlify Gem! as well as warning/error indicators ◈ [`#101`](https://github.com/netlify/netlify-dev-plugin/pull/101) +- Return a promise from netlify-lambda detector [`#100`](https://github.com/netlify/netlify-dev-plugin/pull/100) +- Add support for function builders [`#94`](https://github.com/netlify/netlify-dev-plugin/pull/94) +- generalize dependency and config file matching to a common utility and add UI for multiple matching detectors and scripts [`#96`](https://github.com/netlify/netlify-dev-plugin/pull/96) +- Fix websocket proxying [`#93`](https://github.com/netlify/netlify-dev-plugin/pull/93) +- Update rules proxy [`#92`](https://github.com/netlify/netlify-dev-plugin/pull/92) +- Make netlify dev faster (reuse accessToken) [`#91`](https://github.com/netlify/netlify-dev-plugin/pull/91) +- Remove dev port [`#90`](https://github.com/netlify/netlify-dev-plugin/pull/90) +- inject env vars everywhere [`#88`](https://github.com/netlify/netlify-dev-plugin/pull/88) +- add warning if site is not linked when running netlify deploy live tunnel [`#87`](https://github.com/netlify/netlify-dev-plugin/pull/87) +- Update telemetry [`#85`](https://github.com/netlify/netlify-dev-plugin/pull/85) +- Handle alternative paths the same way as when deployed [`#70`](https://github.com/netlify/netlify-dev-plugin/pull/70) +- Fix fetch updates for the tunnel client. [`#86`](https://github.com/netlify/netlify-dev-plugin/pull/86) +- Remove shell option. [`#83`](https://github.com/netlify/netlify-dev-plugin/pull/83) +- Prepare repository to be open source. [`#84`](https://github.com/netlify/netlify-dev-plugin/pull/84) +- add ora spinner and add a prompt before running postinstall script for an functions:create [`#82`](https://github.com/netlify/netlify-dev-plugin/pull/82) +- Make sure to wait for dependency install [`#81`](https://github.com/netlify/netlify-dev-plugin/pull/81) +- Make sure we always choose a free port for function server [`#79`](https://github.com/netlify/netlify-dev-plugin/pull/79) +- add working fauna graphql template [`#80`](https://github.com/netlify/netlify-dev-plugin/pull/80) +- intentionally use blank prettier [`#76`](https://github.com/netlify/netlify-dev-plugin/pull/76) +- Make addon install lifecycle [`#74`](https://github.com/netlify/netlify-dev-plugin/pull/74) +- Add flag for live sessions. [`#39`](https://github.com/netlify/netlify-dev-plugin/pull/39) +- add detector type field [`#73`](https://github.com/netlify/netlify-dev-plugin/pull/73) +- fix serve functions.. and correct the root cause of localhost:30001 bug [`#71`](https://github.com/netlify/netlify-dev-plugin/pull/71) +- bring gatsby and RS detectors up to par with CRA [`#69`](https://github.com/netlify/netlify-dev-plugin/pull/69) +- minor bugfixes to https://github.com/netlify/netlify-dev-plugin/pull/67 [`#68`](https://github.com/netlify/netlify-dev-plugin/pull/68) +- refactor cmd to command, document, and make netlify.toml dev block overrides explicit [`#67`](https://github.com/netlify/netlify-dev-plugin/pull/67) +- Don't open the url by default. [`#64`](https://github.com/netlify/netlify-dev-plugin/pull/64) +- Output improvements [`#63`](https://github.com/netlify/netlify-dev-plugin/pull/63) +- Add example for [dev] block [`#44`](https://github.com/netlify/netlify-dev-plugin/pull/44) +- add telemetry [`#49`](https://github.com/netlify/netlify-dev-plugin/pull/49) +- Add vue detector [`#54`](https://github.com/netlify/netlify-dev-plugin/pull/54) +- add aliases for netlify functions command [`#50`](https://github.com/netlify/netlify-dev-plugin/pull/50) +- add else blocks and nicer comments for fauna example [`#51`](https://github.com/netlify/netlify-dev-plugin/pull/51) +- Use the standard netlify js client [`#52`](https://github.com/netlify/netlify-dev-plugin/pull/52) +- Fauna CRUD improvements [`#47`](https://github.com/netlify/netlify-dev-plugin/pull/47) +- Update static server [`#46`](https://github.com/netlify/netlify-dev-plugin/pull/46) +- Add some context to the README [`#43`](https://github.com/netlify/netlify-dev-plugin/pull/43) +- Fix Gatsby's dev command. [`#41`](https://github.com/netlify/netlify-dev-plugin/pull/41) +- break up the registry into individual files [`#40`](https://github.com/netlify/netlify-dev-plugin/pull/40) +- Add autocomplete for functions templates [`#37`](https://github.com/netlify/netlify-dev-plugin/pull/37) +- add GraphQL template [`#36`](https://github.com/netlify/netlify-dev-plugin/pull/36) +- Add typescript and golang templates, and let templates install addons [`#34`](https://github.com/netlify/netlify-dev-plugin/pull/34) +- Adding readme structure [`#33`](https://github.com/netlify/netlify-dev-plugin/pull/33) +- switch functions templating to entirely folder based with a template registry [`#32`](https://github.com/netlify/netlify-dev-plugin/pull/32) +- extract safeJoin functionality out into a library [`#30`](https://github.com/netlify/netlify-dev-plugin/pull/30) +- Add functions create from url [`#29`](https://github.com/netlify/netlify-dev-plugin/pull/29) +- add openBrowser after netlify dev completes [`#28`](https://github.com/netlify/netlify-dev-plugin/pull/28) +- Add name flag to functions create [`#17`](https://github.com/netlify/netlify-dev-plugin/pull/17) +- Some small UX tweaks [`#23`](https://github.com/netlify/netlify-dev-plugin/pull/23) +- Fix eslint use-spread error by requiring node 8.3.0 (from 8.0.0) [`#15`](https://github.com/netlify/netlify-dev-plugin/pull/15) +- Clean up detectors [`#14`](https://github.com/netlify/netlify-dev-plugin/pull/14) +- add v2 of templates with assets and no requiring of all the things [`#26`](https://github.com/netlify/netlify-dev-plugin/pull/26) +- add onComplete lifecycle to netlify functions template [`#24`](https://github.com/netlify/netlify-dev-plugin/pull/24) +- add working basic templates for netlify functions:create [`#22`](https://github.com/netlify/netlify-dev-plugin/pull/22) +- Fix missing require [`#16`](https://github.com/netlify/netlify-dev-plugin/pull/16) +- Set up and run prettier [`#13`](https://github.com/netlify/netlify-dev-plugin/pull/13) +- fix functions create [`#20`](https://github.com/netlify/netlify-dev-plugin/pull/20) +- Detect overrides for dev server from [dev] settings [`#18`](https://github.com/netlify/netlify-dev-plugin/pull/18) +- add Array.isArray check to addons code in netlify dev [`#12`](https://github.com/netlify/netlify-dev-plugin/pull/12) +- add install off deps to readme [`#7`](https://github.com/netlify/netlify-dev-plugin/pull/7) +- Set site environment variables in local dev [`#5`](https://github.com/netlify/netlify-dev-plugin/pull/5) +- Add functions:build command [`#4`](https://github.com/netlify/netlify-dev-plugin/pull/4) +- Fall back to a basic static server if no dev server is detected [`#1`](https://github.com/netlify/netlify-dev-plugin/pull/1) + +### Commits + +- Fix dependencies. [`0b8c369`](https://github.com/netlify/netlify-dev-plugin/commit/0b8c3698478644790187db1eab69b7a48f398a20) +- add GA, email, stripe, url shortener templates [`30ba0c6`](https://github.com/netlify/netlify-dev-plugin/commit/30ba0c68b5941c9367da512c266b3bfe76c34800) +- add it working [`dc51eb2`](https://github.com/netlify/netlify-dev-plugin/commit/dc51eb22173e8c566bd0f342eeb4b47c309dfe6c) diff --git a/package-lock.json b/package-lock.json index 825f8ec..52ea5c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "netlify-dev-plugin", - "version": "0.2.0", + "version": "1.0.0-beta.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fdb8c71..d30e720 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "netlify-dev-plugin", "description": "Netlify development tools plugin", - "version": "1.0.0-beta", + "version": "1.0.0-beta.0", "author": "David Calavera @calavera", "bugs": "https://github.com/netlify/netlify-dev-plugin/issues", "dependencies": {