Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
3aafe116
Unverified
Commit
3aafe116
authored
Jan 26, 2023
by
Nicolas Giard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add quasar config capabilities
parent
50d774fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
config.sample.yml
config.sample.yml
+9
-0
quasar.config.js
ux/quasar.config.js
+15
-5
No files found.
config.sample.yml
View file @
3aafe116
...
...
@@ -131,3 +131,12 @@ scheduler:
# Maximum number of workers to run background cpu-intensive jobs.
# Leave 'auto' to use number of CPU cores as maximum.
workers
:
auto
# ---------------------------------------------------------------------
# Dev Mode
# ---------------------------------------------------------------------
# Settings when running in dev mode only
dev
:
port
:
3001
hmrClientPort
:
3001
ux/quasar.config.js
View file @
3aafe116
...
...
@@ -10,8 +10,15 @@
const
{
configure
}
=
require
(
'quasar/wrappers'
)
const
path
=
require
(
'path'
)
const
yaml
=
require
(
'js-yaml'
)
const
fs
=
require
(
'fs'
)
module
.
exports
=
configure
(
function
(
/* ctx */
)
{
const
userConfig
=
{
dev
:
{
port
:
3001
,
hmrClientPort
:
3001
},
...
yaml
.
load
(
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'../config.yml'
),
'utf8'
))
}
return
{
eslint
:
{
fix
:
true
,
...
...
@@ -102,12 +109,15 @@ module.exports = configure(function (/* ctx */) {
devServer
:
{
// https: true
open
:
false
,
// opens browser window automatically
port
:
3001
,
port
:
userConfig
.
dev
.
port
,
proxy
:
{
'/_graphql'
:
'http://127.0.0.1:3000/_graphql'
,
'/_site'
:
'http://127.0.0.1:3000'
,
'/_thumb'
:
'http://127.0.0.1:3000'
,
'/_user'
:
'http://127.0.0.1:3000'
'/_graphql'
:
`http://127.0.0.1:
${
userConfig
.
port
}
/_graphql`
,
'/_site'
:
`http://127.0.0.1:
${
userConfig
.
port
}
`
,
'/_thumb'
:
`http://127.0.0.1:
${
userConfig
.
port
}
`
,
'/_user'
:
`http://127.0.0.1:
${
userConfig
.
port
}
`
},
hmr
:
{
clientPort
:
userConfig
.
dev
.
hmrClientPort
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment