A module for building Sheetsee.js
You can customize your sheetsee.js build with just the parts you want to use. If you want to just use the full version, you can grab it here at github.com/jlord/sheetsee.js.
All bundle comes with mapbox.js and handlebars.js (since both are available on NPM). Additionally you'll need to also include tabletop.js and jQuery in your HTML head like so:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.1.0/tabletop.min.js"></script>
To build your Sheetsee you'll need Node.js and NPM (the latter comes with the former in most installs) on your computer and a command line.
Download Node.js from nodejs.org/download. For most users you can just download the Mac .pkg or Windows .msi. Follow the install instructions, both include NPM. Once they're installed, proceed:
The sheetsee
(with no '.js') module is the tool for building custom Sheetsee.js builds. Install sheetsee
globally and then run it within the folder of your soon-to-be sheetsee.js project.
Install globally
npm install -g sheetsee
Run from within a project folder
sheetsee [options]
Here are the options for the different modules. If you want save the generated file as sheetsee.js then add the --save
option.
-m
or-maps
for maps-t
or-tables
for tables-c
or-charts
for charts--save
to write out the file*
* otherwise, defaults to standardout on your console which you can | pbcopy
So for instance, sheetsee -m -t --save
will build you a Sheetsee.js with the basic data functions, the map and tables sections built in and save it as a file named sheetsee.js. Running sheetsee -m -t | pbcopy
will save the output to your clipboard.