From d706abcbf1cca78de7f6484164e5e819f77472cd Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Fri, 7 Feb 2014 09:43:14 -0500 Subject: [PATCH] Add README to static/style to document requirements for building galaxy styles. --- static/style/README | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 static/style/README diff --git a/static/style/README b/static/style/README new file mode 100644 index 00000000000..d9ad18c4dda --- /dev/null +++ b/static/style/README @@ -0,0 +1,26 @@ +GALAXY STYLE BUILDING + +Requirements: +node.js http://nodejs.org +grunt http://gruntjs.com +phantomjs http://phantomjs.org + *phantomjs can be replaced with other libraries if you know what you're + doing (it's used as an engine for sprite building), but it's the easiest to + get up and running. + +After node, grunt, and phantomjs are all installed (and on your path): + + 1: navigate to the /static/style directory (where this file is) + 2: execute 'npm install' + 3: execute 'grunt' + +The 'npm install' command will install the required modules for building galaxy +into the node_modules directory here. If phantomjs isn't correctly installed +and on your path prior to running 'npm install', you'll see this error message: + + Warning: Sorry, no spritesmith engine could be loaded for your machine. + Please be sure you have installed canvas or gm. Use --force to continue. + +If this happens, you'll need to rerun 'npm install' after 1) ensuring phantomjs +is on your path and 2) removing the local node_modules directory (rm -rf +node_modules).