Skip to content

Commit f7ac760

Browse files
authored
Merge pull request #9 from bbarker/react_dev_mode
added react_dev_mode
2 parents 415bc93 + 7f89689 commit f7ac760

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules/
44
bower_components/
55
tmp/
66
output/
7+
prod/
78
html/index.js
89
/.psc-package
910
/.cache

package-lock.json

+52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"test": "spago test",
88
"clean": "rimraf .cache .spago .psci_modules output .pulp-cache prod dist",
99
"build": "spago build",
10-
"dev": "rimraf dist && spago build && parcel build --public-url ./ index.html",
10+
"dev": "rimraf dist && spago build && cross-env NODE_ENV=development parcel build --public-url ./ index.html",
1111
"prod": "rimraf prod dist && mkdir prod && spago bundle-app --main Main --to prod/index.prod.js && java -jar closure-compiler/closure-compiler-v20190301.jar --js prod/index.prod.js --js_output_file prod/index.js && cp index.html prod/index.html && parcel build --public-url ./ prod/index.html && rimraf prod",
1212
"start": "spago build && parcel index.html",
1313
"watch": "spago build && parcel watch index.html"
1414
},
1515
"author": "Anupam Jain <[email protected]> (https://github.com/ajnsit)",
1616
"license": "MIT",
1717
"devDependencies": {
18+
"cross-env": "^7.0.1",
1819
"parcel-bundler": "^1.12.4",
1920
"purescript": "^0.13.6",
2021
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)