From 203d3f672cef54d085b1ac18c662403d036dd1c0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 1 Apr 2015 23:24:47 +0100 Subject: [PATCH] Add build step to Grunt file --- .gitignore | 2 +- Gruntfile.js | 329 ++++++++++++++---- {public => editor}/favicon.ico | Bin {public => editor}/icons/alert.png | Bin {public => editor}/icons/arduino.png | Bin {public => editor}/icons/arrow-in.png | Bin {public => editor}/icons/bluetooth.png | Bin {public => editor}/icons/bridge-dash.png | Bin {public => editor}/icons/bridge.png | Bin {public => editor}/icons/comment.png | Bin {public => editor}/icons/db.png | Bin {public => editor}/icons/debug.png | Bin {public => editor}/icons/envelope.png | Bin {public => editor}/icons/feed.png | Bin {public => editor}/icons/file.png | Bin {public => editor}/icons/function.png | Bin {public => editor}/icons/hash.png | Bin {public => editor}/icons/inject.png | Bin {public => editor}/icons/leveldb.png | Bin {public => editor}/icons/light.png | Bin {public => editor}/icons/mongodb.png | Bin {public => editor}/icons/mouse.png | Bin {public => editor}/icons/node-changed.png | Bin {public => editor}/icons/node-error.png | Bin {public => editor}/icons/range.png | Bin {public => editor}/icons/redis.png | Bin {public => editor}/icons/rpi.png | Bin {public => editor}/icons/serial.png | Bin {public => editor}/icons/subflow.png | Bin {public => editor}/icons/swap.png | Bin {public => editor}/icons/switch.png | Bin {public => editor}/icons/template.png | Bin {public => editor}/icons/timer.png | Bin {public => editor}/icons/trigger.png | Bin {public => editor}/icons/twitter.png | Bin {public => editor}/icons/watch.png | Bin {public => editor}/icons/white-globe.png | Bin {public => editor}/images/deploy-flows-o.png | Bin {public => editor}/images/deploy-flows.png | Bin {public => editor}/images/deploy-full-o.png | Bin {public => editor}/images/deploy-full.png | Bin {public => editor}/images/deploy-nodes-o.png | Bin {public => editor}/images/deploy-nodes.png | Bin {public => editor/images}/grip.png | Bin {public => editor/images}/node-red-256.png | Bin {public => editor/images}/node-red.png | Bin {public => editor/images}/pw_maze_white.png | Bin {public => editor/images}/spin.svg | 0 {public => editor}/index.html | 58 +-- {public/red => editor/js}/comms.js | 0 {public/red => editor/js}/history.js | 0 {public/red => editor/js}/main.js | 0 {public/red => editor/js}/nodes.js | 0 {public/red => editor/js}/settings.js | 0 {public/red => editor/js}/ui/clipboard.js | 0 {public/red => editor/js}/ui/deploy.js | 14 +- {public/red => editor/js}/ui/editor.js | 0 {public/red => editor/js}/ui/keyboard.js | 0 {public/red => editor/js}/ui/library.js | 0 {public/red => editor/js}/ui/menu.js | 0 {public/red => editor/js}/ui/notifications.js | 0 {public/red => editor/js}/ui/palette.js | 0 {public/red => editor/js}/ui/sidebar.js | 0 {public/red => editor/js}/ui/state.js | 0 {public/red => editor/js}/ui/subflow.js | 0 {public/red => editor/js}/ui/tab-config.js | 0 {public/red => editor/js}/ui/tab-info.js | 0 {public/red => editor/js}/ui/tabs.js | 0 .../red => editor/js}/ui/touch/radialMenu.js | 0 {public/red => editor/js}/ui/view.js | 0 {public/red => editor/js}/ui/workspaces.js | 0 {public/red => editor/js}/user.js | 0 {public/red => editor/js}/validators.js | 0 public/style.css => editor/sass/style.scss | 8 +- {public => editor/vendor}/ace/LICENSE | 0 {public => editor/vendor}/ace/ace.js | 0 .../vendor}/ace/ext-language_tools.js | 0 .../vendor}/ace/ext-searchbox.js | 0 .../vendor}/ace/mode-handlebars.js | 0 {public => editor/vendor}/ace/mode-html.js | 0 .../vendor}/ace/mode-javascript.js | 0 {public => editor/vendor}/ace/mode-json.js | 0 .../vendor}/ace/mode-markdown.js | 0 {public => editor/vendor}/ace/mode-yaml.js | 0 .../vendor}/ace/snippets/handlebars.js | 0 .../vendor}/ace/snippets/html.js | 0 .../vendor}/ace/snippets/javascript.js | 0 .../vendor}/ace/snippets/markdown.js | 0 .../vendor}/ace/snippets/text.js | 0 .../vendor}/ace/snippets/yaml.js | 0 {public => editor/vendor}/ace/theme-chrome.js | 0 .../vendor}/ace/theme-crimson_editor.js | 0 .../vendor}/ace/theme-solarized_light.js | 0 .../vendor}/ace/theme-tomorrow.js | 0 {public => editor/vendor}/ace/worker-html.js | 0 .../vendor}/ace/worker-javascript.js | 0 {public => editor/vendor}/ace/worker-json.js | 0 .../vendor}/bootstrap/css/bootstrap.min.css | 0 .../img/glyphicons-halflings-white.png | Bin .../bootstrap/img/glyphicons-halflings.png | Bin .../vendor}/bootstrap/js/bootstrap.min.js | 0 {public => editor/vendor/d3}/d3.v3.min.js | 0 .../font-awesome/css/font-awesome.min.css | 0 .../font-awesome/fonts/FontAwesome.otf | Bin .../fonts/fontawesome-webfont.eot | Bin .../fonts/fontawesome-webfont.svg | 0 .../fonts/fontawesome-webfont.ttf | Bin .../fonts/fontawesome-webfont.woff | Bin .../fonts/fontawesome-webfont.woff2 | Bin .../smoothness/images/animated-overlay.gif | Bin .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin .../images/ui-bg_flat_75_ffffff_40x100.png | Bin .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin .../images/ui-bg_glass_65_ffffff_1x400.png | Bin .../images/ui-bg_glass_75_dadada_1x400.png | Bin .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin .../images/ui-icons_222222_256x240.png | Bin .../images/ui-icons_2e83ff_256x240.png | Bin .../images/ui-icons_454545_256x240.png | Bin .../images/ui-icons_888888_256x240.png | Bin .../images/ui-icons_cd0a0a_256x240.png | Bin .../jquery-ui-1.10.3.custom.min.css | 0 .../vendor}/jquery/js/jquery-1.11.1.min.js | 0 .../jquery/js/jquery-ui-1.10.3.custom.min.js | 0 .../jquery/js/jquery.ui.touch-punch.min.js | 0 .../vendor}/marked/marked.min.js | 0 .../vendor}/orion/built-editor.css | 0 .../vendor}/orion/built-editor.min.js | 0 package.json | 11 +- red.js | 16 +- red/red.js | 12 + 133 files changed, 329 insertions(+), 121 deletions(-) rename {public => editor}/favicon.ico (100%) rename {public => editor}/icons/alert.png (100%) rename {public => editor}/icons/arduino.png (100%) rename {public => editor}/icons/arrow-in.png (100%) rename {public => editor}/icons/bluetooth.png (100%) rename {public => editor}/icons/bridge-dash.png (100%) rename {public => editor}/icons/bridge.png (100%) rename {public => editor}/icons/comment.png (100%) rename {public => editor}/icons/db.png (100%) rename {public => editor}/icons/debug.png (100%) rename {public => editor}/icons/envelope.png (100%) rename {public => editor}/icons/feed.png (100%) rename {public => editor}/icons/file.png (100%) rename {public => editor}/icons/function.png (100%) rename {public => editor}/icons/hash.png (100%) rename {public => editor}/icons/inject.png (100%) rename {public => editor}/icons/leveldb.png (100%) rename {public => editor}/icons/light.png (100%) rename {public => editor}/icons/mongodb.png (100%) rename {public => editor}/icons/mouse.png (100%) rename {public => editor}/icons/node-changed.png (100%) rename {public => editor}/icons/node-error.png (100%) rename {public => editor}/icons/range.png (100%) rename {public => editor}/icons/redis.png (100%) rename {public => editor}/icons/rpi.png (100%) rename {public => editor}/icons/serial.png (100%) rename {public => editor}/icons/subflow.png (100%) rename {public => editor}/icons/swap.png (100%) rename {public => editor}/icons/switch.png (100%) rename {public => editor}/icons/template.png (100%) rename {public => editor}/icons/timer.png (100%) rename {public => editor}/icons/trigger.png (100%) rename {public => editor}/icons/twitter.png (100%) rename {public => editor}/icons/watch.png (100%) rename {public => editor}/icons/white-globe.png (100%) rename {public => editor}/images/deploy-flows-o.png (100%) rename {public => editor}/images/deploy-flows.png (100%) rename {public => editor}/images/deploy-full-o.png (100%) rename {public => editor}/images/deploy-full.png (100%) rename {public => editor}/images/deploy-nodes-o.png (100%) rename {public => editor}/images/deploy-nodes.png (100%) rename {public => editor/images}/grip.png (100%) rename {public => editor/images}/node-red-256.png (100%) rename {public => editor/images}/node-red.png (100%) rename {public => editor/images}/pw_maze_white.png (100%) rename {public => editor/images}/spin.svg (100%) rename {public => editor}/index.html (78%) rename {public/red => editor/js}/comms.js (100%) rename {public/red => editor/js}/history.js (100%) rename {public/red => editor/js}/main.js (100%) rename {public/red => editor/js}/nodes.js (100%) rename {public/red => editor/js}/settings.js (100%) rename {public/red => editor/js}/ui/clipboard.js (100%) rename {public/red => editor/js}/ui/deploy.js (89%) rename {public/red => editor/js}/ui/editor.js (100%) rename {public/red => editor/js}/ui/keyboard.js (100%) rename {public/red => editor/js}/ui/library.js (100%) rename {public/red => editor/js}/ui/menu.js (100%) rename {public/red => editor/js}/ui/notifications.js (100%) rename {public/red => editor/js}/ui/palette.js (100%) rename {public/red => editor/js}/ui/sidebar.js (100%) rename {public/red => editor/js}/ui/state.js (100%) rename {public/red => editor/js}/ui/subflow.js (100%) rename {public/red => editor/js}/ui/tab-config.js (100%) rename {public/red => editor/js}/ui/tab-info.js (100%) rename {public/red => editor/js}/ui/tabs.js (100%) rename {public/red => editor/js}/ui/touch/radialMenu.js (100%) rename {public/red => editor/js}/ui/view.js (100%) rename {public/red => editor/js}/ui/workspaces.js (100%) rename {public/red => editor/js}/user.js (100%) rename {public/red => editor/js}/validators.js (100%) rename public/style.css => editor/sass/style.scss (99%) rename {public => editor/vendor}/ace/LICENSE (100%) rename {public => editor/vendor}/ace/ace.js (100%) rename {public => editor/vendor}/ace/ext-language_tools.js (100%) rename {public => editor/vendor}/ace/ext-searchbox.js (100%) rename {public => editor/vendor}/ace/mode-handlebars.js (100%) rename {public => editor/vendor}/ace/mode-html.js (100%) rename {public => editor/vendor}/ace/mode-javascript.js (100%) rename {public => editor/vendor}/ace/mode-json.js (100%) rename {public => editor/vendor}/ace/mode-markdown.js (100%) rename {public => editor/vendor}/ace/mode-yaml.js (100%) rename {public => editor/vendor}/ace/snippets/handlebars.js (100%) rename {public => editor/vendor}/ace/snippets/html.js (100%) rename {public => editor/vendor}/ace/snippets/javascript.js (100%) rename {public => editor/vendor}/ace/snippets/markdown.js (100%) rename {public => editor/vendor}/ace/snippets/text.js (100%) rename {public => editor/vendor}/ace/snippets/yaml.js (100%) rename {public => editor/vendor}/ace/theme-chrome.js (100%) rename {public => editor/vendor}/ace/theme-crimson_editor.js (100%) rename {public => editor/vendor}/ace/theme-solarized_light.js (100%) rename {public => editor/vendor}/ace/theme-tomorrow.js (100%) rename {public => editor/vendor}/ace/worker-html.js (100%) rename {public => editor/vendor}/ace/worker-javascript.js (100%) rename {public => editor/vendor}/ace/worker-json.js (100%) rename {public => editor/vendor}/bootstrap/css/bootstrap.min.css (100%) rename {public => editor/vendor}/bootstrap/img/glyphicons-halflings-white.png (100%) rename {public => editor/vendor}/bootstrap/img/glyphicons-halflings.png (100%) rename {public => editor/vendor}/bootstrap/js/bootstrap.min.js (100%) rename {public => editor/vendor/d3}/d3.v3.min.js (100%) rename {public => editor/vendor}/font-awesome/css/font-awesome.min.css (100%) rename {public => editor/vendor}/font-awesome/fonts/FontAwesome.otf (100%) rename {public => editor/vendor}/font-awesome/fonts/fontawesome-webfont.eot (100%) rename {public => editor/vendor}/font-awesome/fonts/fontawesome-webfont.svg (100%) rename {public => editor/vendor}/font-awesome/fonts/fontawesome-webfont.ttf (100%) rename {public => editor/vendor}/font-awesome/fonts/fontawesome-webfont.woff (100%) rename {public => editor/vendor}/font-awesome/fonts/fontawesome-webfont.woff2 (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/animated-overlay.gif (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-icons_222222_256x240.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-icons_454545_256x240.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-icons_888888_256x240.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png (100%) rename {public => editor/vendor}/jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css (100%) rename {public => editor/vendor}/jquery/js/jquery-1.11.1.min.js (100%) rename {public => editor/vendor}/jquery/js/jquery-ui-1.10.3.custom.min.js (100%) rename {public => editor/vendor}/jquery/js/jquery.ui.touch-punch.min.js (100%) rename {public => editor/vendor}/marked/marked.min.js (100%) rename {public => editor/vendor}/orion/built-editor.css (100%) rename {public => editor/vendor}/orion/built-editor.min.js (100%) diff --git a/.gitignore b/.gitignore index 51324e9f7..6ae283f80 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ nodes/node-red-nodes/ /coverage .config.json .sessions.json - +public diff --git a/Gruntfile.js b/Gruntfile.js index 0e68c900a..db93ad48d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,5 @@ /** - * Copyright 2013, 2014 IBM Corp. + * Copyright 2013, 2015 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,82 +14,279 @@ * limitations under the License. **/ +var path = require("path"); + module.exports = function(grunt) { - // Project configuration. grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - simplemocha: { - options: { - globals: ['expect'], - timeout: 3000, - ignoreLeaks: false, - ui: 'bdd', - reporter: 'spec' - }, - all: { src: ['test/**/*_spec.js'] }, - core: { src: ["test/_spec.js","test/red/**/*_spec.js"]}, - nodes: { src: ["test/nodes/**/*_spec.js"]} + pkg: grunt.file.readJSON('package.json'), + paths: { + dist: ".dist" + }, + simplemocha: { + options: { + globals: ['expect'], + timeout: 3000, + ignoreLeaks: false, + ui: 'bdd', + reporter: 'spec' }, - jshint: { - options: { - // http://www.jshint.com/docs/options/ - "asi": true, // allow missing semicolons - "curly": true, // require braces - "eqnull": true, // ignore ==null - "forin": true, // require property filtering in "for in" loops - "immed": true, // require immediate functions to be wrapped in ( ) - "nonbsp": true, // warn on unexpected whitespace breaking chars - //"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually - "loopfunc": true, // allow functions to be defined in loops - "sub": true // don't warn that foo['bar'] should be written as foo.bar - }, - all: [ - 'Gruntfile.js', - 'red.js', - 'red/**/*.js', - 'nodes/**/*.js', - 'public/red/**/*.js' - ], - - core: { - files: { - src: [ - 'Gruntfile.js', - 'red.js', - 'red/**/*.js' - ] - } - }, - nodes: { - files: { - src: [ 'nodes/**/*.js' ] - } - }, - editor: { - files: { - src: [ 'public/red/**/*.js' ] - } - }, - tests: { - files: { - src: ['test/**/*.js'] - }, - options: { - "expr": true - } + all: { src: ['test/**/*_spec.js'] }, + core: { src: ["test/_spec.js","test/red/**/*_spec.js"]}, + nodes: { src: ["test/nodes/**/*_spec.js"]} + }, + jshint: { + options: { + // http://www.jshint.com/docs/options/ + "asi": true, // allow missing semicolons + "curly": true, // require braces + "eqnull": true, // ignore ==null + "forin": true, // require property filtering in "for in" loops + "immed": true, // require immediate functions to be wrapped in ( ) + "nonbsp": true, // warn on unexpected whitespace breaking chars + //"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually + "loopfunc": true, // allow functions to be defined in loops + "sub": true // don't warn that foo['bar'] should be written as foo.bar + }, + all: [ + 'Gruntfile.js', + 'red.js', + 'red/**/*.js', + 'nodes/**/*.js', + 'editor/js/**/*.js' + ], + + core: { + files: { + src: [ + 'Gruntfile.js', + 'red.js', + 'red/**/*.js' + ] + } + }, + nodes: { + files: { + src: [ 'nodes/**/*.js' ] + } + }, + editor: { + files: { + src: [ 'editor/js/**/*.js' ] + } + }, + tests: { + files: { + src: ['test/**/*.js'] + }, + options: { + "expr": true } - } + }, + concat: { + options: { + separator: ";", + }, + build: { + src: [ + // Ensure editor source files are concatenated in + // the right order + "editor/js/main.js", + "editor/js/settings.js", + "editor/js/user.js", + "editor/js/comms.js", + "editor/js/ui/state.js", + "editor/js/nodes.js", + "editor/js/history.js", + "editor/js/validators.js", + "editor/js/ui/deploy.js", + "editor/js/ui/menu.js", + "editor/js/ui/keyboard.js", + "editor/js/ui/tabs.js", + "editor/js/ui/workspaces.js", + "editor/js/ui/view.js", + "editor/js/ui/sidebar.js", + "editor/js/ui/palette.js", + "editor/js/ui/tab-info.js", + "editor/js/ui/tab-config.js", + "editor/js/ui/editor.js", + "editor/js/ui/clipboard.js", + "editor/js/ui/library.js", + "editor/js/ui/notifications.js", + "editor/js/ui/subflow.js", + "editor/js/ui/touch/radialMenu.js" + ], + dest: "public/red/red.js" + } + }, + uglify: { + build: { + files: { + 'public/red/red.min.js': 'public/red/red.js' + } + } + }, + sass: { + build: { + options: { + outputStyle: 'compressed' + }, + files: [{ + dest: 'public/red/style.min.css', + src: 'editor/sass/style.scss' + }] + } + }, + clean: { + build: { + src: [ + "public/red", + "public/index.html", + "public/favicon.ico", + "public/icons", + "public/vendor" + ] + }, + release: { + src: [ + '<%= paths.dist %>' + ] + } + }, + watch: { + js: { + files: [ + 'editor/js/**/*.js' + ], + tasks: ['concat','uglify'] + }, + sass: { + files: [ + 'editor/sass/**/*.scss' + ], + tasks: ['sass'] + } + }, + + nodemon: { + /* uses .nodemonignore */ + dev: { + script: 'red.js', + options: { + args:['-v'], + ext: 'js,html' + } + } + }, + + concurrent: { + dev: { + tasks: ['nodemon', 'watch'], + options: { + logConcurrentOutput: true + } + } + }, + + copy: { + build: { + files:[{ + cwd: 'editor/images', + src: '**', + expand: true, + dest: 'public/red/images/' + }, + { + cwd: 'editor/vendor', + src: '**', + expand: true, + dest: 'public/vendor/' + }, + { + cwd: 'editor/icons', + src: '**', + expand: true, + dest: 'public/icons/' + }, + { + expand: true, + src: ['editor/index.html','editor/favicon.ico'], + dest: 'public/', + flatten: true + }] + }, + release: { + files: [{ + expand: true, + src: [ + '*.md', + 'LICENSE', + 'package.json', + 'settings.js', + 'red.js', + 'lib/.gitignore', + 'nodes/*.demo', + 'nodes/core/**', + 'red/**', + 'public/**' + ], + dest: path.resolve('<%= paths.dist %>/node-red-<%= pkg.version %>') + }] + } + }, + + compress: { + release: { + options: { + archive: '<%= paths.dist %>/node-red-<%= pkg.version %>.zip' + }, + expand: true, + cwd: '<%= paths.dist %>/', + src: ['node-red-<%= pkg.version %>/**'] + } + } }); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-concurrent'); + grunt.loadNpmTasks('grunt-sass'); + grunt.loadNpmTasks('grunt-nodemon'); + grunt.loadNpmTasks('grunt-contrib-compress'); + grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.registerTask('default', ['test-core','test-editor','test-nodes']); + grunt.registerTask('default', + 'Builds editor content then runs code style checks and unit tests on all components', + ['build','test-core','test-editor','test-nodes']); - grunt.registerTask('test-core', ['jshint:core','simplemocha:core']); - grunt.registerTask('test-editor', ['jshint:editor']); - grunt.registerTask('test-nodes', ['simplemocha:nodes']); + grunt.registerTask('test-core', + 'Runs code style check and unit tests on core runtime code', + ['jshint:core','simplemocha:core']); + + grunt.registerTask('test-editor', + 'Runs code style check on editor code', + ['jshint:editor']); + + grunt.registerTask('test-nodes', + 'Runs unit tests on core nodes', + ['simplemocha:nodes']); + + grunt.registerTask('build', + 'Builds editor content', + ['clean:build','concat:build','uglify:build','sass:build','copy:build']); + + grunt.registerTask('dev', + 'Developer mode: run node-red, watch for source changes and build/restart', + ['build','concurrent:dev']); + + grunt.registerTask('release', + 'Create distribution zip file', + ['build','clean:release','copy:release','compress:release']); + }; diff --git a/public/favicon.ico b/editor/favicon.ico similarity index 100% rename from public/favicon.ico rename to editor/favicon.ico diff --git a/public/icons/alert.png b/editor/icons/alert.png similarity index 100% rename from public/icons/alert.png rename to editor/icons/alert.png diff --git a/public/icons/arduino.png b/editor/icons/arduino.png similarity index 100% rename from public/icons/arduino.png rename to editor/icons/arduino.png diff --git a/public/icons/arrow-in.png b/editor/icons/arrow-in.png similarity index 100% rename from public/icons/arrow-in.png rename to editor/icons/arrow-in.png diff --git a/public/icons/bluetooth.png b/editor/icons/bluetooth.png similarity index 100% rename from public/icons/bluetooth.png rename to editor/icons/bluetooth.png diff --git a/public/icons/bridge-dash.png b/editor/icons/bridge-dash.png similarity index 100% rename from public/icons/bridge-dash.png rename to editor/icons/bridge-dash.png diff --git a/public/icons/bridge.png b/editor/icons/bridge.png similarity index 100% rename from public/icons/bridge.png rename to editor/icons/bridge.png diff --git a/public/icons/comment.png b/editor/icons/comment.png similarity index 100% rename from public/icons/comment.png rename to editor/icons/comment.png diff --git a/public/icons/db.png b/editor/icons/db.png similarity index 100% rename from public/icons/db.png rename to editor/icons/db.png diff --git a/public/icons/debug.png b/editor/icons/debug.png similarity index 100% rename from public/icons/debug.png rename to editor/icons/debug.png diff --git a/public/icons/envelope.png b/editor/icons/envelope.png similarity index 100% rename from public/icons/envelope.png rename to editor/icons/envelope.png diff --git a/public/icons/feed.png b/editor/icons/feed.png similarity index 100% rename from public/icons/feed.png rename to editor/icons/feed.png diff --git a/public/icons/file.png b/editor/icons/file.png similarity index 100% rename from public/icons/file.png rename to editor/icons/file.png diff --git a/public/icons/function.png b/editor/icons/function.png similarity index 100% rename from public/icons/function.png rename to editor/icons/function.png diff --git a/public/icons/hash.png b/editor/icons/hash.png similarity index 100% rename from public/icons/hash.png rename to editor/icons/hash.png diff --git a/public/icons/inject.png b/editor/icons/inject.png similarity index 100% rename from public/icons/inject.png rename to editor/icons/inject.png diff --git a/public/icons/leveldb.png b/editor/icons/leveldb.png similarity index 100% rename from public/icons/leveldb.png rename to editor/icons/leveldb.png diff --git a/public/icons/light.png b/editor/icons/light.png similarity index 100% rename from public/icons/light.png rename to editor/icons/light.png diff --git a/public/icons/mongodb.png b/editor/icons/mongodb.png similarity index 100% rename from public/icons/mongodb.png rename to editor/icons/mongodb.png diff --git a/public/icons/mouse.png b/editor/icons/mouse.png similarity index 100% rename from public/icons/mouse.png rename to editor/icons/mouse.png diff --git a/public/icons/node-changed.png b/editor/icons/node-changed.png similarity index 100% rename from public/icons/node-changed.png rename to editor/icons/node-changed.png diff --git a/public/icons/node-error.png b/editor/icons/node-error.png similarity index 100% rename from public/icons/node-error.png rename to editor/icons/node-error.png diff --git a/public/icons/range.png b/editor/icons/range.png similarity index 100% rename from public/icons/range.png rename to editor/icons/range.png diff --git a/public/icons/redis.png b/editor/icons/redis.png similarity index 100% rename from public/icons/redis.png rename to editor/icons/redis.png diff --git a/public/icons/rpi.png b/editor/icons/rpi.png similarity index 100% rename from public/icons/rpi.png rename to editor/icons/rpi.png diff --git a/public/icons/serial.png b/editor/icons/serial.png similarity index 100% rename from public/icons/serial.png rename to editor/icons/serial.png diff --git a/public/icons/subflow.png b/editor/icons/subflow.png similarity index 100% rename from public/icons/subflow.png rename to editor/icons/subflow.png diff --git a/public/icons/swap.png b/editor/icons/swap.png similarity index 100% rename from public/icons/swap.png rename to editor/icons/swap.png diff --git a/public/icons/switch.png b/editor/icons/switch.png similarity index 100% rename from public/icons/switch.png rename to editor/icons/switch.png diff --git a/public/icons/template.png b/editor/icons/template.png similarity index 100% rename from public/icons/template.png rename to editor/icons/template.png diff --git a/public/icons/timer.png b/editor/icons/timer.png similarity index 100% rename from public/icons/timer.png rename to editor/icons/timer.png diff --git a/public/icons/trigger.png b/editor/icons/trigger.png similarity index 100% rename from public/icons/trigger.png rename to editor/icons/trigger.png diff --git a/public/icons/twitter.png b/editor/icons/twitter.png similarity index 100% rename from public/icons/twitter.png rename to editor/icons/twitter.png diff --git a/public/icons/watch.png b/editor/icons/watch.png similarity index 100% rename from public/icons/watch.png rename to editor/icons/watch.png diff --git a/public/icons/white-globe.png b/editor/icons/white-globe.png similarity index 100% rename from public/icons/white-globe.png rename to editor/icons/white-globe.png diff --git a/public/images/deploy-flows-o.png b/editor/images/deploy-flows-o.png similarity index 100% rename from public/images/deploy-flows-o.png rename to editor/images/deploy-flows-o.png diff --git a/public/images/deploy-flows.png b/editor/images/deploy-flows.png similarity index 100% rename from public/images/deploy-flows.png rename to editor/images/deploy-flows.png diff --git a/public/images/deploy-full-o.png b/editor/images/deploy-full-o.png similarity index 100% rename from public/images/deploy-full-o.png rename to editor/images/deploy-full-o.png diff --git a/public/images/deploy-full.png b/editor/images/deploy-full.png similarity index 100% rename from public/images/deploy-full.png rename to editor/images/deploy-full.png diff --git a/public/images/deploy-nodes-o.png b/editor/images/deploy-nodes-o.png similarity index 100% rename from public/images/deploy-nodes-o.png rename to editor/images/deploy-nodes-o.png diff --git a/public/images/deploy-nodes.png b/editor/images/deploy-nodes.png similarity index 100% rename from public/images/deploy-nodes.png rename to editor/images/deploy-nodes.png diff --git a/public/grip.png b/editor/images/grip.png similarity index 100% rename from public/grip.png rename to editor/images/grip.png diff --git a/public/node-red-256.png b/editor/images/node-red-256.png similarity index 100% rename from public/node-red-256.png rename to editor/images/node-red-256.png diff --git a/public/node-red.png b/editor/images/node-red.png similarity index 100% rename from public/node-red.png rename to editor/images/node-red.png diff --git a/public/pw_maze_white.png b/editor/images/pw_maze_white.png similarity index 100% rename from public/pw_maze_white.png rename to editor/images/pw_maze_white.png diff --git a/public/spin.svg b/editor/images/spin.svg similarity index 100% rename from public/spin.svg rename to editor/images/spin.svg diff --git a/public/index.html b/editor/index.html similarity index 78% rename from public/index.html rename to editor/index.html index b928e6a6f..ba1dbeee3 100644 --- a/public/index.html +++ b/editor/index.html @@ -4,7 +4,6 @@ - Node-RED - - - - - + + + + +