0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00
Penpot: The open-source design tool for design and code collaboration
Find a file
2016-03-03 23:47:31 +02:00
resources create styles for user settings profile 2016-03-03 21:25:19 +01:00
scripts Update readme. 2016-03-01 19:50:30 +02:00
src/uxbox create styles for user settings profile 2016-03-03 21:25:19 +01: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
CONTRIBUTING.md Add CONTRIBUTING.md file. 2016-03-01 20:25:36 +02:00
gulpfile.js Remove gulp-clean from dependencies. 2016-03-03 23:47:31 +02:00
LICENSE Add LICENSE file. 2016-03-01 20:25:36 +02:00
npm-shrinkwrap.json Remove gulp-clean from dependencies. 2016-03-03 23:47:31 +02:00
package.json Remove gulp-clean from dependencies. 2016-03-03 23:47:31 +02:00
project.clj Replace cats.labs.lens with lentes package. 2016-02-27 11:27:28 +02:00
README.md Update readme. 2016-03-01 19:50:30 +02:00

UXBox

Travis Badge

Development Environment

Introduction

The development environment consists in a docker container that mounts your local copy of the uxbox souce code directory tree and executes a tmux inside the container in order to facilitate execute multiple processes inside.

System requirements

You should have docker installed in your system in order to set up properly the uxbox development enviroment.

In debian like linux distributions you can install it executing:

sudo apt-get install docker

Build the docker image

In order to build the docker image, you should clone uxbox-docker repository:

git clone git@github.com:uxbox/uxbox-docker.git

And build the image executing that:

cd uxbox-docker
sudo docker build --rm=true -t uxbox .

Start the docker image

The docker development environment consists in a tmux executed inside the docker container giving you the ability to execute multiple processes like one virtual machine.

Requires a minimum knowledge of tmux usage in order to use that development environment.

For start it, staying in this repository, execte:

./scripts/docker

This command will start a new named container, if you stops it and starts again the data is conserved because the same container will be resumed again.

First steps inside

Now having the the container running and tmux open inside the container, you are free to execute any commands and open many shells as you want. The basic frontend development requires at least two shells.

In the first shell (the defaul one) execute:

npm run watch

That command will launch the gulp process that compiles sass and template file and will keep watching for recomplie the sass files when they are changed.

For create a new shell just press the following key shortcut: Ctr+b c.

Once the new shell is created, execute the clojurescript compiler process:

npm run figwheel

You can use Ctrl+b w for switch between the existing shells and Ctrl+b & for kill the current shell.

Other topics

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