-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
4 changed files
with
20 additions
and
17 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
File renamed without changes.
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,50 +1,50 @@ | ||
(melange.emit | ||
(enabled_if | ||
(= %{profile} "dev")) | ||
(alias melange-app) | ||
(target app) | ||
(modules index) | ||
(libraries melange demo_shared_js reason-react melange.dom melange-webapi) | ||
(preprocess | ||
(pps browser_ppx -js reason-react-ppx melange.ppx)) | ||
(module_systems | ||
(es6 js)) | ||
(enabled_if | ||
(= %{profile} "dev"))) | ||
(es6 js))) | ||
|
||
(rule | ||
(enabled_if | ||
(= %{profile} "dev")) | ||
(alias client) | ||
(deps | ||
(alias_rec melange-app) | ||
(:script build.mjs)) | ||
(target app.js) | ||
(action | ||
(progn | ||
(run node %{script} app/demo/client/index.js %{target}))) | ||
(enabled_if | ||
(= %{profile} "dev"))) | ||
(run node %{script} app/demo/client/index.js %{target})))) | ||
|
||
(rule | ||
(enabled_if | ||
(= %{profile} "dev")) | ||
(alias client) | ||
(deps | ||
(alias_rec melange-app) | ||
(:input create-from-fetch.jsx) | ||
(:script build.mjs)) | ||
(action | ||
(progn | ||
(run node %{script} %{input} "app/demo/client/"))) | ||
(enabled_if | ||
(= %{profile} "dev"))) | ||
(run node %{script} %{input} "app/demo/client/")))) | ||
|
||
(rule | ||
(enabled_if | ||
(= %{profile} "dev")) | ||
(alias client) | ||
(target bootstrap.js) | ||
(deps | ||
(alias_rec melange-app) | ||
(:input runtime-with-client.jsx) | ||
(:input create-from-readable-stream.jsx) | ||
(:script build.mjs) | ||
(:extract %{bin:server_reason_react.extract_client_components})) | ||
(action | ||
(progn | ||
(run %{extract} app --out %{target}) | ||
(run node %{script} %{input} "app/demo/client/"))) | ||
(enabled_if | ||
(= %{profile} "dev"))) | ||
(run node %{script} %{input} "app/demo/client/")))) |
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