Skip to content

Commit

Permalink
tweak: use packaged client side tools
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Mar 7, 2025
1 parent dd2f310 commit 71f173c
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions build.default.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
{
"script/**/*.es6": {
"require": {
"node": "*",
"babel": "*",
"webpack": "*"
"node_modules/.bin/esbuild": "*"
},
"execute": {
"command": "webpack",
"arguments": ["--entry","./script/script.es6", "--output-path", "./www", "--output-filename", "script.js", "--devtool", "source-map", "--mode", "development"]
}
},

"script/*sw.js": {
"require": {
"vendor/bin/sync": "*"
},
"execute": {
"command": "vendor/bin/sync",
"arguments": ["--pattern", "*sw.js", "script", "www/"]
"command": "./node_modules/.bin/esbuild",
"arguments": ["script/script.es6", "--bundle", "--sourcemap", "--outfile=www/script.js", "--loader:.es6=js", "--target=chrome105,firefox105,edge105,safari15"]
}
},

Expand All @@ -33,10 +21,10 @@

"style/**/*.scss": {
"require": {
"sass": "*"
"node_modules/.bin/sass": "*"
},
"execute": {
"command": "sass",
"command": "./node_modules/.bin/sass",
"arguments": ["./style/style.scss", "www/style.css"]
}
},
Expand All @@ -53,11 +41,21 @@

"asset/**/*": {
"require": {
"vendor/bin/sync": ">=1.3.0"
"vendor/bin/sync": "*"
},
"execute": {
"command": "vendor/bin/sync",
"arguments": ["asset/", "www/asset", "--delete", "--symlink"]
}
},

"data/**/*": {
"require": {
"vendor/bin/sync": "*"
},
"execute": {
"command": "vendor/bin/sync",
"arguments": ["./asset", "./www/asset", "--symlink"]
"arguments": ["data/", "www/data", "--delete", "--symlink"]
}
}
}

0 comments on commit 71f173c

Please sign in to comment.