@@ -98,7 +98,7 @@ module.exports = function(grunt) {
9898 src : [
9999 // Ensure editor source files are concatenated in
100100 // the right order
101- "editor/js/main .js" ,
101+ "editor/js/red .js" ,
102102 "editor/js/events.js" ,
103103 "editor/js/i18n.js" ,
104104 "editor/js/settings.js" ,
@@ -150,19 +150,15 @@ module.exports = function(grunt) {
150150 "public/vendor/vendor.css" : [
151151 // TODO: resolve relative resource paths in
152152 // bootstrap/FA/jquery
153- ] ,
154- "public/vendor/vendor-jquery.js" : [
155- "editor/vendor/jquery/js/jquery-1.11.3.min.js" ,
156- "editor/vendor/jquery/js/jquery-ui-1.10.3.custom.min.js" ,
157- "editor/vendor/jquery/js/jquery.ui.touch-punch.min.js" ,
158153 ]
159154 }
160155 }
161156 } ,
162157 uglify : {
163158 build : {
164159 files : {
165- 'public/red/red.min.js' : 'public/red/red.js'
160+ 'public/red/red.min.js' : 'public/red/red.js' ,
161+ 'public/red/main.min.js' : 'public/red/main.js'
166162 }
167163 }
168164 } ,
@@ -193,7 +189,8 @@ module.exports = function(grunt) {
193189 attachCopyright : {
194190 js : {
195191 src : [
196- 'public/red/red.min.js'
192+ 'public/red/red.min.js' ,
193+ 'public/red/main.min.js'
197194 ]
198195 } ,
199196 css : {
@@ -272,40 +269,45 @@ module.exports = function(grunt) {
272269
273270 copy : {
274271 build : {
275- files :[ {
276- cwd : 'editor/images' ,
277- src : '**' ,
278- expand : true ,
279- dest : 'public/red/images/'
280- } ,
281- {
282- cwd : 'editor/vendor' ,
283- src : [
284- 'ace/**' ,
285- //'bootstrap/css/**',
286- 'bootstrap/img/**' ,
287- 'jquery/css/**' ,
288- 'font-awesome/**'
289- ] ,
290- expand : true ,
291- dest : 'public/vendor/'
292- } ,
293- {
294- cwd : 'editor/icons' ,
295- src : '**' ,
296- expand : true ,
297- dest : 'public/icons/'
298- } ,
299- {
300- expand : true ,
301- src : [ 'editor/index.html' , 'editor/favicon.ico' ] ,
302- dest : 'public/' ,
303- flatten : true
304- } ,
305- {
306- src : 'CHANGELOG.md' ,
307- dest : 'public/red/about'
308- }
272+ files :[
273+ {
274+ src : 'editor/js/main.js' ,
275+ dest : 'public/red/main.js'
276+ } ,
277+ {
278+ cwd : 'editor/images' ,
279+ src : '**' ,
280+ expand : true ,
281+ dest : 'public/red/images/'
282+ } ,
283+ {
284+ cwd : 'editor/vendor' ,
285+ src : [
286+ 'ace/**' ,
287+ //'bootstrap/css/**',
288+ 'bootstrap/img/**' ,
289+ 'jquery/css/**' ,
290+ 'font-awesome/**'
291+ ] ,
292+ expand : true ,
293+ dest : 'public/vendor/'
294+ } ,
295+ {
296+ cwd : 'editor/icons' ,
297+ src : '**' ,
298+ expand : true ,
299+ dest : 'public/icons/'
300+ } ,
301+ {
302+ expand : true ,
303+ src : [ 'editor/index.html' , 'editor/favicon.ico' ] ,
304+ dest : 'public/' ,
305+ flatten : true
306+ } ,
307+ {
308+ src : 'CHANGELOG.md' ,
309+ dest : 'public/red/about'
310+ }
309311 ]
310312 } ,
311313 release : {
@@ -431,7 +433,7 @@ module.exports = function(grunt) {
431433
432434 grunt . registerTask ( 'build' ,
433435 'Builds editor content' ,
434- [ 'clean:build' , 'concat:build' , 'concat:vendor' , 'uglify :build' , 'sass :build' , 'jsonlint:messages ' , 'copy:build ' , 'attachCopyright' ] ) ;
436+ [ 'clean:build' , 'concat:build' , 'concat:vendor' , 'copy :build' , 'uglify :build' , 'sass:build ' , 'jsonlint:messages ' , 'attachCopyright' ] ) ;
435437
436438 grunt . registerTask ( 'dev' ,
437439 'Developer mode: run node-red, watch for source changes and build/restart' ,
0 commit comments