Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load fore dependency from npm #38

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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
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
Loading