0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00
Penpot: The open-source design tool for design and code collaboration
Find a file
Andrey Antukh 4dd97ca8ab Adapt the rest of the platform for actions api changes.
Signed-off-by: Andrey Antukh <niwi@niwi.nz>
2016-02-29 23:10:14 +02:00
resources add clipboard styles 2016-02-28 18:30:22 +01:00
scripts More improvements to deploy tasks. 2016-02-21 20:42:01 +02:00
src/uxbox Adapt the rest of the platform for actions api changes. 2016-02-29 23:10:14 +02:00
test/uxbox Add more tests to drop-shape function. 2016-02-24 22:11:33 +02:00
.gitignore Add autogenerated index.html to .gitignore 2016-02-28 11:43:52 +02:00
.nvmrc Add .nvmrc file. 2016-02-19 21:22:28 +02:00
.travis.yml More improvements to the test runner. 2016-02-02 22:04:45 +02:00
gulpfile.js Add template compilation to the gulp pipeline. 2016-02-28 10:12:25 +02:00
LICENSE Update package.json, add shrinkwrap and add temporal license file. 2016-02-02 18:18:59 +02:00
npm-shrinkwrap.json Add template compilation to the gulp pipeline. 2016-02-28 10:12:25 +02:00
package.json Add template compilation to the gulp pipeline. 2016-02-28 10:12:25 +02:00
project.clj Replace cats.labs.lens with lentes package. 2016-02-27 11:27:28 +02:00
README.md Add travis badge to readme. 2016-02-04 23:04:38 +02:00

UXBox

Travis Badge

Development

Grab the code and run:

$ ./scripts/figwheel

This will compile ClojureScript whenever you make changes and serve the application in localhost. Open the page.

ClojureScript browser-connected REPL

The aforementioned command also starts a nrepl (network REPL) in the port 7888.

You can connect to it from a shell using the following command:

$ lein repl :connect 7888

In Emacs you can use cider's M-x cider-connect command and tell it that nREPL is running on localhost:7888 to connect.

After connecting to nREPL, run the following Clojure code in it:

user> (use 'figwheel-sidecar.repl-api)
user> (cljs-repl)

After that, a figwheel message will appear and the prompt will change to cljs.user>. We can now evaluate ClojureScript in the browser from the REPL.

Static resources generation

The project's static resources are processed using gulp. First of all, install the npm dependencies running:

npm install

To start watching the files and process them with each change, run:

npm run watch

To process the resources just once, run:

npm run dist

Transformation from HTML to hiccup

For transforming the generated HTMLs to hiccup form, execute the following command:

$ lein with-profile +front hicv 2clj resources/public/templates/*.html

The .clj files in the hicv directory will contain the hiccup versions of the HTML templates.

License

TODO