Skip to content

Commit b959bc8

Browse files
authored
Merge pull request #82 from liangchunn/feature/typescript
refactor(package): typescript
2 parents 3978289 + 9defef1 commit b959bc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1372
-1194
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules/
55
.resources
66
template/build
77
template/coverage
8-
template/dist
8+
template/dist
9+
build/

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
lib/formatters/**/*.js
22
template/**/*.js
33
node_modules/**/*.js
4-
tests/sink/**/*.js
4+
tests/sink/**/*.js
5+
build/**/*.js

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
yarn-error.log
33
.vscode/
44
package-lock.json
5-
.DS_Store
5+
.DS_Store
6+
build/

.npmignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
tests
2-
lib/formatters/tsconfig.json
3-
lib/formatters/*.ts
1+
tests/**/*
42
Dockerfile
53
.eslintrc.json
64
.eslintignore
75
.prettierrc
86
.resources
97
.dockerignore
108
commitlint.config.js
11-
template/build
12-
template/coverage
13-
template/dist
9+
template/build/**/*
10+
template/coverage/**/*
11+
template/dist/**/*
12+
vendor/**/*

.prettierrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"printWidth": 80,
3-
"parser": "babylon",
4-
"tabWidth": 4,
3+
"parser": "typescript",
4+
"tabWidth": 2,
55
"singleQuote": true,
66
"trailingComma": "es5",
77
"bracketSpacing": true,

