./dist/handsontable.full.css(more info about dist packages here)
It is advised that you never modify the above-mentioned files but rather make changes in the
directory and then run a proper build. This is especially important if you want to contribute
your changes back to Handsontable using a pull request.
Currently, the following tasks are available for building Handsontable:
grunt- runs a single build
grunt build- runs a single build but without code quality checking
grunt jshint- quality-checking
grunt watch- watches for changes in source directory and runs a build when a change is observed. For faster rebuild when a change is observed watcher triggers task which builds files without minify.
grunt --force default watch- runs a single build and then watches for changes
grunt test- runs a single build followed by Jasmine test suite executed in PhantomJS.
You can create your own tasks by editing
Running your first build
To run your own build, follow the below steps:
- Install Node.js (available for Windows, Mac and Linux). This will also install NPM (Node Package Manager) that handles all the dependencies. Handsontable was tested with Node.js >=0.12.* and npm >=2.*.
- Clone the Handsontable repository on your local disk and go to the directory where you cloned it.
- Install Grunt CLI as a global NPM module (
npm install -g grunt-cli). More details can be found on Grunt - Getting Started.
npm installto download all the dependencies defined in
package.json. The dependencies will be downloaded into a new directory
node_modules, that is ignored by Git.
gruntto make your first build!
If all is working correctly, you should see something like this:
Creating a custom package
This process lets you build a custom package containing only the core engine and selected plugins. It's super useful when you need only a fraction of the spreadsheet's overall functionality or when you have already built a custom plugin and want to incorporate it into the base code. For this purpose we prepared a tool called hot-builder. To install hot-builder globally, run:
npm install hot-builder -g
Then to build Handsontable run:
hot-builder build --output-dir hot-dist
Select all necessary plugins in your terminal and press Enter. If it works correctly, you should see something like this:
And after selecting modules you should see something like this:
For further details, check out the project page.