Skip to content

Commit

Permalink
Added disableEditor as a configured parameter stored in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
seansund committed May 14, 2017
1 parent 7e9e083 commit e332157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(grunt) {
},
{
match: /disableEditor: false/g,
replacement: 'disableEditor: true'
replacement: 'disableEditor: <%= pkg.properties["disable-editor"] %>'
},
{
match: /(uiPort: process.env.PORT .. )(188\d)/g,
Expand Down Expand Up @@ -53,4 +53,4 @@ module.exports = function(grunt) {
grunt.config.set("device-id", hostname.replace(/(.+?)\..*/g, "$1"));
});
grunt.registerTask('default', ['generate-config','replace']);
};
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"properties": {
"org-id": "dex",
"device-type": "server",
"broker-host": "minibian"
"broker-host": "minibian",
"disable-editor": false
},
"dependencies": {
"node-red": "^0.16.2",
Expand Down

0 comments on commit e332157

Please sign in to comment.