Skip to content

Commit

Permalink
fixing npm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
remojansen committed Jul 5, 2016
1 parent 4deed43 commit dcdd535
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 57 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ typings
# build
temp
bundle
node_modulestypings
media
src
test

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
.typingsrc
.typingsrc

lib
29 changes: 2 additions & 27 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
var gulp = require("gulp"),
tslint = require("gulp-tslint"),
tsc = require("gulp-typescript"),
runSequence = require("run-sequence"),
browserify = require("browserify"),
source = require("vinyl-source-stream"),
buffer = require("vinyl-buffer");
runSequence = require("run-sequence");

//******************************************************************************
//* LINT ALL
Expand Down Expand Up @@ -47,28 +44,7 @@ gulp.task("build", function() {
.on("error", function (err) {
process.exit(1);
})
.js.pipe(gulp.dest("temp/"));
});

//******************************************************************************
//* BUNDLE SOURCE
//******************************************************************************
gulp.task("bundle", function() {

var mainFilePath = "temp/main.js";
var outputFolder = "bundle";
var outputFileName = "app.js";

var bundler = browserify({
debug: true
});

// TS compiler options are in tsconfig.json file
return bundler.add(mainFilePath)
.bundle()
.pipe(source(outputFileName))
.pipe(buffer())
.pipe(gulp.dest(outputFolder));
.js.pipe(gulp.dest("lib/"));
});

//******************************************************************************
Expand All @@ -78,6 +54,5 @@ gulp.task("default", function (cb) {
runSequence(
"lint",
"build",
"bundle",
cb);
});
18 changes: 0 additions & 18 deletions index.html

This file was deleted.

18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "inversify-devtools",
"version": "1.0.0-beta.1",
"description": "inversify-devtools",
"main": "index.js",
"main": "lib/main.js",
"scripts": {
"test": "gulp",
"publish-please": "publish-please",
Expand Down Expand Up @@ -36,25 +36,21 @@
"redux": "^3.5.2",
"redux-bootstrap": "^1.0.0-rc.1",
"redux-immutable": "^3.0.6",
"redux-thunk": "^2.0.1"
"redux-thunk": "^2.0.1",
"redux-devtools": "^3.2.0",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.0.11",
"redux-logger": "^2.6.1"
},
"devDependencies": {
"browserify": "^13.0.0",
"envify": "^3.4.1",
"gulp": "^3.9.1",
"gulp-tslint": "^5.0.0",
"gulp-typescript": "^2.13.0",
"inversify": "^2.0.0-rc.1",
"inversify-dts": "^1.2.0",
"publish-please": "^2.1.4",
"redux-devtools": "^3.2.0",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.0.11",
"redux-logger": "^2.6.1",
"reflect-metadata": "^0.1.3",
"run-sequence": "^1.1.5",
"tslint": "^3.8.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"tslint": "^3.8.1"
}
}

0 comments on commit dcdd535

Please sign in to comment.