create-yoshi-app
Advanced tools
Comparing version 4.57.0 to 4.57.1
{ | ||
"name": "create-yoshi-app", | ||
"version": "4.57.0", | ||
"version": "4.57.1", | ||
"description": "create yoshi powered apps", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -14,4 +14,4 @@ import { appDriver, AppDriver } from './drivers/app.driver'; | ||
expect(await driver.getAppTitleText()).toEqual('Todo!'); | ||
expect(await driver.getAppTitleText()).toEqual('Site Name'); | ||
}); | ||
}); |
@@ -0,1 +1,3 @@ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import { | ||
@@ -15,7 +17,16 @@ createTestkit, | ||
const serverUrl = 'http://localhost:3200/'; | ||
const path = '../app-config-templates/module_{%PROJECT_NAME%}.json'; | ||
const serviceId = 'com.wixpress.{%projectName%}'; | ||
const template = JSON.parse( | ||
fs.readFileSync( | ||
path.join( | ||
__dirname, | ||
'../app-config-templates/module_{%PROJECT_NAME%}.json', | ||
), | ||
'utf-8', | ||
), | ||
); | ||
const moduleConfig = anAppConfigBuilder() | ||
.fromJsonTemplate(require(path)) // replace this line with the next once your config is merged | ||
.fromJsonTemplate(template) // replace this line with the next once your config is merged | ||
// .fromModuleId('{%PROJECT_NAME%}') | ||
@@ -22,0 +33,0 @@ .withArtifactMapping({ [serviceId]: { url: serverUrl } }) |
{ | ||
"app.title": "Todo!" | ||
"app.title": "Site Name" | ||
} |
Sorry, the diff of this file is not supported yet
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
1019295
575
12653