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
95ea8526
Unverified
Commit
95ea8526
authored
May 29, 2023
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: fix missing node_modules in build tarball
parent
d1bf125f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
build.yml
.github/workflows/build.yml
+2
-2
servers.mjs
server/core/servers.mjs
+12
-6
package-lock.json
server/package-lock.json
+0
-0
package.json
server/package.json
+1
-4
No files found.
.github/workflows/build.yml
View file @
95ea8526
...
...
@@ -77,9 +77,9 @@ jobs:
cp -R server _dist/server
cp LICENSE _dist/LICENSE
cp config.sample.yml _dist/config.sample.yml
cd server
cd
_dist/
server
npm ci --omit=dev --audit=false --fund=false
cd
..
cd
-
find ./_dist/ -printf "%P\n" | tar -czf wiki-js.tar.gz --no-recursion -C ./_dist/ -T -
-
name
:
Upload Build Artifact
...
...
server/core/servers.mjs
View file @
95ea8526
import
fs
from
'node:fs/promises'
import
http
from
'node:http'
import
https
from
'node:https'
import
{
ApolloServer
}
from
'apollo-server-express'
import
{
ApolloServer
}
from
'@apollo/server'
import
{
expressMiddleware
}
from
'@apollo/server/express4'
import
{
isEmpty
}
from
'lodash-es'
import
{
Server
as
IoServer
}
from
'socket.io'
import
{
ApolloServerPluginLandingPage
GraphQLPlayground
,
ApolloServerPluginLandingPageProductionDefault
}
from
'apollo-server-core
'
import
{
ApolloServerPluginLandingPage
LocalDefault
,
ApolloServerPluginLandingPageProductionDefault
}
from
'@apollo/server/plugin/landingPage/default
'
import
graphqlUploadExpress
from
'graphql-upload/graphqlUploadExpress.mjs'
import
{
initSchema
}
from
'../graph/index.mjs'
...
...
@@ -134,10 +135,13 @@ export default {
schema
:
graphqlSchema
,
csrfPrevention
:
true
,
cache
:
'bounded'
,
context
:
({
req
,
res
})
=>
({
req
,
res
}),
plugins
:
[
process
.
env
.
NODE_ENV
===
'development'
?
ApolloServerPluginLandingPageGraphQLPlayground
({
footer
:
false
process
.
env
.
NODE_ENV
===
'development'
?
ApolloServerPluginLandingPageLocalDefault
({
footer
:
false
,
embed
:
{
endpointIsEditable
:
false
,
runTelemetry
:
false
}
})
:
ApolloServerPluginLandingPageProductionDefault
({
footer
:
false
})
...
...
@@ -150,7 +154,9 @@ export default {
maxFileSize
:
WIKI
.
config
.
security
.
uploadMaxFileSize
,
maxFiles
:
WIKI
.
config
.
security
.
uploadMaxFiles
}))
this
.
graph
.
applyMiddleware
({
app
:
WIKI
.
app
,
cors
:
false
,
path
:
'/_graphql'
})
WIKI
.
app
.
use
(
'/_graphql'
,
expressMiddleware
(
this
.
graph
,
{
context
:
({
req
,
res
})
=>
({
req
,
res
})
}))
},
/**
* Start Socket.io WebSocket Server
...
...
server/package-lock.json
View file @
95ea8526
B
{
...
...
server/package.json
View file @
95ea8526
...
...
@@ -34,6 +34,7 @@
"node"
:
">=18.0"
},
"dependencies"
:
{
"@apollo/server"
:
"4.7.1"
,
"@azure/storage-blob"
:
"12.14.0"
,
"@exlinc/keycloak-passport"
:
"1.0.2"
,
"@graphql-tools/schema"
:
"10.0.0"
,
...
...
@@ -44,10 +45,6 @@
"@root/pem"
:
"1.0.4"
,
"acme"
:
"3.0.3"
,
"akismet-api"
:
"6.0.0"
,
"apollo-fetch"
:
"0.7.0"
,
"apollo-server"
:
"3.6.7"
,
"apollo-server-express"
:
"3.6.7"
,
"auto-load"
:
"3.0.4"
,
"aws-sdk"
:
"2.1386.0"
,
"bcryptjs"
:
"2.4.3"
,
"body-parser"
:
"1.20.2"
,
...
...
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