mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 10:04:52 +00:00
Add set-pages-path tests
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
pathPrefix: '/amazing-new-repo/' /* test */
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
pathPrefix: '/amazing-new-repo/'
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
basePath: '/amazing-new-repo/' /* test */
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
basePath: '/amazing-new-repo/' /* test */
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = {basePath: '/amazing-new-repo/'}
|
||||
@@ -1,11 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static',
|
||||
router: {
|
||||
base: '/amazing-new-repo/'
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
router: {base: '/amazing-new-repo/'},
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static'
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
module.exports = {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static',
|
||||
router: {
|
||||
base: '/amazing-new-repo/'
|
||||
}
|
||||
}
|
||||
2
src/fixtures/gatsby/blank.expected.js
Normal file
2
src/fixtures/gatsby/blank.expected.js
Normal file
@@ -0,0 +1,2 @@
|
||||
// Default Pages configuration for Gatsby
|
||||
module.exports = { pathPrefix: "/docs/" }
|
||||
1
src/fixtures/gatsby/blank.js
Normal file
1
src/fixtures/gatsby/blank.js
Normal file
@@ -0,0 +1 @@
|
||||
// This file is not read by the test suite
|
||||
8
src/fixtures/gatsby/default.expected.js
Normal file
8
src/fixtures/gatsby/default.expected.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
pathPrefix: "/docs/",
|
||||
siteMetadata: {
|
||||
title: `My Gatsby Site`,
|
||||
siteUrl: `https://www.yourdomain.tld`,
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
7
src/fixtures/gatsby/default.js
Normal file
7
src/fixtures/gatsby/default.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
title: `My Gatsby Site`,
|
||||
siteUrl: `https://www.yourdomain.tld`,
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
3
src/fixtures/next/blank.expected.js
Normal file
3
src/fixtures/next/blank.expected.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// Default Pages configuration for Next
|
||||
const nextConfig = { basePath: "/docs/" }
|
||||
module.exports = nextConfig
|
||||
1
src/fixtures/next/blank.js
Normal file
1
src/fixtures/next/blank.js
Normal file
@@ -0,0 +1 @@
|
||||
// This file is not read by the test suite
|
||||
8
src/fixtures/next/default.expected.js
Normal file
8
src/fixtures/next/default.expected.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
basePath: "/docs/",
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
7
src/fixtures/next/default.js
Normal file
7
src/fixtures/next/default.js
Normal file
@@ -0,0 +1,7 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
45
src/fixtures/nuxt/default.expected.js
Normal file
45
src/fixtures/nuxt/default.expected.js
Normal file
@@ -0,0 +1,45 @@
|
||||
export default {
|
||||
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
|
||||
router: { base: "/docs/" },
|
||||
ssr: false,
|
||||
|
||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||
head: {
|
||||
title: 'nuxt',
|
||||
htmlAttrs: {
|
||||
lang: 'en'
|
||||
},
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: '' },
|
||||
{ name: 'format-detection', content: 'telephone=no' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||
]
|
||||
},
|
||||
|
||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||
css: [
|
||||
],
|
||||
|
||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||
plugins: [
|
||||
],
|
||||
|
||||
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||
components: true,
|
||||
|
||||
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
||||
buildModules: [
|
||||
],
|
||||
|
||||
// Modules: https://go.nuxtjs.dev/config-modules
|
||||
modules: [
|
||||
],
|
||||
|
||||
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||
build: {
|
||||
}
|
||||
}
|
||||
44
src/fixtures/nuxt/default.js
Normal file
44
src/fixtures/nuxt/default.js
Normal file
@@ -0,0 +1,44 @@
|
||||
export default {
|
||||
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
|
||||
ssr: false,
|
||||
|
||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||
head: {
|
||||
title: 'nuxt',
|
||||
htmlAttrs: {
|
||||
lang: 'en'
|
||||
},
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ hid: 'description', name: 'description', content: '' },
|
||||
{ name: 'format-detection', content: 'telephone=no' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||
]
|
||||
},
|
||||
|
||||
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||
css: [
|
||||
],
|
||||
|
||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||
plugins: [
|
||||
],
|
||||
|
||||
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||
components: true,
|
||||
|
||||
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
||||
buildModules: [
|
||||
],
|
||||
|
||||
// Modules: https://go.nuxtjs.dev/config-modules
|
||||
modules: [
|
||||
],
|
||||
|
||||
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||
build: {
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
pathPrefix: "hello",
|
||||
};
|
||||
Reference in New Issue
Block a user