File tree 5 files changed +16
-5
lines changed
5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ cd trypurescript/client
48
48
49
49
npm install
50
50
npm run build
51
- npm run bundle
52
51
53
52
cd public
54
53
httpserver 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
12
12
client)
13
13
cd client
14
14
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
17
17
;;
18
18
* )
19
19
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 1
1
{
2
2
"private" : true ,
3
+ "config" : {
4
+ "configpath" : " config/dev/*.purs"
5
+ },
3
6
"scripts" : {
4
7
"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"
7
9
},
8
10
"devDependencies" : {
9
11
"purescript" : " ^0.13.6" ,
You can’t perform that action at this time.
0 commit comments