touchui-create
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "touchui-create", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "touchui-create", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -17,3 +17,4 @@ var textfile = require('textfile') | ||
} | ||
textfile.write(path.join(pagePath, pageName + '.json'), jsonData, 'json') | ||
jsonData = JSON.stringify(jsonData, null, 2) + '\n' | ||
textfile.write(path.join(pagePath, pageName + '.json'), jsonData, 'string') | ||
textfile.read(path.join(__dirname, 'template.js'), 'string', str => { | ||
@@ -44,4 +45,6 @@ str = str.replace('template', pageName) | ||
} | ||
textfile.write(path.join(workSpace, 'app.json'), data, 'json') | ||
data = JSON.stringify(data, null, 2) + '\n' | ||
textfile.write(path.join(workSpace, 'app.json'), data, 'string') | ||
}) | ||
cb(null) | ||
} | ||
@@ -48,0 +51,0 @@ fs.mkdir(pagePath, (err) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3770
92