README 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. These are "less" files that compile into the CSS of claro.
  2. ---------
  3. Installing and running on Windows:
  4. 1. Install node:
  5. a) Go to https://github.com/ajaxorg/node-builds, press download button, and select "download zip"
  6. b) unzip the file into C:\
  7. 2. Install less:
  8. a) Go to https://github.com/cloudhead/less.js/archives/master, press download button, and select "download zip"
  9. b) unzip the file into C:\
  10. 2. Add node and lessc environment variables:
  11. a) open Control Panel --> click System icon --> select Advanced tab --> click Environment variables button
  12. b) press "edit" on path
  13. c) depending on what directory you unzipped to and the exact filenames, you will add something like
  14. ;C:\ajaxorg-node-builds-0fcee7d\win32;C:\cloudhead-less.js-7fb09f\bin
  15. d) add new environment variable NODE_PATH with value like this (depending on exact download name):
  16. C:\cloudhead-less.js-7fb09f\lib
  17. 4. To compile all the files:
  18. C:\> cd C:\myworkspace\dijit\themes\claro
  19. C:\> node compile.js
  20. --------
  21. To install/run less version 2 on mac:
  22. 1. Install Node.js
  23. Download a built copy from https://github.com/ajaxorg/node-builds.
  24. Alternately, o to http://nodejs.org/#download (./configure, make, make install).
  25. 2. Download less from https://github.com/cloudhead/less.js/archives/master
  26. 3. Edit .bash_profile etc. to add node to your path, and lessc to NODE_PATH:
  27. export PATH=$PATH:/opt/less/bin
  28. export NODE_PATH=$NODE_PATH:/opt/less/lib
  29. To compile all the files:
  30. $ cd dijit/themes/claro
  31. $ node compile.js
  32. -------
  33. Alternately, you can install less version 1, but I'd rather not use it for checked in files
  34. since it breaks a part a lot of rules into multiple rules, causing spurious diffs.
  35. To install on a mac:
  36. $ sudo gem install less
  37. On Windows or Linux, make sure you have ruby and ruby-gems installed first.
  38. If you need help installing ruby please check out ruby-lang.org for more details.
  39. -----
  40. See http://lesscss.org/ and https://github.com/cloudhead/less.js/ for more information.