Browse Source

use asset.logseq.com

Tienson Qin 5 years ago
parent
commit
644ffa581e
4 changed files with 4 additions and 7 deletions
  1. 0 6
      bin/build
  2. 3 0
      deploy_cdn.sh
  3. 1 1
      package.json
  4. 0 0
      static/css/tailwind.min.css

+ 0 - 6
bin/build

@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-yarn install
-yarn global add clean-css-cli
-cleancss -o ./resources/static/style.css ./resources/static/css/style.css
-clojure -A:cljs release app
-clojure -A:uberjar

+ 3 - 0
deploy_cdn.sh

@@ -0,0 +1,3 @@
+#!/bin/sh
+yarn clean && yarn release
+aws s3 sync ./resources/static/ s3://logseq-site/static/

+ 1 - 1
package.json

@@ -15,7 +15,7 @@
         "release": "clojure -A:cljs release app",
         "debug": "clojure -A:cljs release app --debug",
         "report": "clojure -A:cljs run shadow.cljs.build-report app report.html",
-        "clean": "rm -rf target; rm -rf resources/static/js/compiled; rm -rf resources/static/js/cljs-runtime"
+        "clean": "/usr/bin/rm -rf target; /usr/bin/rm -rf resources/static/js/compiled; /usr/bin/rm -rf resources/static/js/cljs-runtime; /usr/bin/rm resources/static/js/main.js.map; /usr/bin/rm resources/static/js/manifest.edn"
     },
     "dependencies": {
         "@tailwindcss/ui": "^0.1.3",

File diff suppressed because it is too large
+ 0 - 0
static/css/tailwind.min.css


Some files were not shown because too many files changed in this diff