-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(build): Refactor build of stryker projects (#267)
* refactor(build): Refactor build of stryker project * Remove dependency on grunt * prebuild: Clean using [rimraf](https://www.npmjs.com/package/rimraf) * build: Compile using plain `tsc` * postbuild: tslint * test: Run mocha tests using [nyc](https://www.npmjs.com/package/nyc) for instrumentation. * refactor(stryker-api-build): Remove dependency on grunt * Remove all grunt dependencies * prebuild: Clean using [rimraf](https://www.npmjs.com/package/rimraf) * build: Compile using plain `tsc` * postbuild: tslint * test: Run mocha tests using [nyc](https://www.npmjs.com/package/nyc) for instrumentation. * refactor(build): Remove grunt files * refactor(build): Add 'build' to 'pretest' * Add 'build' to 'pretest' at root level, so travis runs build before test * refactor(test): Move integration test to own module * Remove all build-related dev-dependencies from `packages` modules * chore: Update bithoundrc with new file locations * refactor(gitignore): Deduplicate gitignore files.
- Loading branch information
Showing
63 changed files
with
378 additions
and
420 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
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 |
---|---|---|
@@ -1 +1,15 @@ | ||
node_modules | ||
lerna-debug.log | ||
npm-debug.log | ||
|
||
.tscache | ||
.stryker-tmp | ||
*.js.map | ||
packages/**/src/**/*.js | ||
packages/**/test/**/*.js | ||
packages/**/src/**/*.d.ts | ||
packages/**/test/**/*.d.ts | ||
.idea | ||
*.iml | ||
*.tmp.txt | ||
.nyc_output |
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,11 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "0.1.0", | ||
"command": "tsc", | ||
"isShellCommand": true, | ||
"args": ["-w", "-p", "./integrationTest/tsconfig.json"], | ||
"showOutput": "silent", | ||
"isBackground": true, | ||
"problemMatcher": "$tsc-watch" | ||
} |
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,7 @@ | ||
export default class Executor { | ||
private silent; | ||
private cwd; | ||
constructor(cwd: string, silent?: boolean); | ||
exec(command: string, options: any, done: (error: any, stdout: string) => any): void; | ||
private handleProcess(child, done); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": false | ||
}, | ||
"include": [ | ||
"*.ts" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"lerna": "2.0.0-beta.38", | ||
"lerna": "2.0.0-rc.0", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
|
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 |
---|---|---|
@@ -1,12 +1,44 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"lerna": "^2.0.0-beta.38", | ||
"typescript": "^2.2.1" | ||
"@types/chai-as-promised": "0.0.29", | ||
"@types/chalk": "^0.4.28", | ||
"@types/escodegen": "0.0.6", | ||
"@types/esprima": "^2.1.31", | ||
"@types/estree": "0.0.32", | ||
"@types/glob": "^5.0.29", | ||
"@types/graceful-fs": "^2.0.29", | ||
"@types/istanbul": "^0.4.29", | ||
"@types/karma": "^0.13.32", | ||
"@types/lodash": "^4.14.34", | ||
"@types/log4js": "0.0.32", | ||
"@types/mkdirp": "^0.3.28", | ||
"@types/mocha": "^2.2.34", | ||
"@types/progress": "^1.1.28", | ||
"@types/sinon": "^1.16.33", | ||
"@types/sinon-as-promised": "^4.0.5", | ||
"@types/sinon-chai": "^2.7.27", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^6.0.0", | ||
"concurrently": "^3.4.0", | ||
"lerna": "^2.0.0-rc.0", | ||
"mocha": "^3.2.0", | ||
"nyc": "^10.2.0", | ||
"rimraf": "^2.6.1", | ||
"sinon": "^1.17.7", | ||
"sinon-as-promised": "^4.0.3", | ||
"sinon-chai": "^2.9.0", | ||
"tslint": "^5.0.0", | ||
"typescript": "^2.2.2" | ||
}, | ||
"scripts": { | ||
"postinstall": "lerna bootstrap", | ||
"build": "lerna run build", | ||
"test": "lerna run test" | ||
"pretest": "npm run build", | ||
"test": "lerna run test", | ||
"posttest": "mocha integrationTest/*.js", | ||
"start": "concurrently \"tsc -w -p integrationTest\" \"tsc -w -p packages/stryker\" \"tsc -w -p packages/stryker-api\"", | ||
"test:stryker": "lerna run test --scope stryker", | ||
"test:stryker-api": "lerna run test --scope stryker" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,4 @@ | ||
node_modules | ||
npm-debug.log | ||
coverage | ||
.tscache | ||
typings | ||
*.js.map | ||
src/**/*.js | ||
test/**/*.js | ||
src/**/*.d.ts | ||
test/**/*.d.ts | ||
*.js | ||
*.d.ts | ||
!Gruntfile.js | ||
!testResources | ||
/*.js | ||
/*.d.ts | ||
testResources/module/**/*.js | ||
testResources/module/**/*.d.ts |
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
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,11 @@ | ||
{ | ||
"nyc":{ | ||
"lines": 100, | ||
"statements": 100, | ||
"functions": 100, | ||
"branches": 100, | ||
"exclude": [ | ||
"testResources/**/*.js" | ||
] | ||
} | ||
} |
Oops, something went wrong.