mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Don't build upon npm install. (#1855)
Build depends upon ../closure-library, which is outside the usual npm process. And since the library ships pre-built, just concatenate the built files to make the node-ready version.
This commit is contained in:
committed by
GitHub
parent
1b9af8771f
commit
9eb05c4ad3
@@ -48,7 +48,7 @@ gulp.task('build', gulp.shell.task([
|
||||
// and JavaScript code generation. If you need another localization or
|
||||
// generator language, just copy and edit the srcs. Only one localization
|
||||
// language can be included.
|
||||
gulp.task('blockly_javascript_en', ['build'], function() {
|
||||
gulp.task('blockly_javascript_en', function() {
|
||||
var srcs = [
|
||||
'blockly_compressed.js',
|
||||
'blocks_compressed.js',
|
||||
@@ -99,4 +99,4 @@ gulp.task('watch', buildWatchTaskFn('blockly_javascript_en'));
|
||||
|
||||
// The default task concatenates files for Node.js, using English language
|
||||
// blocks and the JavaScript generator.
|
||||
gulp.task('default', ['blockly_javascript_en']);
|
||||
gulp.task('default', ['build', 'blockly_javascript_en']);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"name": "Neil Fraser"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "gulp default",
|
||||
"prepare": "gulp blockly_javascript_en",
|
||||
"lint": "eslint .",
|
||||
"pretest": "tests/scripts/test_setup.sh",
|
||||
"test": "node tests/test_runner.js"
|
||||
@@ -27,6 +27,7 @@
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"eslint": "^4.16",
|
||||
"google-closure-library": "^20180506.0.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-insert": "^0.5.0",
|
||||
@@ -48,8 +49,5 @@
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true
|
||||
},
|
||||
"dependencies": {
|
||||
"google-closure-library": "^20180506.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user