2021-05-28 13:50:42 +02:00
|
|
|
{:deps {:aliases [:dev]}
|
|
|
|
:http {:port 3448}
|
2021-10-13 17:39:03 +02:00
|
|
|
:nrepl {:port 3447 :host "0.0.0.0"}
|
2021-04-26 11:19:50 +02:00
|
|
|
:dev-http {8888 "classpath:public"}
|
2020-03-29 14:33:54 +02:00
|
|
|
|
|
|
|
:builds
|
|
|
|
{:main
|
|
|
|
{:target :browser
|
|
|
|
:output-dir "resources/public/js/"
|
|
|
|
:asset-path "/js"
|
2020-06-05 14:14:49 +02:00
|
|
|
:devtools {:browser-inject :main
|
2023-10-16 15:07:36 +02:00
|
|
|
:watch-dir "resources/public"
|
|
|
|
:reload-strategy :full}
|
2020-04-17 15:03:34 +02:00
|
|
|
:build-options {:manifest-name "manifest.json"}
|
2023-12-22 12:52:51 +01:00
|
|
|
:module-loader true
|
2020-04-16 13:49:59 +02:00
|
|
|
:modules
|
2023-12-22 12:52:51 +01:00
|
|
|
{:shared
|
|
|
|
{:entries []}
|
2022-03-22 08:12:31 +01:00
|
|
|
|
2023-06-21 17:14:50 +02:00
|
|
|
:main
|
2024-04-02 09:58:21 +02:00
|
|
|
{:entries [app.main app.plugins.api]
|
2023-06-21 17:14:50 +02:00
|
|
|
:depends-on #{:shared}
|
|
|
|
:init-fn app.main/init}
|
|
|
|
|
2023-12-22 12:52:51 +01:00
|
|
|
:util-highlight
|
|
|
|
{:entries [app.util.code-highlight]
|
|
|
|
:depends-on #{:main}}
|
|
|
|
|
|
|
|
:main-auth
|
|
|
|
{:entries [app.main.ui.auth
|
|
|
|
app.main.ui.auth.verify-token]
|
|
|
|
:depends-on #{:main}}
|
|
|
|
|
|
|
|
:main-viewer
|
|
|
|
{:entries [app.main.ui.viewer]
|
|
|
|
:depends-on #{:main :main-auth}}
|
|
|
|
|
|
|
|
:main-workspace
|
|
|
|
{:entries [app.main.ui.workspace]
|
|
|
|
:depends-on #{:main}}
|
|
|
|
|
|
|
|
:main-dashboard
|
|
|
|
{:entries [app.main.ui.dashboard]
|
|
|
|
:depends-on #{:main}}
|
|
|
|
|
|
|
|
:main-settings
|
|
|
|
{:entries [app.main.ui.settings]
|
|
|
|
:depends-on #{:main}}
|
|
|
|
|
2023-06-21 17:14:50 +02:00
|
|
|
:render
|
|
|
|
{:entries [app.render]
|
|
|
|
:depends-on #{:shared}
|
|
|
|
:init-fn app.render/init}
|
|
|
|
|
|
|
|
:worker
|
|
|
|
{:entries [app.worker]
|
|
|
|
:web-worker true
|
|
|
|
:depends-on #{:shared}}
|
|
|
|
|
2023-08-25 11:18:19 +02:00
|
|
|
:rasterizer
|
|
|
|
{:entries [app.rasterizer]
|
2023-06-21 17:14:50 +02:00
|
|
|
:depends-on #{:shared}
|
2023-08-25 11:18:19 +02:00
|
|
|
:init-fn app.rasterizer/init}}
|
2021-05-04 15:15:42 +02:00
|
|
|
|
2024-10-02 16:59:59 +02:00
|
|
|
:js-options
|
|
|
|
{:entry-keys ["module" "browser" "main"]
|
|
|
|
:resolve {"penpot/vendor/text-editor-v2"
|
|
|
|
{:target :file
|
|
|
|
:file "vendor/text_editor_v2.js"}}}
|
|
|
|
|
2020-04-02 23:56:26 +02:00
|
|
|
:compiler-options
|
2022-06-13 11:18:02 +02:00
|
|
|
{:output-feature-set :es2020
|
2021-05-04 15:15:42 +02:00
|
|
|
:output-wrapper false
|
|
|
|
:warnings {:fn-deprecated false}}
|
2020-05-05 12:34:51 +02:00
|
|
|
|
2020-04-02 23:56:26 +02:00
|
|
|
:release
|
2021-10-15 14:45:56 +02:00
|
|
|
{:closure-defines {goog.DEBUG false
|
|
|
|
goog.debug.LOGGING_ENABLED true}
|
|
|
|
:compiler-options
|
2020-04-02 23:56:26 +02:00
|
|
|
{:fn-invoke-direct true
|
2021-11-12 13:31:28 +01:00
|
|
|
:optimizations #shadow/env ["PENPOT_BUILD_OPTIMIZATIONS" :as :keyword :default :advanced]
|
2023-12-29 17:22:30 +01:00
|
|
|
:output-wrapper true
|
|
|
|
:rename-prefix-namespace "PENPOT"
|
2020-04-02 23:56:26 +02:00
|
|
|
:source-map true
|
2020-12-03 10:31:07 +01:00
|
|
|
:elide-asserts true
|
2020-04-08 16:54:44 +02:00
|
|
|
:anon-fn-naming-policy :off
|
2020-04-30 10:08:36 +02:00
|
|
|
:source-map-detail-level :all}}}
|
|
|
|
|
2023-12-21 11:37:42 +01:00
|
|
|
;; FIXME: maybe rename to :components ? (there are nothing storybook
|
|
|
|
;; related, is just an ESM export of components that will be used
|
|
|
|
;; initially on storybook but not limited to storybook)
|
2023-11-24 12:24:47 +01:00
|
|
|
:storybook
|
2021-05-28 12:59:43 +02:00
|
|
|
{:target :esm
|
2023-11-24 12:24:47 +01:00
|
|
|
:output-dir "target/storybook/"
|
2023-12-21 11:37:42 +01:00
|
|
|
:js-options {:js-provider :import}
|
|
|
|
|
2023-11-24 12:24:47 +01:00
|
|
|
:modules
|
2023-12-21 11:37:42 +01:00
|
|
|
{:base
|
|
|
|
{:entries []}
|
|
|
|
:components
|
2024-08-01 14:54:57 +02:00
|
|
|
{:exports {default app.main.ui.ds/default}
|
2023-12-21 11:37:42 +01:00
|
|
|
:depends-on #{:base}}}
|
2023-11-24 12:24:47 +01:00
|
|
|
|
|
|
|
:compiler-options
|
|
|
|
{:output-feature-set :es2020
|
|
|
|
:output-wrapper false
|
|
|
|
:warnings {:fn-deprecated false}}}
|
|
|
|
|
|
|
|
:lib-penpot
|
|
|
|
{:target :esm
|
|
|
|
:output-dir "resources/public/libs"
|
2021-05-28 12:59:43 +02:00
|
|
|
|
|
|
|
:modules
|
|
|
|
{:penpot {:exports {:renderPage app.libs.render/render-page-export
|
|
|
|
:createFile app.libs.file-builder/create-file-export}}}
|
|
|
|
|
|
|
|
:compiler-options
|
2022-10-03 11:39:58 +02:00
|
|
|
{:output-feature-set :es2020
|
2021-05-28 12:59:43 +02:00
|
|
|
:output-wrapper false
|
|
|
|
:warnings {:fn-deprecated false}}
|
|
|
|
|
|
|
|
:release
|
|
|
|
{:compiler-options
|
|
|
|
{:fn-invoke-direct true
|
|
|
|
:source-map true
|
|
|
|
:elide-asserts true
|
|
|
|
:anon-fn-naming-policy :off
|
|
|
|
:source-map-detail-level :all}}}
|
|
|
|
|
2022-02-24 23:41:03 +01:00
|
|
|
:bench
|
|
|
|
{:target :node-script
|
|
|
|
:output-to "target/bench.js"
|
|
|
|
:output-dir "target/bench/"
|
2022-11-14 10:25:36 +01:00
|
|
|
:main bench/main
|
2022-02-24 23:41:03 +01:00
|
|
|
|
|
|
|
:compiler-options
|
2022-11-14 10:25:36 +01:00
|
|
|
{:output-feature-set :es2020
|
2022-02-24 23:41:03 +01:00
|
|
|
:output-wrapper false
|
|
|
|
:warnings {:fn-deprecated false}}
|
|
|
|
|
|
|
|
:release
|
|
|
|
{:compiler-options
|
|
|
|
{:fn-invoke-direct true
|
|
|
|
:elide-asserts true
|
|
|
|
:anon-fn-naming-policy :off}}}
|
|
|
|
|
2021-05-28 13:50:42 +02:00
|
|
|
:test
|
2020-04-30 10:08:36 +02:00
|
|
|
{:target :node-test
|
2023-12-21 11:37:42 +01:00
|
|
|
:output-to "target/tests.cjs"
|
2021-12-10 09:45:17 +01:00
|
|
|
:output-dir "target/test/"
|
2022-11-08 10:40:19 +01:00
|
|
|
:ns-regexp "^frontend-tests.*-test$"
|
2021-12-10 09:45:17 +01:00
|
|
|
:autorun true
|
2020-04-30 10:08:36 +02:00
|
|
|
|
2024-10-03 09:54:53 +02:00
|
|
|
:js-options
|
|
|
|
{:entry-keys ["module" "browser" "main"]
|
|
|
|
:resolve {"penpot/vendor/text-editor-v2"
|
|
|
|
{:target :file
|
|
|
|
:file "vendor/text_editor_v2.js"}}}
|
|
|
|
|
2021-12-10 09:45:17 +01:00
|
|
|
:compiler-options
|
2022-08-02 17:15:32 +02:00
|
|
|
{:output-feature-set :es2020
|
2021-12-10 09:45:17 +01:00
|
|
|
:output-wrapper false
|
|
|
|
:source-map true
|
|
|
|
:source-map-include-sources-content true
|
|
|
|
:source-map-detail-level :all
|
|
|
|
:warnings {:fn-deprecated false}}}
|
2021-11-30 17:22:17 +01:00
|
|
|
|
2021-12-10 09:45:17 +01:00
|
|
|
}}
|
2021-11-30 17:22:17 +01:00
|
|
|
|