Skip to content

Commit ce25079

Browse files
committed
snapshot templates
1 parent b574084 commit ce25079

File tree

3 files changed

+45
-27
lines changed

3 files changed

+45
-27
lines changed

jscomp/bsb/bsb_templates.ml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,28 @@ let root = OCamlRes.Res.([
238238
Hello! This project allows you to quickly get started with Reason and BuckleScript. If you wanted a more sophisticated version, try the `react` template (`bsb -theme react -init .`).\n\
239239
\n\
240240
# Build\n\
241-
```\n\
241+
\n\
242+
```bash\n\
243+
# for yarn\n\
244+
yarn build\n\
245+
\n\
246+
# for npm\n\
242247
npm run build\n\
243248
```\n\
244249
\n\
245250
# Build + Watch\n\
246251
\n\
247-
```\n\
252+
```bash\n\
253+
# for yarn\n\
254+
yarn\n\
255+
\n\
256+
# for npm\n\
248257
npm run start\n\
249258
```\n\
250259
\n\
251-
\n\
252260
# Editor\n\
253-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically\n\
261+
\n\
262+
If you're using VS Code, press <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>B</kbd> or <kbd>Windows</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> to build the project automatically.\n\
254263
")]) ;
255264
Dir ("generator", [
256265
Dir ("src", [
@@ -991,7 +1000,7 @@ let root = OCamlRes.Res.([
9911000
\ <!-- This is https://github.com/marijnh/moduleserve, the secret sauce that allows us not need to bundle things during development, and have instantaneous iteration feedback, without any hot-reloading or extra build pipeline needed. -->\n\
9921001
\ <script src=\"/moduleserve/load.js\" data-module=\"/src/Index.bs.js\"></script>\n\
9931002
\ <!-- Our little watcher. Super clean. Check it out! -->\n\
994-
\ <script src=\"./watcher.js\"></script>\n\
1003+
\ <script src=\"/watcher.js\"></script>\n\
9951004
</body>\n\
9961005
</html>\n\
9971006
")]) ;
@@ -1791,10 +1800,7 @@ let root = OCamlRes.Res.([
17911800
\ \"suffix\": \".bs.js\",\n\
17921801
\ \"bs-dependencies\": [\n\
17931802
\ \"bucklescript-tea\"\n\
1794-
\ ],\n\
1795-
\ \"warnings\": {\n\
1796-
\ \"error\" : \"+101\"\n\
1797-
\ }\n\
1803+
\ ]\n\
17981804
}\n\
17991805
") ;
18001806
File ("watcher.js",

lib/4.06.1/bsb.ml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14393,19 +14393,28 @@ let root = OCamlRes.Res.([
1439314393
Hello! This project allows you to quickly get started with Reason and BuckleScript. If you wanted a more sophisticated version, try the `react` template (`bsb -theme react -init .`).\n\
1439414394
\n\
1439514395
# Build\n\
14396-
```\n\
14396+
\n\
14397+
```bash\n\
14398+
# for yarn\n\
14399+
yarn build\n\
14400+
\n\
14401+
# for npm\n\
1439714402
npm run build\n\
1439814403
```\n\
1439914404
\n\
1440014405
# Build + Watch\n\
1440114406
\n\
14402-
```\n\
14407+
```bash\n\
14408+
# for yarn\n\
14409+
yarn\n\
14410+
\n\
14411+
# for npm\n\
1440314412
npm run start\n\
1440414413
```\n\
1440514414
\n\
14406-
\n\
1440714415
# Editor\n\
14408-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically\n\
14416+
\n\
14417+
If you're using VS Code, press <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>B</kbd> or <kbd>Windows</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> to build the project automatically.\n\
1440914418
")]) ;
1441014419
Dir ("generator", [
1441114420
Dir ("src", [
@@ -15146,7 +15155,7 @@ let root = OCamlRes.Res.([
1514615155
\ <!-- This is https://github.com/marijnh/moduleserve, the secret sauce that allows us not need to bundle things during development, and have instantaneous iteration feedback, without any hot-reloading or extra build pipeline needed. -->\n\
1514715156
\ <script src=\"/moduleserve/load.js\" data-module=\"/src/Index.bs.js\"></script>\n\
1514815157
\ <!-- Our little watcher. Super clean. Check it out! -->\n\
15149-
\ <script src=\"./watcher.js\"></script>\n\
15158+
\ <script src=\"/watcher.js\"></script>\n\
1515015159
</body>\n\
1515115160
</html>\n\
1515215161
")]) ;
@@ -15946,10 +15955,7 @@ let root = OCamlRes.Res.([
1594615955
\ \"suffix\": \".bs.js\",\n\
1594715956
\ \"bs-dependencies\": [\n\
1594815957
\ \"bucklescript-tea\"\n\
15949-
\ ],\n\
15950-
\ \"warnings\": {\n\
15951-
\ \"error\" : \"+101\"\n\
15952-
\ }\n\
15958+
\ ]\n\
1595315959
}\n\
1595415960
") ;
1595515961
File ("watcher.js",

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14502,19 +14502,28 @@ let root = OCamlRes.Res.([
1450214502
Hello! This project allows you to quickly get started with Reason and BuckleScript. If you wanted a more sophisticated version, try the `react` template (`bsb -theme react -init .`).\n\
1450314503
\n\
1450414504
# Build\n\
14505-
```\n\
14505+
\n\
14506+
```bash\n\
14507+
# for yarn\n\
14508+
yarn build\n\
14509+
\n\
14510+
# for npm\n\
1450614511
npm run build\n\
1450714512
```\n\
1450814513
\n\
1450914514
# Build + Watch\n\
1451014515
\n\
14511-
```\n\
14516+
```bash\n\
14517+
# for yarn\n\
14518+
yarn\n\
14519+
\n\
14520+
# for npm\n\
1451214521
npm run start\n\
1451314522
```\n\
1451414523
\n\
14515-
\n\
1451614524
# Editor\n\
14517-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically\n\
14525+
\n\
14526+
If you're using VS Code, press <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>B</kbd> or <kbd>Windows</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> to build the project automatically.\n\
1451814527
")]) ;
1451914528
Dir ("generator", [
1452014529
Dir ("src", [
@@ -15255,7 +15264,7 @@ let root = OCamlRes.Res.([
1525515264
\ <!-- This is https://github.com/marijnh/moduleserve, the secret sauce that allows us not need to bundle things during development, and have instantaneous iteration feedback, without any hot-reloading or extra build pipeline needed. -->\n\
1525615265
\ <script src=\"/moduleserve/load.js\" data-module=\"/src/Index.bs.js\"></script>\n\
1525715266
\ <!-- Our little watcher. Super clean. Check it out! -->\n\
15258-
\ <script src=\"./watcher.js\"></script>\n\
15267+
\ <script src=\"/watcher.js\"></script>\n\
1525915268
</body>\n\
1526015269
</html>\n\
1526115270
")]) ;
@@ -16055,10 +16064,7 @@ let root = OCamlRes.Res.([
1605516064
\ \"suffix\": \".bs.js\",\n\
1605616065
\ \"bs-dependencies\": [\n\
1605716066
\ \"bucklescript-tea\"\n\
16058-
\ ],\n\
16059-
\ \"warnings\": {\n\
16060-
\ \"error\" : \"+101\"\n\
16061-
\ }\n\
16067+
\ ]\n\
1606216068
}\n\
1606316069
") ;
1606416070
File ("watcher.js",

0 commit comments

Comments
 (0)