Skip to content

Commit f033e7c

Browse files
authored
chore(package): update dependencies (#194)
1 parent 8eaf963 commit f033e7c

File tree

13 files changed

+3140
-5647
lines changed

13 files changed

+3140
-5647
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- node_modules
2020
key: v1-dependencies-{{ checksum "package.json" }}
2121
- run: npm test
22-
- run: npx nyc report --reporter=lcov | npx codecov
22+
- run: npm run cov:send
2323
- run: npm run cov:check
2424
'node-latest':
2525
docker:
@@ -37,7 +37,7 @@ jobs:
3737
- node_modules
3838
key: v1-dependencies-{{ checksum "package.json" }}
3939
- run: npm test
40-
- run: npx nyc report --reporter=lcov | npx codecov
40+
- run: npm run cov:send
4141
- run: npm run cov:check
4242

4343
workflows:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ sudo: false
22
language: node_js
33
node_js:
44
- '10'
5-
- '11'
5+
- '12'
66
# keep the npm cache to speed up installs
77
cache:
88
directories:
99
- '$HOME/.npm'
1010
after_success:
11-
- npx nyc report --reporter=lcov | npx codecov
11+
- npm run cov:send
1212
- npm run cov:check

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Jason Dreyzehner
3+
Copyright (c) 2019 Jason Dreyzehner
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
## Start Now
1515

16-
Run one simple command to install and use the interactive project generator. You'll need [Node](https://nodejs.org/) `v8.9` (the current LTS release) or later.
16+
Run one simple command to install and use the interactive project generator. You'll need [Node](https://nodejs.org/) `v10` or later.
1717

1818
```bash
1919
npx typescript-starter
@@ -39,7 +39,6 @@ So we can have nice things:
3939
* Source-mapped code coverage reports with [nyc](https://github.com/istanbuljs/nyc)
4040
* Configurable code coverage testing (for continuous integration)
4141
* Automatic linting and formatting using [TSLint](https://github.com/palantir/tslint) and [Prettier](https://prettier.io/)
42-
* Automatically check for known vulnerabilities in your dependencies with [`nsp`](https://github.com/nodesecurity/nsp)
4342

4443
## But first, a good editor
4544

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
matrix:
33
- nodejs_version: '10'
4-
- nodejs_version: '11'
4+
- nodejs_version: '12'
55

66
version: '{build}'
77

@@ -16,7 +16,7 @@ install:
1616

1717
test_script:
1818
- npm test
19-
- npx nyc report --reporter=lcov | npx codecov
19+
- npm run cov:send
2020
- npm run cov:check
2121

2222
build: off

package-lock.json

Lines changed: 3020 additions & 5481 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different",
4141
"test:unit": "nyc --silent ava",
4242
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
43-
"cov": "run-s build test:unit cov:html && opn coverage/index.html",
43+
"cov": "run-s build test:unit cov:html && open-cli coverage/index.html",
4444
"cov:html": "nyc report --reporter=html",
45-
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
45+
"cov:send": "nyc report --reporter=lcov && codecov",
4646
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
47-
"doc": "run-s doc:html && opn build/docs/index.html",
47+
"doc": "run-s doc:html && open-cli build/docs/index.html",
4848
"doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
4949
"doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
5050
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
@@ -72,49 +72,46 @@
7272
},
7373
"NOTE": "These dependencies are for the CLI, and will be removed automatically.",
7474
"dependencies": {
75-
"@types/globby": "^8.0.0",
76-
"chalk": "^2.4.1",
77-
"del": "^3.0.0",
78-
"execa": "^1.0.0",
79-
"github-username": "^4.1.0",
80-
"globby": "^8.0.1",
75+
"chalk": "^2.4.2",
76+
"del": "^5.0.0",
77+
"execa": "^2.0.3",
78+
"github-username": "^5.0.1",
79+
"globby": "^10.0.1",
8180
"gradient-string": "^1.2.0",
82-
"inquirer": "^6.2.0",
81+
"inquirer": "^6.4.1",
8382
"meow": "^5.0.0",
84-
"ora": "^3.0.0",
83+
"ora": "^3.4.0",
8584
"project-version": "^1.2.0",
86-
"replace-in-file": "^3.4.2",
85+
"replace-in-file": "^4.1.1",
8786
"sha.js": "^2.4.11",
88-
"update-notifier": "^2.5.0",
87+
"update-notifier": "^3.0.1",
8988
"validate-npm-package-name": "^3.0.0"
9089
},
9190
"devDependencies": {
9291
"@bitjson/npm-scripts-info": "^1.0.0",
93-
"@types/del": "^3.0.1",
94-
"@types/execa": "^0.9.0",
95-
"@types/inquirer": "0.0.43",
92+
"@istanbuljs/nyc-config-typescript": "^0.1.3",
93+
"@types/inquirer": "^6.0.3",
9694
"@types/meow": "^5.0.0",
97-
"@types/nock": "^9.3.0",
98-
"@types/node": "^10.12.10",
99-
"@types/ora": "^1.3.4",
95+
"@types/nock": "^10.0.3",
96+
"@types/node": "^10",
10097
"@types/update-notifier": "^2.5.0",
101-
"ava": "1.0.0-beta.7",
102-
"codecov": "^3.1.0",
98+
"ava": "2.2.0",
99+
"codecov": "^3.5.0",
103100
"cz-conventional-changelog": "^2.1.0",
104101
"gh-pages": "^2.0.1",
105102
"md5-file": "^4.0.0",
106-
"nock": "^10.0.2",
103+
"nock": "^11.0.0-beta.13",
107104
"npm-run-all": "^4.1.5",
108-
"nyc": "^13.1.0",
109-
"opn-cli": "^4.0.0",
110-
"prettier": "^1.15.2",
111-
"standard-version": "^4.4.0",
112-
"trash-cli": "^1.4.0",
113-
"tslint": "^5.11.0",
114-
"tslint-config-prettier": "^1.17.0",
115-
"tslint-immutable": "^5.0.0",
116-
"typedoc": "^0.13.0",
117-
"typescript": "^3.1.6"
105+
"nyc": "^14.1.1",
106+
"open-cli": "^5.0.0",
107+
"prettier": "^1.18.2",
108+
"standard-version": "^6.0.1",
109+
"trash-cli": "^3.0.0",
110+
"tslint": "^5.18.0",
111+
"tslint-config-prettier": "^1.18.0",
112+
"tslint-immutable": "^6.0.1",
113+
"typedoc": "^0.14.2",
114+
"typescript": "^3.5.3"
118115
},
119116
"ava": {
120117
"failFast": true,
@@ -134,6 +131,7 @@
134131
"singleQuote": true
135132
},
136133
"nyc": {
134+
"extends": "@istanbuljs/nyc-config-typescript",
137135
"exclude": [
138136
"**/*.spec.js"
139137
]

src/cli/tasks.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tslint:disable:no-console no-if-statement no-expression-statement
2-
import execa, { ExecaStatic, Options, StdIOOption } from 'execa';
2+
import execa, { Options } from 'execa';
33
import githubUsername from 'github-username';
44
import { join } from 'path';
55
import {
@@ -9,9 +9,6 @@ import {
99
TypescriptStarterUserOptions
1010
} from './utils';
1111

12-
// TODO: await https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24209
13-
const inherit = 'inherit' as StdIOOption;
14-
1512
export enum Placeholders {
1613
email = 'YOUR_EMAIL',
1714
name = 'YOUR_NAME',
@@ -21,7 +18,7 @@ export enum Placeholders {
2118
// We implement these as function factories to make unit testing easier.
2219

2320
export const cloneRepo = (
24-
spawner: ExecaStatic,
21+
spawner: typeof execa,
2522
suppressOutput = false
2623
) => async (
2724
repoInfo: {
@@ -49,7 +46,7 @@ export const cloneRepo = (
4946
stdio: suppressOutput ? 'pipe' : 'inherit'
5047
});
5148
} catch (err) {
52-
if (err.code === 'ENOENT') {
49+
if (err.exitCodeName === 'ENOENT') {
5350
throw new Error(`
5451
Git is not installed on your PATH. Please install Git and try again.
5552
@@ -64,7 +61,7 @@ export const cloneRepo = (
6461
cwd: projectDir,
6562
encoding: 'utf8',
6663
// tslint:disable-next-line:readonly-array
67-
stdio: ['pipe', 'pipe', inherit]
64+
stdio: ['pipe', 'pipe', 'inherit']
6865
});
6966
const commitHash = revParseResult.stdout;
7067
return { commitHash, gitHistoryDir };
@@ -84,11 +81,11 @@ export const getGithubUsername = (fetcher: any) => async (
8481
});
8582
};
8683

87-
export const getUserInfo = (spawner: ExecaStatic) => async () => {
84+
export const getUserInfo = (spawner: typeof execa) => async () => {
8885
const opts: Options = {
8986
encoding: 'utf8',
9087
// tslint:disable-next-line:readonly-array
91-
stdio: ['pipe', 'pipe', inherit]
88+
stdio: ['pipe', 'pipe', 'inherit']
9289
};
9390
try {
9491
const nameResult = await spawner('git', ['config', 'user.name'], opts);
@@ -105,7 +102,7 @@ export const getUserInfo = (spawner: ExecaStatic) => async () => {
105102
}
106103
};
107104

108-
export const initialCommit = (spawner: ExecaStatic) => async (
105+
export const initialCommit = (spawner: typeof execa) => async (
109106
hash: string,
110107
projectDir: string
111108
): Promise<void> => {
@@ -127,7 +124,7 @@ export const initialCommit = (spawner: ExecaStatic) => async (
127124
);
128125
};
129126

130-
export const install = (spawner: ExecaStatic) => async (
127+
export const install = (spawner: typeof execa) => async (
131128
runner: Runner,
132129
projectDir: string
133130
) => {

0 commit comments

Comments
 (0)