fix: greenkeeper-lockfile no longer necessary
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -14,7 +14,6 @@ jobs:
- v5-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v5-{{checksum ".circleci/config.yml"}}
- v5
- - run: .circleci/greenkeeper
- run: yarn add -D mocha-junit-reporter@1
- run: yarn exec nps lint
- persist_to_workspace: {root: node_modules, paths: ["*"]}
@@ -108,7 +107,6 @@ jobs:
- restore_cache:
keys:
- v5-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- - run: yarn global add greenkeeper-lockfile@1
- run: yarn add -D mocha-junit-reporter@1
- run: yarn exec nps test.command
- save_cache:

DELETE
.circleci/greenkeeper
-#!/usr/bin/env bash
-
-set -ex
-
-PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
-
-if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then
- yarn --frozen-lockfile
- yarn check
- exit 0
-fi
-
-if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
- yarn global add greenkeeper-lockfile@1
-fi
-
-greenkeeper-lockfile-update
-yarn
-greenkeeper-lockfile-upload

MODIFY
src/generators/app.ts
src/generators/app.ts
@@ -372,7 +372,6 @@ class App extends Generator {
this.fs.writeJSON(this.destinationPath('./package.json'), sortPjson(this.pjson))
this.fs.copyTpl(this.templatePath('editorconfig'), this.destinationPath('.editorconfig'), this)
if (this.circleci) {
- this.fs.copyTpl(this.templatePath('scripts/greenkeeper'), this.destinationPath('.circleci/greenkeeper'), this)
// if (this.semantic_release) {
// this.fs.copyTpl(this.templatePath('scripts/release'), this.destinationPath('.circleci/release'), this)
// }

MODIFY
templates/circle.yml.ejs
templates/circle.yml.ejs
@@ -13,7 +13,7 @@ jobs:
- v1-npm-{{checksum ".circleci/config.yml"}}
- run:
name: Install dependencies
- command: .circleci/greenkeeper
+ command: yarn
<%_ if (['single', 'multi'].includes(type)) { _%>
- run: ./bin/run --version
<%_ } _%>

DELETE
templates/scripts/greenkeeper
-#!/usr/bin/env bash
-
-set -ex
-
-PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
-
-if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then
- yarn
- # yarn check
- exit 0
-fi
-
-if [[ ! -z "$GIT_EMAIL" ]] & [[ ! -z "$GIT_USERNAME" ]]; then
- git config --global push.default simple
- git config --global user.email "$GIT_EMAIL"
- git config --global user.name "$GIT_USERNAME"
-fi
-
-if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then
- yarn global add greenkeeper-lockfile@2
-fi
-
-greenkeeper-lockfile-update
-yarn
-greenkeeper-lockfile-upload

fix: greenkeeper-lockfile no longer necessary