Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Jan 20, 2017
1 parent 5dd9c4d commit c7bdf51
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
14 changes: 12 additions & 2 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import * as _ from 'lodash';
import * as fs from 'fs';
import * as Path from 'path';
import { TypeScriptHelpers, FuseBox, RawPlugin, CSSPlugin, HTMLPlugin, UglifyJSPlugin } from 'fuse-box';
import { FuseBox, RawPlugin, CSSPlugin, HTMLPlugin, UglifyJSPlugin } from 'fuse-box';
const gulp = require('gulp');
const g = require('gulp-load-plugins')();
const del = require('del');
const through = require('through2');
const streamFromPromise = require('stream-from-promise');
const source = require('vinyl-source-buffer');
const { GulpPlugin } = require('fusebox-gulp-plugin');
const args = g.util.env;
const config = {
DEV_MODE: g.util.env.prod !== true,
PORT: 8777,
Expand All @@ -31,7 +32,6 @@ const fuseBox = _.once(function createFuseBox(options = {}) {
plugins: [
[
/\.ts$/,
TypeScriptHelpers(),
GulpPlugin([
(file) => g.preprocess({ context: config })
]),
Expand Down Expand Up @@ -171,3 +171,13 @@ gulp.task('eslint', () => {
.pipe(g.eslint())
.pipe(g.eslint.format());
});

gulp.task("bump", () => {
const options: any = {};
if (args.m) {
options.type = 'minor';
}
return gulp.src('./package.json')
.pipe(g.bump())
.pipe(gulp.dest('.'));
});
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:watch": "gulp spec:build && concurrently -k -p \"{name}:\" -n \"k,w\" \"karma start\" \"gulp spec:watch\"",
"tsc:check": "tsc --project tsconfig.json --noEmit --watch"
},
"license": "XNet",
"license": "Xnet",
"dependencies": {
"@angular/common": "2.4.4",
"@angular/compiler": "2.4.4",
Expand Down Expand Up @@ -43,7 +43,7 @@
"eslint-plugin-typescript": "0.1.0",
"eslint-plugin-unicorn": "1.0.0",
"eslint-plugin-wix-editor": "1.1.1",
"fuse-box": "1.3.62",
"fuse-box": "1.3.65",
"fusebox-gulp-plugin": "1.0.1",
"gulp": "gulpjs/gulp#4.0",
"gulp-connect": "5.0.0",
Expand All @@ -66,6 +66,7 @@
"lodash": "4.17.4",
"stream-from-promise": "1.0.0",
"ts-node": "2.0.0",
"tslib": "1.5.0",
"typescript": "2.1.5",
"typescript-eslint-parser": "1.0.2",
"vinyl-source-buffer": "1.1.1"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"noEmitHelpers": true,
"importHelpers": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": true,
Expand All @@ -21,4 +21,4 @@
],
"compileOnSave": false,
"buildOnSave": false
}
}

0 comments on commit c7bdf51

Please sign in to comment.