Skip to content

Commit

Permalink
Add a basic tailwind template that could be run on a single command
Browse files Browse the repository at this point in the history
The new template uses parcel insted of webpack
  • Loading branch information
bodhish committed Mar 4, 2020
1 parent c5924fb commit df87904
Show file tree
Hide file tree
Showing 14 changed files with 7,789 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-reason-react-tailwind",
"version": "0.1.8",
"version": "0.2.0",
"description": "A reason react starter with tailwind and webpack",
"scripts": {
"start": "node index.js"
Expand Down
13 changes: 13 additions & 0 deletions templates/tailwind-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/.cache
/dist
/lib
/node_modules

# Ignore these associated with reason-react and bsb
.merlin
npm-debug.log
.DS_Store
.bsb.lock
*.bs.js

yarn.lock
10 changes: 10 additions & 0 deletions templates/tailwind-starter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# tailwind-starter

A starter porject to play around with reason-react and tailwind

## Run Project

```sh
npm install
npm run dev
```
23 changes: 23 additions & 0 deletions templates/tailwind-starter/bsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "tailwind-starter",
"reason": {
"react-jsx": 3
},
"sources": {
"dir": "src",
"subdirs": true
},
"bsc-flags": ["-bs-super-errors", "-bs-no-version-header"],
"package-specs": [
{
"module": "commonjs",
"in-source": true
}
],
"suffix": ".bs.js",
"bs-dependencies": ["reason-react"],
"refmt": 3,
"warnings": {
"error": "+8"
}
}
12 changes: 12 additions & 0 deletions templates/tailwind-starter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Create Reason React Tailwind</title>
</head>
<body>
<div id="root"></div>
<script src="src/Index.bs.js"></script>
</body>
</html>
Loading

0 comments on commit df87904

Please sign in to comment.