Skip to content

Commit

Permalink
Moved type definitions to inversift-dts
Browse files Browse the repository at this point in the history
  • Loading branch information
remojansen committed May 19, 2016
1 parent ee86e74 commit 93ef0c7
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 1,886 deletions.
9 changes: 1 addition & 8 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@ wallaby.js
.travis.yml
.gitignore
.vscode

# This will ignore:
# inversify-test.js, inversify-test.ts
# inversify-global-tests.js, inversify-global-tests.ts
type_definitions/inversify/*-test.js
type_definitions/inversify/*-test.ts
type_definitions/inversify/*-tests.js
type_definitions/inversify/*-tests.ts
type_definitions
20 changes: 2 additions & 18 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ gulp.task("lint", function() {

return gulp.src([
"src/**/**.ts",
"test/**/**.test.ts",
"type_definitions/inversify/*.ts"
"test/**/**.test.ts"
])
.pipe(tslint())
.pipe(tslint.report("verbose", config));
Expand Down Expand Up @@ -185,28 +184,13 @@ gulp.task("test", function(cb) {
runSequence("istanbul:hook", "mocha", "cover", cb);
});

//******************************************************************************
//* TYPE DEFINITIONS
//******************************************************************************
var tsTypeDefinitionsProject = tsc.createProject("tsconfig.json");

gulp.task("build-type-definitions", function() {
return gulp.src("type_definitions/**/*.ts")
.pipe(tsc(tsTypeDefinitionsProject))
.on("error", function (err) {
process.exit(1);
})
.js.pipe(gulp.dest("type_definitions/"));
});

gulp.task("build", function(cb) {
runSequence(
"lint",
"build-bundle-src", // for nodejs
"build-bundle-compress-src", // for browsers
["build-src", "build-es", "build-lib"], // tests + build es and lib
"build-test",
"build-type-definitions", cb);
"build-test", cb);
});

//******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inversify",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "A lightweight IoC container written in TypeScript.",
"main": "lib/inversify.js",
"jsnext:main": "es/inversify.js",
Expand Down
755 changes: 0 additions & 755 deletions type_definitions/bluebird/bluebird.d.ts

This file was deleted.

35 changes: 0 additions & 35 deletions type_definitions/harmony-proxy/harmony-proxy.d.ts

This file was deleted.

Loading

0 comments on commit 93ef0c7

Please sign in to comment.