Skip to content

Commit

Permalink
- update @plotdb/srcbuild for bundling support
Browse files Browse the repository at this point in the history
  • Loading branch information
zbryikt committed Mar 15, 2021
1 parent a79d38a commit aa804d2
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## v2.3.5

- update `@plotdb/srcbuild` for bundling support


## v2.3.4

- update `@plotdb/srcbuild` for bug fixing
Expand Down
5 changes: 4 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ main = {
}).then(function(i18n){
return srcbuild.lsp({
base: '.',
i18n: i18n
i18n: i18n,
bundle: {
configFile: 'bundle.json'
}
});
});
}
Expand Down
4 changes: 2 additions & 2 deletions bundle.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"css": {
"vendor": ["css/base.css"]
"vendor": ["static/css/base.css"]
},
"js": {
"vendor": ["js/test.js"]
"vendor": ["static/js/test.js"]
}
}
30 changes: 15 additions & 15 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"main": "bin/lib/index.js",
"description": "simple, quick template for bootstrap a page",
"version": "2.3.4",
"version": "2.3.5",
"homepage": "https://github.com/zbryikt/template",
"repository": {
"type": "git",
Expand All @@ -19,7 +19,7 @@
},
"dependencies": {
"@loadingio/debounce.js": "0.0.1",
"@plotdb/srcbuild": "^0.0.4",
"@plotdb/srcbuild": "^0.0.5",
"chokidar": "^3.0.0",
"colors": "^1.3.3",
"express": "^4.16.4",
Expand Down
2 changes: 1 addition & 1 deletion server.ls
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ main = do
init: ->
server.init @opt
.then ~> srcbuild.i18n(@opt.i18n)
.then (i18n) -> srcbuild.lsp {base: '.', i18n}
.then (i18n) -> srcbuild.lsp {base: '.', i18n, bundle: {configFile: 'bundle.json'}}

if require.main == module =>
if fs.exists-sync(cfgfile) =>
Expand Down

0 comments on commit aa804d2

Please sign in to comment.