artursapek / mondrian

Web-based vector graphics editor
MIT License
1.24k stars 104 forks source link

Cannot build styles. #34

Closed Fishrock123 closed 10 years ago

Fishrock123 commented 10 years ago

cake styles blank-overrides the build css files.

It seems as if lessc wasn't added as a dependancy?

artursapek commented 10 years ago

Yeah it's a global dep. I need to not make it global so package.json can install it.

In any case, npm install -g less.

Fishrock123 commented 10 years ago

Seems like it can be installed per-project? https://github.com/less/less.js#getting-started That might not work with cake's way of executing commands, however.

Is it possible to inform the user if the command does not exist during the build?

Sorry, I'm not terribly familiar with either less or cake. :/

artursapek commented 10 years ago

Yes, it's possible. I use the command-line lessc utility to compile it, so less.js wouldn't help much. I should just change the cake styles command to use a locally-install npm package and add it to package.json.

mkly commented 10 years ago

I'm new to coffeescript so feel free to tell me if its ugly. Also, no worries if you don't feel like doing it this way. Just saw the issue and thought this project was pretty cool. Wanted to say thanks for sharing it.