From aa804d23844606791e5a675f1c670867a917ddc1 Mon Sep 17 00:00:00 2001 From: Kirby Wu Date: Mon, 15 Mar 2021 17:59:09 +0800 Subject: [PATCH] - update `@plotdb/srcbuild` for bundling support --- CHANGELOG.md | 5 +++++ bin/cli.js | 5 ++++- bundle.json | 4 ++-- package-lock.json | 30 +++++++++++++++--------------- package.json | 4 ++-- server.ls | 2 +- 6 files changed, 29 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c3a45f..fcbe4c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## v2.3.5 + + - update `@plotdb/srcbuild` for bundling support + + ## v2.3.4 - update `@plotdb/srcbuild` for bug fixing diff --git a/bin/cli.js b/bin/cli.js index 575016e..d9da385 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -55,7 +55,10 @@ main = { }).then(function(i18n){ return srcbuild.lsp({ base: '.', - i18n: i18n + i18n: i18n, + bundle: { + configFile: 'bundle.json' + } }); }); } diff --git a/bundle.json b/bundle.json index f7afa04..b98e934 100644 --- a/bundle.json +++ b/bundle.json @@ -1,8 +1,8 @@ { "css": { - "vendor": ["css/base.css"] + "vendor": ["static/css/base.css"] }, "js": { - "vendor": ["js/test.js"] + "vendor": ["static/js/test.js"] } } diff --git a/package-lock.json b/package-lock.json index 531a93b..7a3dc22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "template", - "version": "2.3.4", + "version": "2.3.5", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "2.3.3", + "version": "2.3.4", "license": "MIT", "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", @@ -45,9 +45,9 @@ "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" }, "node_modules/@babel/parser": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.10.tgz", - "integrity": "sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==", + "version": "7.13.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.11.tgz", + "integrity": "sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==", "bin": { "parser": "bin/babel-parser.js" }, @@ -83,9 +83,9 @@ } }, "node_modules/@plotdb/srcbuild": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@plotdb/srcbuild/-/srcbuild-0.0.4.tgz", - "integrity": "sha512-RzYyFH2U25AxpamyuzdAU9tWNi5ka1zgXsm0gMOxtLjzEnzClwox1tFStZ+m+EJp6LgPjOUBmtZaq9jUoH+Ejw==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@plotdb/srcbuild/-/srcbuild-0.0.5.tgz", + "integrity": "sha512-UKk0zAhfMpgRE/WTajv9IPaWKBRQ2Fefz4bvPYBjwfBC2GlRB6pXPbwqkwp/E/lOX06Rt1ZXs5IwdCsmLv3Juw==", "dependencies": { "@loadingio/debounce.js": "0.0.1", "chokidar": "^3.5.1", @@ -1863,9 +1863,9 @@ "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==" }, "@babel/parser": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.10.tgz", - "integrity": "sha512-0s7Mlrw9uTWkYua7xWr99Wpk2bnGa0ANleKfksYAES8LpWH4gW1OUr42vqKNf0us5UQNfru2wPqMqRITzq/SIQ==" + "version": "7.13.11", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.13.11.tgz", + "integrity": "sha512-PhuoqeHoO9fc4ffMEVk4qb/w/s2iOSWohvbHxLtxui0eBg3Lg5gN1U8wp1V1u61hOWkPQJJyJzGH6Y+grwkq8Q==" }, "@babel/runtime": { "version": "7.13.10", @@ -1891,9 +1891,9 @@ "integrity": "sha512-wwu0NJxMaCgcgLZSDMNsT+0CpOu/8+BJWgxN5RgpWnzwm+tAFq+LqiaVlksuE+c+ex6pfcAJIsg8hkiVzQZ0kA==" }, "@plotdb/srcbuild": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@plotdb/srcbuild/-/srcbuild-0.0.4.tgz", - "integrity": "sha512-RzYyFH2U25AxpamyuzdAU9tWNi5ka1zgXsm0gMOxtLjzEnzClwox1tFStZ+m+EJp6LgPjOUBmtZaq9jUoH+Ejw==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@plotdb/srcbuild/-/srcbuild-0.0.5.tgz", + "integrity": "sha512-UKk0zAhfMpgRE/WTajv9IPaWKBRQ2Fefz4bvPYBjwfBC2GlRB6pXPbwqkwp/E/lOX06Rt1ZXs5IwdCsmLv3Juw==", "requires": { "@loadingio/debounce.js": "0.0.1", "chokidar": "^3.5.1", diff --git a/package.json b/package.json index 00bfbac..ce0d178 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/server.ls b/server.ls index eaca79b..ecf6fac 100644 --- a/server.ls +++ b/server.ls @@ -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) =>