FBI-2182
Web Entry 2.0 User field Improvements request
This commit is contained in:
committed by
davidcallizaya
parent
79b907f4a2
commit
49bd973e21
2
Rakefile
2
Rakefile
@@ -142,6 +142,8 @@ def generateEnviromentVariables()
|
||||
dataUser = JSON.parse(file)
|
||||
content = content + "__env.USER_GUEST = " + JSON.generate(dataUser['constants']['userguest'])
|
||||
dir = "vendor/colosa/MichelangeloFE/src/enviroment/"
|
||||
# create a directory enviroment
|
||||
Dir.mkdir dir
|
||||
File.open(dir +'constants.js', 'w') { |fileWrite|
|
||||
fileWrite.write content + ';'
|
||||
}
|
||||
|
||||
@@ -480,7 +480,9 @@ gulp.task('__env', function (cb) {
|
||||
content = 'var __env = __env || {};';
|
||||
|
||||
gutil.log(gutil.colors.green('Creating System Constants...'));
|
||||
|
||||
if (!fs.existsSync(pathEnviroment)){
|
||||
fs.mkdirSync(pathEnviroment);
|
||||
}
|
||||
fs.writeFile(
|
||||
pathEnviroment + 'constants.js',
|
||||
content + '__env.USER_GUEST = ' + JSON.stringify(data.constants.userguest) + ';',
|
||||
|
||||
Reference in New Issue
Block a user