Skip to content

Commit

Permalink
Merge pull request #83 from vajahath/tslib-#75
Browse files Browse the repository at this point in the history
feat(gl): add tslib means, less bundle size
  • Loading branch information
vajahath committed Mar 29, 2020
2 parents 50bcc7c + aa59a3f commit 2214c82
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 20 deletions.
7 changes: 3 additions & 4 deletions base-structure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion base-structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@
"prettier": "^2.0.2",
"typescript": "^3.8.3"
},
"dependencies": {}
"dependencies": {
"tslib": "^1.11.1"
}
}
2 changes: 1 addition & 1 deletion base-structure/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
2 changes: 1 addition & 1 deletion base-structure/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
6 changes: 3 additions & 3 deletions generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"gulp-rename": "^1.2.2",
"is-windows": "^1.0.2",
"shelljs": "^0.8.3",
"tslib": "^1.11.1",
"update-notifier": "^4.1.0",
"word-wrap": "^1.2.3",
"yeoman-generator": "^4.7.2"
Expand Down
4 changes: 3 additions & 1 deletion generator/template/TSNP_package.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@
"prettier": "^2.0.2",
"typescript": "^3.8.3"
},
"dependencies": {}
"dependencies": {
"tslib": "^1.11.1"
}
}
2 changes: 1 addition & 1 deletion generator/template/TSNP_tsconfig.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
2 changes: 1 addition & 1 deletion generator/template/TSNP_tsconfig.spec.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
1 change: 1 addition & 0 deletions generator/tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ test('verify there are all files', async () => {
baseFiles = baseFiles.map((val) => val.split('/base-structure/')[1]);
files = files.map((val) => val.split(upath.toUnix(tmpFolder) + '/')[1]);

console.log({ files });
expect(files.includes('.yo-rc.json')).toBeTruthy();
expect(baseFiles.every((f) => files.includes(f))).toBeTruthy();

Expand Down
2 changes: 1 addition & 1 deletion generator/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
2 changes: 1 addition & 1 deletion generator/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down
6 changes: 3 additions & 3 deletions house-keeping/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions house-keeping/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.0.0",
"shelljs": "^0.8.3",
"tslib": "^1.11.1",
"word-wrap": "^1.2.3",
"yeoman-generator": "^4.7.2"
}
Expand Down
2 changes: 1 addition & 1 deletion house-keeping/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
Expand Down
2 changes: 1 addition & 1 deletion house-keeping/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true /* Import emit helpers from 'tslib'. */,
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down

0 comments on commit 2214c82

Please sign in to comment.