-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shady Khalifa
committed
Aug 14, 2018
1 parent
4095ffa
commit 0d32d64
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const gulp = require('gulp'); | ||
const ts = require('gulp-typescript'); | ||
|
||
const package = ts.createProject('tsconfig.json'); | ||
const distId = process.argv.indexOf('--dist'); | ||
const packageName = 'nest-emitter'; | ||
const dist = distId < 0 ? `node_modules/${packageName}` : process.argv[distId + 1]; | ||
|
||
gulp.task('build', () => { | ||
return package | ||
.src() | ||
.pipe(package()) | ||
.pipe(gulp.dest(dist)); | ||
}); | ||
|
||
gulp.task('move', function() { | ||
gulp | ||
.src([`node_modules/${packageName}/**/*`]) | ||
.pipe(gulp.dest(`example/node_modules/${packageName}`)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
], | ||
"transform": { | ||
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
"testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$", | ||
"mapCoverage": true, | ||
"collectCoverageFrom": [ | ||
"src/**/*.ts", | ||
"!src/main.ts", | ||
"!src/app/constants.ts", | ||
"!src/**/index.ts", | ||
"!src/**/*.module.ts", | ||
"!src/**/*.interface.ts", | ||
"!src/**/*.enum.ts", | ||
"!**/node_modules/**", | ||
"!**/vendor/**" | ||
], | ||
"coverageReporters": [ | ||
"json", | ||
"lcov" | ||
] | ||
} |