Permalink
Browse files

build script cleanup

  • Loading branch information...
eanders-MS committed Jun 13, 2017
1 parent 220d482 commit 772e178415e8e3a518181b5b7bbf1cd43695dd8f
Showing with 14 additions and 22 deletions.
  1. +1 −2 .vscode/tasks.json
  2. +12 −19 gulpfile.js
  3. +1 −1 package.json
View
@@ -9,10 +9,9 @@
],
"tasks": [
{
"taskName": "default",
"taskName": "build",
"args": [],
"isBuildCommand": true,
"isWatching": false,
"problemMatcher": [
"$lessCompile",
"$tsc",
View
@@ -1,36 +1,29 @@
var gulp = require('gulp');
var clean = require('gulp-clean');
var tsc = require('gulp-tsc');
gulp.task('clean', function () {
var clean = require('gulp-clean');
return gulp.src('./app/', { read: false })
.pipe(clean());
});
gulp.task('build-app', ['clean'], function () {
gulp.task('build-app', function () {
var tsc = require('gulp-tsc');
var tsconfig = require('./tsconfig.json');
return gulp.src(['src/**/*.ts', 'src/**/*.tsx'])
.pipe(tsc({
module: 'commonjs',
moduleResolution: 'node',
target: 'es6',
sourceMap: true,
noImplicitAny: false,
noImplicitThis: true,
noEmitOnError: true,
noImplicitReturns: true,
noFallthroughCasesInSwitch: true,
noUnusedLocals: true,
outDir: 'app',
additionalTscParameters: ['--jsx', 'react']
}))
.pipe(tsc(tsconfig.compilerOptions))
.pipe(gulp.dest('app/'));
});
gulp.task('copy-site', ['build-app'], function () {
gulp.task('build-site', function () {
return gulp.src([
'./src/**/*.html',
'./src/**/*.css'])
.pipe(gulp.dest('app/'));
});
gulp.task('default', ['copy-site']);
gulp.task('build', ['clean'], function() {
return gulp.start([
'build-app',
'build-site'
]);
});
View
@@ -4,7 +4,7 @@
"description": "Emulator for the Microsoft Bot Framework. Allows developers to test and debug their bots on localhost.",
"main": "./app/server/main.js",
"scripts": {
"build": "gulp",
"build": "gulp build",
"test": "echo \"Error: no test specified\" && exit 1",
"pack": "build --dir",
"dist": "build",

0 comments on commit 772e178

Please sign in to comment.