mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 08:06:09 +00:00
add fixtures
This commit is contained in:
11
dist/index.js
vendored
11
dist/index.js
vendored
@@ -14542,6 +14542,10 @@ const espreeOptions = {
|
||||
|
||||
class ConfigParser {
|
||||
constructor(staticSiteConfig) {
|
||||
this.pathPropertyNuxt = `router: {\n base: '{0}'\n }`
|
||||
this.pathPropertyNext = `basePath: '{0}'`
|
||||
this.pathPropertyGatsby = `pathPrefix: '{0}'`
|
||||
this.configskeleton = `export default {\n {0}\n}`
|
||||
this.staticSiteConfig = staticSiteConfig
|
||||
this.config = fs.existsSync(this.staticSiteConfig.filePath) ? fs.readFileSync(this.staticSiteConfig.filePath, "utf8") : null
|
||||
this.validate()
|
||||
@@ -14558,11 +14562,6 @@ class ConfigParser {
|
||||
}
|
||||
}
|
||||
|
||||
pathPropertyNuxt = `router: {\n base: '{0}'\n }`
|
||||
pathPropertyNext = `basePath: '{0}'`
|
||||
pathPropertyGatsby = `pathPrefix: '{0}'`
|
||||
configskeleton = `export default {\n {0}\n}`
|
||||
|
||||
generateConfigFile() {
|
||||
switch (this.staticSiteConfig.type) {
|
||||
case "nuxt":
|
||||
@@ -14680,13 +14679,13 @@ class ConfigParser {
|
||||
parseNextGatsby(pathNode) {
|
||||
if (pathNode) {
|
||||
console.log("base node = " + JSON.stringify(pathNode.value))
|
||||
|
||||
const newConfig = this.config.slice(0, pathNode.value.range[0]) + `'${this.staticSiteConfig.newPath}'` + this.config.slice(pathNode.value.range[1])
|
||||
console.log("new config = \n" + newConfig)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1319:
|
||||
|
||||
Reference in New Issue
Block a user