Skip to content
Permalink
Browse files

Attempting to add a better packaging pattern

  • Loading branch information...
toddpi314 committed Nov 6, 2015
1 parent dcddd3f commit a7bdf3b013f5c18d9ff2db84231d9f1d6c6536fa
Showing with 5 additions and 4 deletions.
  1. +3 −3 gulpfile.js
  2. +2 −1 package.json
@@ -8,7 +8,7 @@ var gulp = require('gulp'),
webpack = require("webpack"),
webpackConfig = require("./webpack.config.js"),
packageConfig = require('./package.json'),
gulpReplace = require('gulp-replace');
replace = require('gulp-replace');

gulp.task("dist", function(cb) {
runSequence(
@@ -20,9 +20,9 @@ gulp.task("dist", function(cb) {


gulp.task("npm:pre-publish", function(cb) {
return gulp.src(['package.json'])
return gulp.src('./package.json')
.pipe(replace(/latest.js/g, "winjsrocks-" + packageConfig.version + ".js"))
.pipe(gulp.dest('package.json'));
.pipe(gulp.dest('./'));
});

gulp.task("dist:package:release", function(cb) {
@@ -53,7 +53,8 @@
},
"scripts": {
"test": "NODE_ENV=test node --expose-gc node_modules/gulp/bin/gulp test",
"build": "gulp dist"
"build": "gulp dist",
"prepublish": "gulp npm:pre-publish"
},
"engines": {
"node": ">= 0.12.7",

0 comments on commit a7bdf3b

Please sign in to comment.
You can’t perform that action at this time.