Skip to content

Commit

Permalink
fix(Build): exclude postinstall task when installing production
Browse files Browse the repository at this point in the history
  • Loading branch information
grbsk committed Feb 16, 2016
1 parent 7a1ad69 commit 1db53ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"gulp-conventional-changelog": "^0.7.0",
"gulp-eslint": "^1.1.1",
"gulp-header": "^1.7.1",
"gulp-json-editor": "^2.2.1",
"gulp-plumber": "^1.0.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-tslint": "^4.3.1",
Expand Down
2 changes: 1 addition & 1 deletion tools/gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ gulp.task('build:dist:es6', function() {
gulp.task('build:dist', function(done) {
runSequence('clean:dist',
'lint',
['release:copy-assets', 'build:dist:ts',
['release:copy-assets', 'release:fix-package', 'build:dist:ts',
'build:dist:cjs', 'build:dist:es6'],
'bundle',
done);
Expand Down
11 changes: 11 additions & 0 deletions tools/gulp/release.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
const gulp = require('gulp');
const path = require('path');
const config = require('./config');
const cclog = require('gulp-conventional-changelog');
const jeditor = require('gulp-json-editor');

gulp.task('release:copy-assets', function copyReleaseAssets() {
return gulp.src(config.PATHS.releaseAssets)
.pipe(gulp.dest(config.PATHS.dist.base));
});

gulp.task('release:fix-package', function fixPackage() {
return gulp.src(path.join(config.PATHS.root, './package.json'))
.pipe(jeditor(function(json) {
json.scripts = {};
return json;
}))
.pipe(gulp.dest(path.join(config.PATHS.root, config.PATHS.dist.base)));
});

gulp.task('release:changelog', function changelog() {
return gulp.src('CHANGELOG.md', {
buffer: false
Expand Down

0 comments on commit 1db53ca

Please sign in to comment.