-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
15,880 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +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 | ||
|
||
/lib/bs/ | ||
/node_modules/ | ||
/bundleOutput/ | ||
_redirects | ||
build/ | ||
yarn.lock | ||
lerna-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# RE-Tailwind | ||
|
||
## Run Project | ||
|
||
```sh | ||
npm install | ||
npm start | ||
# in another tab | ||
npm run webpack | ||
``` | ||
|
||
After you see the webpack compilation succeed (the `npm run webpack` step), open up `build/index.html` (**no server needed!**). Then modify whichever `.re` file in `src` and refresh the page to see the changes. | ||
|
||
## Run Project with Server | ||
|
||
To run with the webpack development server run `npm run server` and view in the browser at http://localhost:8000. Running in this environment provides hot reloading and support for routing; just edit and save the file and the browser will automatically refresh. | ||
|
||
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`) | ||
|
||
## gitignore | ||
|
||
rename `gitignore` to `.gitignore` | ||
|
||
## Build for Production | ||
|
||
```sh | ||
npm run clean | ||
npm run build | ||
npm run webpack:production | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "react-hooks-template", | ||
"reason": { | ||
"react-jsx": 3 | ||
}, | ||
"sources": [ | ||
{ | ||
"dir": "src", | ||
"subdirs": true | ||
}, | ||
{ | ||
"dir": "packages/mytemplate/src", | ||
"subdirs": true | ||
} | ||
], | ||
"bsc-flags": ["-bs-super-errors", "-bs-no-version-header"], | ||
"package-specs": [ | ||
{ | ||
"module": "commonjs", | ||
"in-source": true | ||
} | ||
], | ||
"suffix": ".bs.js", | ||
"namespace": true, | ||
"bs-dependencies": [ | ||
"reason-react", | ||
"@glennsl/bs-json", | ||
"bs-webapi", | ||
"bs-fetch" | ||
], | ||
"refmt": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
36 error Error: Command failed with exit code 1: git commit -F /tmp/77a245ad-86be-4049-825e-ac8477678628/lerna-commit.txt | ||
36 error On branch master | ||
36 error Your branch is up to date with 'origin/master'. | ||
36 error | ||
36 error nothing to commit, working tree clean | ||
36 error at makeError (/home/bodhi/code/mytemplate.xyz/node_modules/execa/lib/error.js:59:11) | ||
36 error at handlePromise (/home/bodhi/code/mytemplate.xyz/node_modules/execa/index.js:114:26) | ||
36 error at processTicksAndRejections (internal/process/task_queues.js:97:5) | ||
36 error at async Promise.all (index 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.