lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.04k stars 261 forks source link

Source for board editor? #21

Closed llimllib closed 7 years ago

llimllib commented 8 years ago

Hi,

You list a board editor demo which is sweet, but the source for it is minified. Does that source exist somewhere in a readable format?

llimllib commented 8 years ago

OK, I'll answer my own question, fair enough.

Still the source should be linked. Should I open up a PR to add links to the source to the README?

llimllib commented 8 years ago

OK, I'm going to reopen this, because how the heck do you build the actual HTML page?

llimllib commented 8 years ago

Trying to build the editor js, I got a bunch of uninstalled package errors:

$ gulp --gulpfile ui/editor/gulpfile.js dev
[10:58:53] Working directory changed to ~/code/lila/ui/editor
module.js:338
    throw err;
          ^
Error: Cannot find module 'isarray'
...

Which I solved by npm install isarray (I had to do it for about 10 packages...) but eventually I get to:

Error: Cannot find module './lib/_stream_readable.js'

Which I don't know how to solve. Any idea what's going on there?

(I'm not trying to run another lichess, btw! I'd like to make a chess analysis app and use chessground as its chessboard because it's much better than the alternatives. Let me know if I'm stepping on your toes)

ornicar commented 8 years ago

run ui/build from lila root.