Skip to content

Commit de88c72

Browse files
author
Greg Bowler
committed
Merge branch 'default-router'
2 parents 7b63332 + a885831 commit de88c72

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

build.default.json

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
{
22
"script/**/*.es6": {
33
"require": {
4-
"node": "*",
5-
"babel": "*",
6-
"webpack": "*"
4+
"node_modules/.bin/esbuild": "*"
75
},
86
"execute": {
9-
"command": "webpack",
10-
"arguments": ["--entry","./script/script.es6", "--output-path", "./www", "--output-filename", "script.js", "--devtool", "source-map", "--mode", "development"]
11-
}
12-
},
13-
14-
"script/*sw.js": {
15-
"require": {
16-
"vendor/bin/sync": "*"
17-
},
18-
"execute": {
19-
"command": "vendor/bin/sync",
20-
"arguments": ["--pattern", "*sw.js", "script", "www/"]
7+
"command": "./node_modules/.bin/esbuild",
8+
"arguments": ["script/script.es6", "--bundle", "--sourcemap", "--outfile=www/script.js", "--loader:.es6=js", "--target=chrome105,firefox105,edge105,safari15"]
219
}
2210
},
2311

@@ -33,10 +21,10 @@
3321

3422
"style/**/*.scss": {
3523
"require": {
36-
"sass": "*"
24+
"node_modules/.bin/sass": "*"
3725
},
3826
"execute": {
39-
"command": "sass",
27+
"command": "./node_modules/.bin/sass",
4028
"arguments": ["./style/style.scss", "www/style.css"]
4129
}
4230
},
@@ -53,11 +41,21 @@
5341

5442
"asset/**/*": {
5543
"require": {
56-
"vendor/bin/sync": ">=1.3.0"
44+
"vendor/bin/sync": "*"
45+
},
46+
"execute": {
47+
"command": "vendor/bin/sync",
48+
"arguments": ["asset/", "www/asset", "--delete", "--symlink"]
49+
}
50+
},
51+
52+
"data/**/*": {
53+
"require": {
54+
"vendor/bin/sync": "*"
5755
},
5856
"execute": {
5957
"command": "vendor/bin/sync",
60-
"arguments": ["./asset", "./www/asset", "--symlink"]
58+
"arguments": ["data/", "www/data", "--delete", "--symlink"]
6159
}
6260
}
6361
}

0 commit comments

Comments
 (0)