Skip to content

Commit

Permalink
Release version 0.0.6
Browse files Browse the repository at this point in the history
- Update tailwind to 1.8.3
- add netlify.toml to ease deployment to netlify
- add a copy of gitignore file in each template
- update dependencies
  • Loading branch information
bodhish committed Sep 9, 2020
1 parent aa05a9a commit 277639f
Show file tree
Hide file tree
Showing 6 changed files with 715 additions and 1,384 deletions.
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.5.0",
"version": "0.6.0",
"description": "A reason react starter with tailwind and webpack",
"scripts": {
"start": "node index.js"
Expand Down
6 changes: 5 additions & 1 deletion templates/webpack-tailwind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ To run with the webpack development server run `npm run server` and view in the

Note that any hot reload on a route will fall back to the root (`/`), so `ReasonReact.Router.dangerouslyGetInitialUrl` will likely be needed alongside the `ReasonReact.Router.watchUrl` logic to handle routing correctly on hot reload refreshes or simply opening the app at a URL that is not the root.

To use a port other than 8000 set the `PORT` environment variable (`PORT=8080 npm run server`).
To use a port other than 8000 set the `PORT` environment variable (`PORT=8080 npm run server`)

## gitignore

rename `gitignore` to `.gitignore`

## Build for Production

Expand Down
11 changes: 11 additions & 0 deletions templates/webpack-tailwind/gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/lib/bs/
/node_modules/
/bundleOutput/
/build

# Ignore these associated with reason-react and bsb
.merlin
npm-debug.log
.DS_Store
.bsb.lock
*.bs.js
9 changes: 9 additions & 0 deletions templates/webpack-tailwind/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
base = ""
publish = "build"
command = "npm i && npm run clean && npm run build && npm run webpack:production"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Loading

0 comments on commit 277639f

Please sign in to comment.