Skip to content

Commit

Permalink
chore(deps): load fore from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed Oct 12, 2023
1 parent 8bbe9fd commit 69d24f0
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 636 deletions.
23 changes: 22 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@ function watchTemplates () {
}
exports["watch:tmpl"] = watchTemplates

const fore = [
"node_modules/@jinntec/fore/dist/fore.js",
"node_modules/@jinntec/fore/dist/fore.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 @@ -117,7 +137,8 @@ function installXar () {
const build = series(
clean,
templates,
copyStatic
copyStatic,
copyNodeModules
)
const watchAll = parallel(
watchStatic,
Expand Down
120 changes: 118 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"mocha": {
"timeout": 10000,
"slow": 1000
},
"dependencies": {
"@jinntec/fore": "^1.8.0"
}
}
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h3>Git Repositories</h3>
</fx-case>
</fx-switch>
</fx-fore>
<script type="module" src="js/fore-all.js"></script>
<script type="module" src="js/fore.js"></script>
</div>
</body>
</html>
86 changes: 0 additions & 86 deletions src/resources/css/fore.css

This file was deleted.

Loading

0 comments on commit 69d24f0

Please sign in to comment.