Skip to content

Commit 9186e03

Browse files
committed
remove staled tasks.json, snapshot
1 parent cb72dc7 commit 9186e03

File tree

7 files changed

+12
-380
lines changed

7 files changed

+12
-380
lines changed

jscomp/bsb/bsb_templates.ml

Lines changed: 4 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,6 @@ let root = OCamlRes.Res.([
66
"\n\
77
\n\
88
let () = Js.log \"Hello, BuckleScript\"")]) ;
9-
Dir (".vscode", [
10-
File ("tasks.json",
11-
"{\n\
12-
\ \"version\": \"${bsb:proj-version}\",\n\
13-
\ \"command\": \"npm\",\n\
14-
\ \"options\": {\n\
15-
\ \"cwd\": \"${workspaceRoot}\"\n\
16-
\ },\n\
17-
\ \"isShellCommand\": true,\n\
18-
\ \"args\": [\n\
19-
\ \"run\",\n\
20-
\ \"watch\"\n\
21-
\ ],\n\
22-
\ \"showOutput\": \"always\",\n\
23-
\ \"isBackground\": true,\n\
24-
\ \"problemMatcher\": {\n\
25-
\ \"fileLocation\": \"absolute\",\n\
26-
\ \"owner\": \"ocaml\",\n\
27-
\ \"watching\": {\n\
28-
\ \"activeOnStart\": false,\n\
29-
\ \"beginsPattern\": \">>>> Start compiling\",\n\
30-
\ \"endsPattern\": \">>>> Finish compiling\"\n\
31-
\ },\n\
32-
\ \"pattern\": [\n\
33-
\ {\n\
34-
\ \"regexp\": \"^File \\\"(.*)\\\", line (\\\\d+)(?:, characters (\\\\d+)-(\\\\d+))?:$\",\n\
35-
\ \"file\": 1,\n\
36-
\ \"line\": 2,\n\
37-
\ \"column\": 3,\n\
38-
\ \"endColumn\": 4\n\
39-
\ },\n\
40-
\ {\n\
41-
\ \"regexp\": \"^(?:(?:Parse\\\\s+)?(Warning|[Ee]rror)(?:\\\\s+\\\\d+)?:)?\\\\s+(.*)$\",\n\
42-
\ \"severity\": 1,\n\
43-
\ \"message\": 2,\n\
44-
\ \"loop\": true\n\
45-
\ }\n\
46-
\ ]\n\
47-
\ }\n\
48-
}")]) ;
499
File ("bsconfig.json",
5010
"{\n\
5111
\ \"name\": \"${bsb:name}\",\n\
@@ -126,62 +86,12 @@ let root = OCamlRes.Res.([
12686
npm run watch\n\
12787
```\n\
12888
\n\
129-
\n\
130-
# Editor\n\
131-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically")]) ;
89+
")]) ;
13290
Dir ("basic-reason", [
13391
Dir ("src", [
13492
File ("Demo.re",
13593
"Js.log(\"Hello, BuckleScript and Reason!\");\n\
13694
")]) ;
137-
Dir (".vscode", [
138-
File ("tasks.json",
139-
"{\n\
140-
\ \"version\": \"${bsb:proj-version}\",\n\
141-
\ \"command\": \"npm\",\n\
142-
\ \"options\": {\n\
143-
\ \"cwd\": \"${workspaceRoot}\",\n\
144-
\ \"env\": {\n\
145-
\ \"BS_VSCODE\" : \"true\"\n\
146-
\ }\n\
147-
\ },\n\
148-
\ \"type\": \"shell\",\n\
149-
\ \"args\": [\"run\", \"start\"],\n\
150-
\ \"presentation\": {\n\
151-
\ \"echo\": true,\n\
152-
\ \"reveal\": \"always\",\n\
153-
\ \"focus\": false,\n\
154-
\ \"panel\": \"shared\"\n\
155-
\ },\n\
156-
\ \"isBackground\": true,\n\
157-
\ \"problemMatcher\": {\n\
158-
\ \"fileLocation\": \"absolute\",\n\
159-
\ \"owner\": \"ocaml\",\n\
160-
\ \"background\": {\n\
161-
\ \"activeOnStart\": false,\n\
162-
\ \"beginsPattern\": \">>>> Start compiling\",\n\
163-
\ \"endsPattern\": \">>>> Finish compiling\"\n\
164-
\ },\n\
165-
\ \"pattern\": [\n\
166-
\ {\n\
167-
\ \"regexp\":\n\
168-
\ \"^File \\\"(.*)\\\", line (\\\\d+)(?:, characters (\\\\d+)-(\\\\d+))?:$\",\n\
169-
\ \"file\": 1,\n\
170-
\ \"line\": 2,\n\
171-
\ \"column\": 3,\n\
172-
\ \"endColumn\": 4\n\
173-
\ },\n\
174-
\ {\n\
175-
\ \"regexp\":\n\
176-
\ \"^(?:(?:Parse\\\\s+)?(Warning|[Ee]rror)(?:\\\\s+\\\\d+)?:)?\\\\s+(.*)$\",\n\
177-
\ \"severity\": 1,\n\
178-
\ \"message\": 2,\n\
179-
\ \"loop\": true\n\
180-
\ }\n\
181-
\ ]\n\
182-
\ }\n\
183-
\ }\n\
184-
")]) ;
18595
File ("bsconfig.json",
18696
"{\n\
18797
\ \"name\": \"${bsb:name}\",\n\
@@ -251,15 +161,12 @@ let root = OCamlRes.Res.([
251161
\n\
252162
```bash\n\
253163
# for yarn\n\
254-
yarn\n\
164+
yarn start\n\
255165
\n\
256166
# for npm\n\
257167
npm run start\n\
258168
```\n\
259169
\n\
260-
# Editor\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\
263170
")]) ;
264171
Dir ("generator", [
265172
Dir ("src", [
@@ -845,7 +752,7 @@ let root = OCamlRes.Res.([
845752
function setUpWebSocket() {\n\
846753
\ if (websocketReloader == null || websocketReloader.readyState !== 1) {\n\
847754
\ try {\n\
848-
\ websocketReloader = new WebSocket(`ws://localhost:${webSocketPort}`);\n\
755+
\ websocketReloader = new WebSocket(`ws://${window.location.hostname}:${webSocketPort}`);\n\
849756
\ websocketReloader.onmessage = (message) => {\n\
850757
\ var newData = JSON.parse(message.data).LAST_SUCCESS_BUILD_STAMP;\n\
851758
\ if (newData > LAST_SUCCESS_BUILD_STAMP) {\n\
@@ -1813,7 +1720,7 @@ let root = OCamlRes.Res.([
18131720
function setUpWebScoket() {\n\
18141721
\ if (wsReloader == null || wsReloader.readyState !== 1) {\n\
18151722
\ try {\n\
1816-
\ wsReloader = new WebSocket(`ws://localhost:${WS_PORT}`)\n\
1723+
\ wsReloader = new WebSocket(`ws://${window.location.hostname}:${WS_PORT}`)\n\
18171724
\ wsReloader.onmessage = (msg) => {\n\
18181725
\ var newData = JSON.parse(msg.data).LAST_SUCCESS_BUILD_STAMP\n\
18191726
\ if (newData > LAST_SUCCESS_BUILD_STAMP) {\n\

jscomp/bsb/templates/basic-reason/.vscode/tasks.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

jscomp/bsb/templates/basic-reason/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ yarn start
2222
npm run start
2323
```
2424

25-
# Editor
26-
27-
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.

jscomp/bsb/templates/basic/.vscode/tasks.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

jscomp/bsb/templates/basic/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ npm run build
1111
npm run watch
1212
```
1313

14-
15-
# Editor
16-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically

lib/4.06.1/bsb.ml

Lines changed: 4 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -14289,46 +14289,6 @@ let root = OCamlRes.Res.([
1428914289
"\n\
1429014290
\n\
1429114291
let () = Js.log \"Hello, BuckleScript\"")]) ;
14292-
Dir (".vscode", [
14293-
File ("tasks.json",
14294-
"{\n\
14295-
\ \"version\": \"${bsb:proj-version}\",\n\
14296-
\ \"command\": \"npm\",\n\
14297-
\ \"options\": {\n\
14298-
\ \"cwd\": \"${workspaceRoot}\"\n\
14299-
\ },\n\
14300-
\ \"isShellCommand\": true,\n\
14301-
\ \"args\": [\n\
14302-
\ \"run\",\n\
14303-
\ \"watch\"\n\
14304-
\ ],\n\
14305-
\ \"showOutput\": \"always\",\n\
14306-
\ \"isBackground\": true,\n\
14307-
\ \"problemMatcher\": {\n\
14308-
\ \"fileLocation\": \"absolute\",\n\
14309-
\ \"owner\": \"ocaml\",\n\
14310-
\ \"watching\": {\n\
14311-
\ \"activeOnStart\": false,\n\
14312-
\ \"beginsPattern\": \">>>> Start compiling\",\n\
14313-
\ \"endsPattern\": \">>>> Finish compiling\"\n\
14314-
\ },\n\
14315-
\ \"pattern\": [\n\
14316-
\ {\n\
14317-
\ \"regexp\": \"^File \\\"(.*)\\\", line (\\\\d+)(?:, characters (\\\\d+)-(\\\\d+))?:$\",\n\
14318-
\ \"file\": 1,\n\
14319-
\ \"line\": 2,\n\
14320-
\ \"column\": 3,\n\
14321-
\ \"endColumn\": 4\n\
14322-
\ },\n\
14323-
\ {\n\
14324-
\ \"regexp\": \"^(?:(?:Parse\\\\s+)?(Warning|[Ee]rror)(?:\\\\s+\\\\d+)?:)?\\\\s+(.*)$\",\n\
14325-
\ \"severity\": 1,\n\
14326-
\ \"message\": 2,\n\
14327-
\ \"loop\": true\n\
14328-
\ }\n\
14329-
\ ]\n\
14330-
\ }\n\
14331-
}")]) ;
1433214292
File ("bsconfig.json",
1433314293
"{\n\
1433414294
\ \"name\": \"${bsb:name}\",\n\
@@ -14409,62 +14369,12 @@ let root = OCamlRes.Res.([
1440914369
npm run watch\n\
1441014370
```\n\
1441114371
\n\
14412-
\n\
14413-
# Editor\n\
14414-
If you use `vscode`, Press `Windows + Shift + B` it will build automatically")]) ;
14372+
")]) ;
1441514373
Dir ("basic-reason", [
1441614374
Dir ("src", [
1441714375
File ("Demo.re",
1441814376
"Js.log(\"Hello, BuckleScript and Reason!\");\n\
1441914377
")]) ;
14420-
Dir (".vscode", [
14421-
File ("tasks.json",
14422-
"{\n\
14423-
\ \"version\": \"${bsb:proj-version}\",\n\
14424-
\ \"command\": \"npm\",\n\
14425-
\ \"options\": {\n\
14426-
\ \"cwd\": \"${workspaceRoot}\",\n\
14427-
\ \"env\": {\n\
14428-
\ \"BS_VSCODE\" : \"true\"\n\
14429-
\ }\n\
14430-
\ },\n\
14431-
\ \"type\": \"shell\",\n\
14432-
\ \"args\": [\"run\", \"start\"],\n\
14433-
\ \"presentation\": {\n\
14434-
\ \"echo\": true,\n\
14435-
\ \"reveal\": \"always\",\n\
14436-
\ \"focus\": false,\n\
14437-
\ \"panel\": \"shared\"\n\
14438-
\ },\n\
14439-
\ \"isBackground\": true,\n\
14440-
\ \"problemMatcher\": {\n\
14441-
\ \"fileLocation\": \"absolute\",\n\
14442-
\ \"owner\": \"ocaml\",\n\
14443-
\ \"background\": {\n\
14444-
\ \"activeOnStart\": false,\n\
14445-
\ \"beginsPattern\": \">>>> Start compiling\",\n\
14446-
\ \"endsPattern\": \">>>> Finish compiling\"\n\
14447-
\ },\n\
14448-
\ \"pattern\": [\n\
14449-
\ {\n\
14450-
\ \"regexp\":\n\
14451-
\ \"^File \\\"(.*)\\\", line (\\\\d+)(?:, characters (\\\\d+)-(\\\\d+))?:$\",\n\
14452-
\ \"file\": 1,\n\
14453-
\ \"line\": 2,\n\
14454-
\ \"column\": 3,\n\
14455-
\ \"endColumn\": 4\n\
14456-
\ },\n\
14457-
\ {\n\
14458-
\ \"regexp\":\n\
14459-
\ \"^(?:(?:Parse\\\\s+)?(Warning|[Ee]rror)(?:\\\\s+\\\\d+)?:)?\\\\s+(.*)$\",\n\
14460-
\ \"severity\": 1,\n\
14461-
\ \"message\": 2,\n\
14462-
\ \"loop\": true\n\
14463-
\ }\n\
14464-
\ ]\n\
14465-
\ }\n\
14466-
\ }\n\
14467-
")]) ;
1446814378
File ("bsconfig.json",
1446914379
"{\n\
1447014380
\ \"name\": \"${bsb:name}\",\n\
@@ -14534,15 +14444,12 @@ let root = OCamlRes.Res.([
1453414444
\n\
1453514445
```bash\n\
1453614446
# for yarn\n\
14537-
yarn\n\
14447+
yarn start\n\
1453814448
\n\
1453914449
# for npm\n\
1454014450
npm run start\n\
1454114451
```\n\
1454214452
\n\
14543-
# Editor\n\
14544-
\n\
14545-
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\
1454614453
")]) ;
1454714454
Dir ("generator", [
1454814455
Dir ("src", [
@@ -15128,7 +15035,7 @@ let root = OCamlRes.Res.([
1512815035
function setUpWebSocket() {\n\
1512915036
\ if (websocketReloader == null || websocketReloader.readyState !== 1) {\n\
1513015037
\ try {\n\
15131-
\ websocketReloader = new WebSocket(`ws://localhost:${webSocketPort}`);\n\
15038+
\ websocketReloader = new WebSocket(`ws://${window.location.hostname}:${webSocketPort}`);\n\
1513215039
\ websocketReloader.onmessage = (message) => {\n\
1513315040
\ var newData = JSON.parse(message.data).LAST_SUCCESS_BUILD_STAMP;\n\
1513415041
\ if (newData > LAST_SUCCESS_BUILD_STAMP) {\n\
@@ -16096,7 +16003,7 @@ let root = OCamlRes.Res.([
1609616003
function setUpWebScoket() {\n\
1609716004
\ if (wsReloader == null || wsReloader.readyState !== 1) {\n\
1609816005
\ try {\n\
16099-
\ wsReloader = new WebSocket(`ws://localhost:${WS_PORT}`)\n\
16006+
\ wsReloader = new WebSocket(`ws://${window.location.hostname}:${WS_PORT}`)\n\
1610016007
\ wsReloader.onmessage = (msg) => {\n\
1610116008
\ var newData = JSON.parse(msg.data).LAST_SUCCESS_BUILD_STAMP\n\
1610216009
\ if (newData > LAST_SUCCESS_BUILD_STAMP) {\n\

0 commit comments

Comments
 (0)