Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .existdb.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"servers": {
"localhost": {
"server": "https://127.0.0.1:8443/exist",
"server": "https://localhost:8443/exist",
"user": "admin",
"password": "",
"root": "/db/apps/tuttle"
Expand Down
25 changes: 24 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,28 @@ function watchTemplates () {
}
exports["watch:tmpl"] = watchTemplates

const fore = [
"node_modules/@jinntec/fore/dist/fore.js",
"node_modules/@jinntec/fore/dist/fore.js.map",
"node_modules/@jinntec/fore/dist/fore-dev.js",
"node_modules/@jinntec/fore/dist/fore-dev.js.map",
]

function copyFore() {
return src(fore, {base:"node_modules/@jinntec/fore/dist"})
.pipe(dest('build/resources/js'))
}

const foreStyles = [
"node_modules/@jinntec/fore/resources/*.css",
]

function copyForeStyles() {
return src(foreStyles, {base:"node_modules/@jinntec/fore/resources"})
.pipe(dest('build/resources/css'))
}

const copyNodeModules = parallel(copyFore, copyForeStyles)

const static = 'src/**/*.{xml,html,xq,xquery,xql,xqm,xsl,xconf,json,svg,js,css,png,jpg,map}'

Expand Down Expand Up @@ -112,7 +134,8 @@ function installXar () {
const build = series(
clean,
templates,
copyStatic
copyStatic,
copyNodeModules
)
const watchAll = parallel(
watchStatic,
Expand Down
Loading