Skip to content

Commit

Permalink
add another files for project
Browse files Browse the repository at this point in the history
  • Loading branch information
Shady Khalifa committed Aug 14, 2018
1 parent 4095ffa commit 0d32d64
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
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]
20 changes: 20 additions & 0 deletions gulpfile.js
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}`));
});
28 changes: 28 additions & 0 deletions jest.json
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"
]
}

0 comments on commit 0d32d64

Please sign in to comment.