CHANGELOG.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
1+
# [2.0.0-beta.1](https://github.com/liangchunn/typescript-node-scripts/compare/2.0.0-beta.0...2.0.0-beta.1) (2019-03-25)
2+
3+
4+
### Bug Fixes
5+
6+
* **formatter:** use colors when tty and not ci ([5e3584f](https://github.com/liangchunn/typescript-node-scripts/commit/5e3584f))
7+
8+
9+
10+
# [2.0.0-beta.0](https://github.com/liangchunn/typescript-node-scripts/compare/v1.3.0...2.0.0-beta.0) (2019-03-25)
11+
12+
13+
### Bug Fixes
14+
15+
* **create:** install TNS as a dev dependency ([3978289](https://github.com/liangchunn/typescript-node-scripts/commit/3978289))
16+
* **package:** update @babel/core to version 7.3.4 ([0332dba](https://github.com/liangchunn/typescript-node-scripts/commit/0332dba))
17+
* **package:** update @babel/preset-env to version 7.3.4 ([3a5cd6f](https://github.com/liangchunn/typescript-node-scripts/commit/3a5cd6f))
18+
* **package:** update webpack to version 4.29.6 ([3f88bb8](https://github.com/liangchunn/typescript-node-scripts/commit/3f88bb8))
19+
* **vendor:** fix spelling ([ee2eaf8](https://github.com/liangchunn/typescript-node-scripts/commit/ee2eaf8))
20+
21+
22+
### Features
23+
24+
* **typescript:** add typescript files ([f8854c2](https://github.com/liangchunn/typescript-node-scripts/commit/f8854c2))
25+
* **typescript:** finish up typescript support ([2c5512b](https://github.com/liangchunn/typescript-node-scripts/commit/2c5512b))
26+
27+
28+
129
# [1.3.0](https://github.com/liangchunn/typescript-node-scripts/compare/v1.2.0...v1.3.0) (2019-02-19)
230

331

432
### Bug Fixes
533

6-
* **package:** update [@babel](https://github.com/babel)/core to version 7.3.3 ([28bad95](https://github.com/liangchunn/typescript-node-scripts/commit/28bad95)), closes [#64](https://github.com/liangchunn/typescript-node-scripts/issues/64)
7-
* **package:** update [@babel](https://github.com/babel)/preset-env to version 7.3.1 ([f7fec24](https://github.com/liangchunn/typescript-node-scripts/commit/f7fec24)), closes [#64](https://github.com/liangchunn/typescript-node-scripts/issues/64)
34+
* **package:** update @babel/core to version 7.3.3 ([28bad95](https://github.com/liangchunn/typescript-node-scripts/commit/28bad95)), closes [#64](https://github.com/liangchunn/typescript-node-scripts/issues/64)
35+
* **package:** update @babel/preset-env to version 7.3.1 ([f7fec24](https://github.com/liangchunn/typescript-node-scripts/commit/f7fec24)), closes [#64](https://github.com/liangchunn/typescript-node-scripts/issues/64)
836
* **package:** update babel-loader to version 8.0.5 ([2eefbfc](https://github.com/liangchunn/typescript-node-scripts/commit/2eefbfc))
937
* **package:** update chalk to version 2.4.2 ([1c7ffd6](https://github.com/liangchunn/typescript-node-scripts/commit/1c7ffd6))
1038
* **package:** update filesize to version 4.1.2 ([a3f0053](https://github.com/liangchunn/typescript-node-scripts/commit/a3f0053)), closes [#68](https://github.com/liangchunn/typescript-node-scripts/issues/68)
@@ -71,7 +99,7 @@
7199

72100
### Bug Fixes
73101

74-
* **codeframe:** use new API for [@babel](https://github.com/babel)/code-frame ([1c93c74](https://github.com/liangchunn/typescript-node-scripts/commit/1c93c74))
102+
* **codeframe:** use new API for @babel/code-frame ([1c93c74](https://github.com/liangchunn/typescript-node-scripts/commit/1c93c74))
75103

76104

77105

@@ -81,8 +109,8 @@
81109
### Bug Fixes
82110

83111
* **e2e:** fix env detection for travis ([c501d96](https://github.com/liangchunn/typescript-node-scripts/commit/c501d96))
84-
* **package:** update [@babel](https://github.com/babel)/core to version 7.1.2 ([53f832e](https://github.com/liangchunn/typescript-node-scripts/commit/53f832e)), closes [#25](https://github.com/liangchunn/typescript-node-scripts/issues/25)
85-
* **package:** update [@babel](https://github.com/babel)/preset-env to version 7.1.0 ([07a38d4](https://github.com/liangchunn/typescript-node-scripts/commit/07a38d4)), closes [#25](https://github.com/liangchunn/typescript-node-scripts/issues/25)
112+
* **package:** update @babel/core to version 7.1.2 ([53f832e](https://github.com/liangchunn/typescript-node-scripts/commit/53f832e)), closes [#25](https://github.com/liangchunn/typescript-node-scripts/issues/25)
113+
* **package:** update @babel/preset-env to version 7.1.0 ([07a38d4](https://github.com/liangchunn/typescript-node-scripts/commit/07a38d4)), closes [#25](https://github.com/liangchunn/typescript-node-scripts/issues/25)
86114
* **package:** update babel-loader to version 8.0.4 ([e4950e0](https://github.com/liangchunn/typescript-node-scripts/commit/e4950e0)), closes [#23](https://github.com/liangchunn/typescript-node-scripts/issues/23)
87115
* **package:** update fork-ts-checker-webpack-plugin to version 0.4.10 ([c4f956c](https://github.com/liangchunn/typescript-node-scripts/commit/c4f956c))
88116
* **package:** update strip-ansi to version 5.0.0 ([fc0bf57](https://github.com/liangchunn/typescript-node-scripts/commit/fc0bf57))

bin/typescript-node-scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ switch (script) {
2323
const result = spawnSync(
2424
'node',
2525
nodeArgs
26-
.concat(require.resolve('../scripts/' + script))
26+
.concat(require.resolve('../build/scripts/' + script))
2727
.concat(args.slice(scriptIndex + 1)),
2828
{
2929
stdio: 'inherit',

lib/clearConsole.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/formatForkTsCheckerMessages.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

lib/formatTsLoaderMessages.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)