Skip to content

Commit e9e5dfa

Browse files
authored
Merge pull request rescript-lang#2960 from BuckleScript/add_tea_theme
add tea theme (address rescript-lang#2824)
2 parents 1796d6e + 39867f3 commit e9e5dfa

File tree

10 files changed

+1887
-2
lines changed

10 files changed

+1887
-2
lines changed

Diff for: jscomp/bsb/bsb_templates.ml

+634-1
Large diffs are not rendered by default.

Diff for: jscomp/bsb/templates/tea/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# Build
4+
```
5+
npm run build
6+
```
7+
8+
# Watch
9+
10+
```
11+
npm run watch
12+
```
13+
14+
create a http-server
15+
16+
```
17+
npm install -g http-server
18+
```
19+
20+
Edit the file and see the changes automatically reloaded in the browser

Diff for: jscomp/bsb/templates/tea/bsconfig.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "tea",
3+
"version": "0.1.0",
4+
"sources": {
5+
"dir" : "src",
6+
"subdirs" : true
7+
},
8+
"package-specs": {
9+
"module": "commonjs",
10+
"in-source": true
11+
},
12+
"suffix": ".bs.js",
13+
"bs-dependencies": [
14+
"bucklescript-tea"
15+
],
16+
"warnings": {
17+
"error" : "+101"
18+
}
19+
}

Diff for: jscomp/bsb/templates/tea/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="description" content="">
8+
<meta name="author" content="">
9+
<title>Bucklescript TEA Starter Kit</title>
10+
</head>
11+
12+
13+
14+
<body>
15+
<div id="my-element"> </div>
16+
<script src="./loader.js" type="module" data-main="./src/main.bs.js"></script>
17+
<script src="./watcher.js" type="module"></script>
18+
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)