FBI-2182
Web Entry 2.0 User field Improvements request
This commit is contained in:
committed by
davidcallizaya
parent
0d294b0da7
commit
79b907f4a2
6
Rakefile
6
Rakefile
@@ -139,10 +139,10 @@ def generateEnviromentVariables()
|
||||
puts "Creating System Constants..."
|
||||
content = "var __env = __env || {};"
|
||||
file = File.read('./config/enviromentvariables.json')
|
||||
data_hash = JSON.parse(file)
|
||||
content = content + "__env.USER_GUEST = " + JSON.generate(data_hash['constants']['userguest'])
|
||||
dataUser = JSON.parse(file)
|
||||
content = content + "__env.USER_GUEST = " + JSON.generate(dataUser['constants']['userguest'])
|
||||
dir = "vendor/colosa/MichelangeloFE/src/enviroment/"
|
||||
File.open(dir +'constans.js', 'w') { |fileWrite|
|
||||
File.open(dir +'constants.js', 'w') { |fileWrite|
|
||||
fileWrite.write content + ';'
|
||||
}
|
||||
end
|
||||
|
||||
@@ -6,7 +6,6 @@ const path = require('path'),
|
||||
_ = require('underscore'),
|
||||
gutil = require('gulp-util'),
|
||||
grename = require('gulp-rename'),
|
||||
createFile = require('fs'),
|
||||
del = require('del'),
|
||||
exec = require('child_process').exec,
|
||||
execFile = require('child_process').execFile,
|
||||
@@ -482,8 +481,8 @@ gulp.task('__env', function (cb) {
|
||||
|
||||
gutil.log(gutil.colors.green('Creating System Constants...'));
|
||||
|
||||
createFile.writeFile(
|
||||
pathEnviroment + 'constans.js',
|
||||
fs.writeFile(
|
||||
pathEnviroment + 'constants.js',
|
||||
content + '__env.USER_GUEST = ' + JSON.stringify(data.constants.userguest) + ';',
|
||||
cb
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user