Преглед изворни кода

fix(env): put ENV into yarn cmd

defclass пре 4 година
родитељ
комит
49da4f4829
2 измењених фајлова са 3 додато и 4 уклоњено
  1. 1 3
      README.md
  2. 2 1
      package.json

+ 1 - 3
README.md

@@ -85,11 +85,9 @@ Open <http://localhost:3001>.
 ### 4. Build a release
 
 ``` bash
-ENV=prod yarn release 
+yarn release 
 ```
 
-ENV: we can release a version for `staging` or `prod`. Logseq will read the environment variable from `resources/config.edn`
-
 ## Alternative: Docker based development environment
 
 ### 1. Fetch sources

+ 2 - 1
package.json

@@ -25,7 +25,8 @@
     },
     "scripts": {
         "watch": "run-p gulp:build gulp:watch cljs:watch",
-        "release": "run-s gulp:build cljs:release",
+        "release": "ENV=prod run-s gulp:build cljs:release",
+        "release-staging": "ENV=staging run-s gulp:build cljs:release",
         "watch-app": "run-p gulp:watch cljs:watch-app",
         "release-app": "run-s gulp:build cljs:release-app",
         "release-publishing": "run-s gulp:build cljs:release-publishing",