File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ cd trypurescript/client
4848
4949npm install
5050npm run build
51- npm run bundle
5251
5352cd public
5453httpserver 8080 # eg with: alias httpserver='python -m SimpleHTTPServer'
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ case $COMPONENT in
1212 client)
1313 cd client
1414 npm install
15- npm run build
16- npm run bundle
15+ # Use production config, since we want to use these bundles for deploys
16+ npm_config_configpath= " config/prod/*.purs " npm run build
1717 ;;
1818 * )
1919 echo >&2 " Unrecognised component: $COMPONENT "
File renamed without changes.
Original file line number Diff line number Diff line change 1+ module Try.Config where
2+
3+ loaderUrl :: String
4+ loaderUrl = " https://compile.purescript.org/output"
5+
6+ compileUrl :: String
7+ compileUrl = " https://compile.purescript.org"
8+
9+ mainGist :: String
10+ mainGist = " 7ad2b2eef11ac7dcfd14aa1585dd8f69"
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
3+ "config" : {
4+ "configpath" : " config/dev/*.purs"
5+ },
36 "scripts" : {
47 "clean" : " rimraf output" ,
5- "build" : " spago build --purs-args '--censor-lib --strict'" ,
6- "bundle" : " spago bundle-app --to public/js/index.js"
8+ "build" : " spago bundle-app --path $npm_package_config_configpath --purs-args '--censor-lib --strict' --to public/js/index.js"
79 },
810 "devDependencies" : {
911 "purescript" : " ^0.13.6" ,
You can’t perform that action at this time.
0 commit comments