mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Move build and package directory config into new config.js
Make the destination directories for certain build/package/release steps more easily (and centrally) configurable. This only deals with building *_compressed* files; blockly_uncompressed.js and the various msg/js/*.js files are not affected by this commit.
This commit is contained in:
@@ -21,8 +21,8 @@ var through2 = require('through2');
|
||||
var closureCompiler = require('google-closure-compiler').gulp();
|
||||
var closureDeps = require('google-closure-deps');
|
||||
var argv = require('yargs').argv;
|
||||
var { getPackageJson } = require('./helper_tasks');
|
||||
|
||||
var {BUILD_DIR} = require('./config');
|
||||
var {getPackageJson} = require('./helper_tasks');
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Build //
|
||||
@@ -217,7 +217,7 @@ function buildCompressed() {
|
||||
}))
|
||||
.pipe(
|
||||
gulp.sourcemaps.write('.', {includeContent: false, sourceRoot: './'}))
|
||||
.pipe(gulp.dest('./'));
|
||||
.pipe(gulp.dest(BUILD_DIR));
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -242,7 +242,7 @@ function buildBlocks() {
|
||||
includeContent: false,
|
||||
sourceRoot: './'
|
||||
}))
|
||||
.pipe(gulp.dest('./'));
|
||||
.pipe(gulp.dest(BUILD_DIR));
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -268,7 +268,7 @@ function buildGenerator(language, namespace) {
|
||||
includeContent: false,
|
||||
sourceRoot: './'
|
||||
}))
|
||||
.pipe(gulp.dest('./'));
|
||||
.pipe(gulp.dest(BUILD_DIR));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user