Skip to content

Commit

Permalink
feat: externalize CircleCI stuff to @tunnckocore/circleci package
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 6, 2018
1 parent 7d424a2 commit 4c63d5a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"node": "^8.11.0 || >=10.13.0"
},
"dependencies": {
"@tunnckocore/circleci": "^0.2.1",
"@tunnckocore/execa": "^2.1.1",
"axios": "^0.18.0",
"charlike": "^3.1.8",
Expand Down
17 changes: 0 additions & 17 deletions src/enable-circleci.js

This file was deleted.

6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import signale from 'signale';
import charlike from 'charlike';
import setValue from 'set-value';
import { exec } from '@tunnckocore/execa';
import enableCircleCI from '@tunnckocore/circleci';
import createGithubRelease from './create-release';
import enableCircleCI from './enable-circleci';
import runQuestions from './questions';

/* eslint-disable no-param-reassign, promise/always-return */
Expand Down Expand Up @@ -66,7 +66,9 @@ export default async function createProject(initialVersion = '0.0.0') {
}),
)
.then(() => signale.info('Enabling CircleCI integration ...'))
.then(() => enableCircleCI(ctx.answers))
.then(
() => ctx.answers.author.circleci_token && enableCircleCI(ctx.answers),
)
.then(() =>
signale.info(`Publishing version v${initialVersion} to NPM ...`),
)
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==

"@tunnckocore/circleci@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@tunnckocore/circleci/-/circleci-0.2.1.tgz#9c8a26ff69f60a188c1bacaa8794ea3007aa8258"
integrity sha512-EXbP/AaIBGrGGVK8+dupr8i/v6dXN+N1nu5nx9TjK62q/gFIeFTAa4Cd6yAONvcRUy6pQm1b3tZb1FMCIPPo7w==
dependencies:
axios "^0.18.0"
esm "^3.0.84"

"@tunnckocore/config@^0.5.1":
version "0.5.1"
resolved "https://registry.yarnpkg.com/@tunnckocore/config/-/config-0.5.1.tgz#f2ca7cf4442614ead3e5660522c3c02e3312116b"
Expand Down

0 comments on commit 4c63d5a

Please sign in to comment.