mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 16:16:11 +02:00
Move all files under frontend directory.
This commit is contained in:
parent
92b45b2d05
commit
e21798f1ed
603 changed files with 10 additions and 31 deletions
2
frontend/scripts/build-tests
Executable file
2
frontend/scripts/build-tests
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build-tests.clj
|
21
frontend/scripts/build-tests.clj
Normal file
21
frontend/scripts/build-tests.clj
Normal file
|
@ -0,0 +1,21 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src" "test")
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:output-dir "out/tests"
|
||||
:optimizations :simple
|
||||
:static-fns true
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
2
frontend/scripts/build-worker
Executable file
2
frontend/scripts/build-worker
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build-worker.clj
|
21
frontend/scripts/build-worker.clj
Normal file
21
frontend/scripts/build-worker.clj
Normal file
|
@ -0,0 +1,21 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.worker
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "resources/public/js/worker.js"
|
||||
:source-map "resources/public/js/worker.js.map"
|
||||
:output-dir "resources/public/js/worker"
|
||||
:asset-path "js"
|
||||
:optimizations :simple
|
||||
:static-fns true
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:pretty-print true
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
9
frontend/scripts/dist
Executable file
9
frontend/scripts/dist
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
SCRIPT=$(readlink -f $0)
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
|
||||
NODE_ENV=production gulp dist
|
||||
$SCRIPTPATH/dist-main
|
||||
$SCRIPTPATH/dist-view
|
||||
$SCRIPTPATH/dist-worker
|
2
frontend/scripts/dist-main
Executable file
2
frontend/scripts/dist-main
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/dist-main.clj
|
24
frontend/scripts/dist-main.clj
Normal file
24
frontend/scripts/dist-main.clj
Normal file
|
@ -0,0 +1,24 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "dist/js/main.js"
|
||||
:source-map "dist/js/main.js.map"
|
||||
:output-dir "dist/js/main"
|
||||
:closure-defines {"uxbox.config.url" "https://test.uxbox.io/api"
|
||||
"uxbox.config.viewurl" "https://test.uxbox.io/view/"}
|
||||
:optimizations :advanced
|
||||
:externs ["externs/main.js"]
|
||||
:static-fns true
|
||||
:elide-asserts true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
2
frontend/scripts/dist-view
Executable file
2
frontend/scripts/dist-view
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/dist-view.clj
|
24
frontend/scripts/dist-view.clj
Normal file
24
frontend/scripts/dist-view.clj
Normal file
|
@ -0,0 +1,24 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.view
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "dist/js/view.js"
|
||||
:source-map "dist/js/view.js.map"
|
||||
:output-dir "dist/js/view/"
|
||||
:closure-defines {"uxbox.config.url" "https://test.uxbox.io/api"
|
||||
"uxbox.config.viewurl" "https://test.uxbox.io/view/"}
|
||||
:optimizations :simple
|
||||
:externs ["externs/main.js"]
|
||||
:static-fns true
|
||||
:elide-asserts true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
2
frontend/scripts/dist-worker
Executable file
2
frontend/scripts/dist-worker
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/dist-worker.clj
|
20
frontend/scripts/dist-worker.clj
Normal file
20
frontend/scripts/dist-worker.clj
Normal file
|
@ -0,0 +1,20 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.worker
|
||||
:output-to "dist/js/worker.js"
|
||||
:source-map "dist/js/worker.js.map"
|
||||
:output-dir "dist/js/worker"
|
||||
:asset-path "js"
|
||||
:parallel-build true
|
||||
:optimizations :advanced
|
||||
:static-fns true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
2
frontend/scripts/figwheel
Executable file
2
frontend/scripts/figwheel
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
rlwrap lein trampoline run -m clojure.main scripts/figwheel.clj
|
50
frontend/scripts/figwheel.clj
Normal file
50
frontend/scripts/figwheel.clj
Normal file
|
@ -0,0 +1,50 @@
|
|||
(require '[figwheel-sidecar.repl :as r]
|
||||
'[figwheel-sidecar.repl-api :as ra])
|
||||
|
||||
(def options
|
||||
{;; "uxbox.config.url" "http://127.0.0.1:6060/api"
|
||||
"uxbox.config.url" "https://test.uxbox.io/api"
|
||||
})
|
||||
|
||||
(ra/start-figwheel!
|
||||
{:figwheel-options {:css-dirs ["resources/public/css"
|
||||
"resources/public/view/css"]
|
||||
:validate-config false
|
||||
:server-port 3449
|
||||
:server-ip "0.0.0.0"}
|
||||
:build-ids ["main", "view"]
|
||||
:all-builds
|
||||
[{:id "main"
|
||||
:figwheel {:on-jsload "uxbox.main.ui/init"}
|
||||
:source-paths ["src"]
|
||||
:compiler
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
:warnings {:ns-var-clash false}
|
||||
:closure-defines options
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:output-to "resources/public/js/main.js"
|
||||
:output-dir "resources/public/js/main"
|
||||
:asset-path "/js/main"
|
||||
:verbose true}}
|
||||
|
||||
{:id "view"
|
||||
:figwheel {:on-jsload "uxbox.view.ui/init"}
|
||||
:source-paths ["src"]
|
||||
:compiler
|
||||
{:main 'uxbox.view
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
:warnings {:ns-var-clash false}
|
||||
:closure-defines options
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:output-to "resources/public/js/view.js"
|
||||
:output-dir "resources/public/js/view"
|
||||
:asset-path "/js/view"
|
||||
:verbose true}}
|
||||
]})
|
||||
|
||||
(ra/cljs-repl "main")
|
2
frontend/scripts/repl
Executable file
2
frontend/scripts/repl
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
rlwrap lein trampoline run -m clojure.main scripts/repl.clj
|
8
frontend/scripts/repl.clj
Normal file
8
frontend/scripts/repl.clj
Normal file
|
@ -0,0 +1,8 @@
|
|||
(require
|
||||
'[cljs.repl]
|
||||
'[cljs.repl.node])
|
||||
|
||||
(cljs.repl/repl
|
||||
(cljs.repl.node/repl-env)
|
||||
:output-dir "out"
|
||||
:cache-analysis true)
|
2
frontend/scripts/watch-bench
Executable file
2
frontend/scripts/watch-bench
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/watch-bench.clj
|
15
frontend/scripts/watch-bench.clj
Normal file
15
frontend/scripts/watch-bench.clj
Normal file
|
@ -0,0 +1,15 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch
|
||||
(b/inputs "dev" "src")
|
||||
{:main 'bench.core
|
||||
:output-to "out/bench.js"
|
||||
:output-dir "out/bench"
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
:static-fns false
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:pretty-print true
|
||||
:verbose true})
|
2
frontend/scripts/watch-tests
Executable file
2
frontend/scripts/watch-tests
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/watch-tests.clj
|
16
frontend/scripts/watch-tests.clj
Normal file
16
frontend/scripts/watch-tests.clj
Normal file
|
@ -0,0 +1,16 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch (b/inputs "src" "test")
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:output-dir "out/tests"
|
||||
:optimizations :simple
|
||||
:static-fns true
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
2
frontend/scripts/watch-worker
Executable file
2
frontend/scripts/watch-worker
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/watch-worker.clj
|
17
frontend/scripts/watch-worker.clj
Normal file
17
frontend/scripts/watch-worker.clj
Normal file
|
@ -0,0 +1,17 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.worker
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "resources/public/js/worker.js"
|
||||
:source-map "resources/public/js/worker.js.map"
|
||||
:output-dir "resources/public/js/worker"
|
||||
:asset-path "js"
|
||||
:optimizations :simple
|
||||
:static-fns true
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:pretty-print true
|
||||
:verbose true})
|
Loading…
Add table
Add a link
Reference in a new issue