Skip to content

Commit bfaf32b

Browse files
committed
Remove bsb basic-reason template
1 parent e32ed70 commit bfaf32b

File tree

10 files changed

+2
-314
lines changed

10 files changed

+2
-314
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ BS_TRAVIS_CI=1 npm install -g .
5656
Then go somewhere and create a dummy project:
5757

5858
```sh
59-
bsb -init foo -theme basic-reason
59+
bsb -init foo -theme basic
6060
cd foo
6161
npm run build
6262
```

jscomp/bsb/bsb_templates.ml

-81
Original file line numberDiff line numberDiff line change
@@ -87,87 +87,6 @@ let root = OCamlRes.Res.([
8787
```\n\
8888
\n\
8989
")]) ;
90-
Dir ("basic-reason", [
91-
Dir ("src", [
92-
File ("Demo.re",
93-
"Js.log(\"Hello, BuckleScript and Reason!\");\n\
94-
")]) ;
95-
File ("bsconfig.json",
96-
"{\n\
97-
\ \"name\": \"${bsb:name}\",\n\
98-
\ \"version\": \"${bsb:proj-version}\",\n\
99-
\ \"sources\": {\n\
100-
\ \"dir\" : \"src\",\n\
101-
\ \"subdirs\" : true\n\
102-
\ },\n\
103-
\ \"package-specs\": {\n\
104-
\ \"module\": \"commonjs\",\n\
105-
\ \"in-source\": true\n\
106-
\ },\n\
107-
\ \"suffix\": \".bs.js\",\n\
108-
\ \"bs-dependencies\": [\n\
109-
\n\
110-
\ ],\n\
111-
\ \"warnings\": {\n\
112-
\ \"error\" : \"+101\"\n\
113-
\ },\n\
114-
\ \"namespace\": true,\n\
115-
\ \"refmt\": 3\n\
116-
}\n\
117-
") ;
118-
File ("package.json",
119-
"{\n\
120-
\ \"name\": \"${bsb:name}\",\n\
121-
\ \"version\": \"${bsb:proj-version}\",\n\
122-
\ \"scripts\": {\n\
123-
\ \"build\": \"bsb -make-world\",\n\
124-
\ \"start\": \"bsb -make-world -w\",\n\
125-
\ \"clean\": \"bsb -clean-world\"\n\
126-
\ },\n\
127-
\ \"keywords\": [\n\
128-
\ \"BuckleScript\"\n\
129-
\ ],\n\
130-
\ \"author\": \"\",\n\
131-
\ \"license\": \"MIT\",\n\
132-
\ \"devDependencies\": {\n\
133-
\ \"bs-platform\": \"^${bsb:bs-version}\"\n\
134-
\ }\n\
135-
}\n\
136-
") ;
137-
File (".gitignore",
138-
".DS_Store\n\
139-
.merlin\n\
140-
.bsb.lock\n\
141-
npm-debug.log\n\
142-
/lib/bs/\n\
143-
/node_modules/\n\
144-
") ;
145-
File ("README.md",
146-
"# Basic Reason Template\n\
147-
\n\
148-
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\
149-
\n\
150-
# Build\n\
151-
\n\
152-
```bash\n\
153-
# for yarn\n\
154-
yarn build\n\
155-
\n\
156-
# for npm\n\
157-
npm run build\n\
158-
```\n\
159-
\n\
160-
# Build + Watch\n\
161-
\n\
162-
```bash\n\
163-
# for yarn\n\
164-
yarn start\n\
165-
\n\
166-
# for npm\n\
167-
npm run start\n\
168-
```\n\
169-
\n\
170-
")]) ;
17190
Dir ("generator", [
17291
Dir ("src", [
17392
File ("test.cpp.ml",

jscomp/bsb/pack-templates.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Usually, to naively copy a template somewhere else, you'd find the bsb/templates directory, then use `cp` to recursively copy the files onto the destination. However, this procedure isn't 100% reliable, cross-platform, fast, etc.
55
# In order to be more resilient to failures, we actually pack up every directory into a single ocaml file using [ocamlres](https://github.com/OCamlPro/ocp-ocamlres), through this script.
66
# At build time (not at install nor runtime!), ocamlres reads the `templates` directory and its content, and bundles it all up in a file called `bsb_templates.ml` (go check its content!)
7-
# Then, when e.g. `bsb -init my-dir -theme basic-reason` is called, it calls `Bsb_theme_init.init_sample_project`, which goes through `bsb_templates.ml` and writes out the relevant boilerplate files.
7+
# Then, when e.g. `bsb -init my-dir -theme basic` is called, it calls `Bsb_theme_init.init_sample_project`, which goes through `bsb_templates.ml` and writes out the relevant boilerplate files.
88

99
set -e
1010
git clean -dfx templates

jscomp/bsb/templates/basic-reason/.gitignore

-6
This file was deleted.

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

-24
This file was deleted.

jscomp/bsb/templates/basic-reason/bsconfig.json

-21
This file was deleted.

jscomp/bsb/templates/basic-reason/package.json

-17
This file was deleted.

jscomp/bsb/templates/basic-reason/src/Demo.re

-1
This file was deleted.

lib/4.06.1/bsb.ml

-81
Original file line numberDiff line numberDiff line change
@@ -14756,87 +14756,6 @@ let root = OCamlRes.Res.([
1475614756
```\n\
1475714757
\n\
1475814758
")]) ;
14759-
Dir ("basic-reason", [
14760-
Dir ("src", [
14761-
File ("Demo.re",
14762-
"Js.log(\"Hello, BuckleScript and Reason!\");\n\
14763-
")]) ;
14764-
File ("bsconfig.json",
14765-
"{\n\
14766-
\ \"name\": \"${bsb:name}\",\n\
14767-
\ \"version\": \"${bsb:proj-version}\",\n\
14768-
\ \"sources\": {\n\
14769-
\ \"dir\" : \"src\",\n\
14770-
\ \"subdirs\" : true\n\
14771-
\ },\n\
14772-
\ \"package-specs\": {\n\
14773-
\ \"module\": \"commonjs\",\n\
14774-
\ \"in-source\": true\n\
14775-
\ },\n\
14776-
\ \"suffix\": \".bs.js\",\n\
14777-
\ \"bs-dependencies\": [\n\
14778-
\n\
14779-
\ ],\n\
14780-
\ \"warnings\": {\n\
14781-
\ \"error\" : \"+101\"\n\
14782-
\ },\n\
14783-
\ \"namespace\": true,\n\
14784-
\ \"refmt\": 3\n\
14785-
}\n\
14786-
") ;
14787-
File ("package.json",
14788-
"{\n\
14789-
\ \"name\": \"${bsb:name}\",\n\
14790-
\ \"version\": \"${bsb:proj-version}\",\n\
14791-
\ \"scripts\": {\n\
14792-
\ \"build\": \"bsb -make-world\",\n\
14793-
\ \"start\": \"bsb -make-world -w\",\n\
14794-
\ \"clean\": \"bsb -clean-world\"\n\
14795-
\ },\n\
14796-
\ \"keywords\": [\n\
14797-
\ \"BuckleScript\"\n\
14798-
\ ],\n\
14799-
\ \"author\": \"\",\n\
14800-
\ \"license\": \"MIT\",\n\
14801-
\ \"devDependencies\": {\n\
14802-
\ \"bs-platform\": \"^${bsb:bs-version}\"\n\
14803-
\ }\n\
14804-
}\n\
14805-
") ;
14806-
File (".gitignore",
14807-
".DS_Store\n\
14808-
.merlin\n\
14809-
.bsb.lock\n\
14810-
npm-debug.log\n\
14811-
/lib/bs/\n\
14812-
/node_modules/\n\
14813-
") ;
14814-
File ("README.md",
14815-
"# Basic Reason Template\n\
14816-
\n\
14817-
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\
14818-
\n\
14819-
# Build\n\
14820-
\n\
14821-
```bash\n\
14822-
# for yarn\n\
14823-
yarn build\n\
14824-
\n\
14825-
# for npm\n\
14826-
npm run build\n\
14827-
```\n\
14828-
\n\
14829-
# Build + Watch\n\
14830-
\n\
14831-
```bash\n\
14832-
# for yarn\n\
14833-
yarn start\n\
14834-
\n\
14835-
# for npm\n\
14836-
npm run start\n\
14837-
```\n\
14838-
\n\
14839-
")]) ;
1484014759
Dir ("generator", [
1484114760
Dir ("src", [
1484214761
File ("test.cpp.ml",

lib/4.06.1/unstable/bsb_native.ml

-81
Original file line numberDiff line numberDiff line change
@@ -14913,87 +14913,6 @@ let root = OCamlRes.Res.([
1491314913
```\n\
1491414914
\n\
1491514915
")]) ;
14916-
Dir ("basic-reason", [
14917-
Dir ("src", [
14918-
File ("Demo.re",
14919-
"Js.log(\"Hello, BuckleScript and Reason!\");\n\
14920-
")]) ;
14921-
File ("bsconfig.json",
14922-
"{\n\
14923-
\ \"name\": \"${bsb:name}\",\n\
14924-
\ \"version\": \"${bsb:proj-version}\",\n\
14925-
\ \"sources\": {\n\
14926-
\ \"dir\" : \"src\",\n\
14927-
\ \"subdirs\" : true\n\
14928-
\ },\n\
14929-
\ \"package-specs\": {\n\
14930-
\ \"module\": \"commonjs\",\n\
14931-
\ \"in-source\": true\n\
14932-
\ },\n\
14933-
\ \"suffix\": \".bs.js\",\n\
14934-
\ \"bs-dependencies\": [\n\
14935-
\n\
14936-
\ ],\n\
14937-
\ \"warnings\": {\n\
14938-
\ \"error\" : \"+101\"\n\
14939-
\ },\n\
14940-
\ \"namespace\": true,\n\
14941-
\ \"refmt\": 3\n\
14942-
}\n\
14943-
") ;
14944-
File ("package.json",
14945-
"{\n\
14946-
\ \"name\": \"${bsb:name}\",\n\
14947-
\ \"version\": \"${bsb:proj-version}\",\n\
14948-
\ \"scripts\": {\n\
14949-
\ \"build\": \"bsb -make-world\",\n\
14950-
\ \"start\": \"bsb -make-world -w\",\n\
14951-
\ \"clean\": \"bsb -clean-world\"\n\
14952-
\ },\n\
14953-
\ \"keywords\": [\n\
14954-
\ \"BuckleScript\"\n\
14955-
\ ],\n\
14956-
\ \"author\": \"\",\n\
14957-
\ \"license\": \"MIT\",\n\
14958-
\ \"devDependencies\": {\n\
14959-
\ \"bs-platform\": \"^${bsb:bs-version}\"\n\
14960-
\ }\n\
14961-
}\n\
14962-
") ;
14963-
File (".gitignore",
14964-
".DS_Store\n\
14965-
.merlin\n\
14966-
.bsb.lock\n\
14967-
npm-debug.log\n\
14968-
/lib/bs/\n\
14969-
/node_modules/\n\
14970-
") ;
14971-
File ("README.md",
14972-
"# Basic Reason Template\n\
14973-
\n\
14974-
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\
14975-
\n\
14976-
# Build\n\
14977-
\n\
14978-
```bash\n\
14979-
# for yarn\n\
14980-
yarn build\n\
14981-
\n\
14982-
# for npm\n\
14983-
npm run build\n\
14984-
```\n\
14985-
\n\
14986-
# Build + Watch\n\
14987-
\n\
14988-
```bash\n\
14989-
# for yarn\n\
14990-
yarn start\n\
14991-
\n\
14992-
# for npm\n\
14993-
npm run start\n\
14994-
```\n\
14995-
\n\
14996-
")]) ;
1499714916
Dir ("generator", [
1499814917
Dir ("src", [
1499914918
File ("test.cpp.ml",

0 commit comments

Comments
 (0)