Skip to content

Commit 69d24f0

Browse files
committed
chore(deps): load fore from npm
1 parent 8bbe9fd commit 69d24f0

File tree

9 files changed

+144
-636
lines changed

9 files changed

+144
-636
lines changed

gulpfile.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ function watchTemplates () {
6060
}
6161
exports["watch:tmpl"] = watchTemplates
6262

63+
const fore = [
64+
"node_modules/@jinntec/fore/dist/fore.js",
65+
"node_modules/@jinntec/fore/dist/fore.js.map",
66+
]
67+
68+
function copyFore() {
69+
return src(fore, {base:"node_modules/@jinntec/fore/dist"})
70+
.pipe(dest('build/resources/js'))
71+
}
72+
73+
const foreStyles = [
74+
"node_modules/@jinntec/fore/resources/*.css",
75+
]
76+
77+
function copyForeStyles() {
78+
return src(foreStyles, {base:"node_modules/@jinntec/fore/resources"})
79+
.pipe(dest('build/resources/css'))
80+
}
81+
82+
const copyNodeModules = parallel(copyFore, copyForeStyles)
6383

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

@@ -117,7 +137,8 @@ function installXar () {
117137
const build = series(
118138
clean,
119139
templates,
120-
copyStatic
140+
copyStatic,
141+
copyNodeModules
121142
)
122143
const watchAll = parallel(
123144
watchStatic,

package-lock.json

Lines changed: 118 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@
4040
"mocha": {
4141
"timeout": 10000,
4242
"slow": 1000
43+
},
44+
"dependencies": {
45+
"@jinntec/fore": "^1.8.0"
4346
}
4447
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <h3>Git Repositories</h3>
209209
</fx-case>
210210
</fx-switch>
211211
</fx-fore>
212-
<script type="module" src="js/fore-all.js"></script>
212+
<script type="module" src="js/fore.js"></script>
213213
</div>
214214
</body>
215215
</html>

src/resources/css/fore.css

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)