Skip to content

Commit

Permalink
define Handsontable as Bower dependency; upgrade Handsontable to 0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Jun 12, 2013
1 parent 3b3db49 commit c1a9bc9
Show file tree
Hide file tree
Showing 302 changed files with 118,390 additions and 1,665 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Head

Other:
- define Handsontable as Bower dependency
- upgrade Handsontable to 0.9.4

## 0.3.9 (May 15, 2012)

Bugfix:
Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ module.exports = function (grunt) {
src: [
'src/ie-shim.js',
'src/angular-ui-handsontable.js',
'src/3rdparty/handsontable/jquery.handsontable.full.js'
'components/handsontable/dist/jquery.handsontable.full.js'
],
dest: 'dist/angular-ui-handsontable.full.js'
},
full_css: {
src: [
'src/3rdparty/handsontable/jquery.handsontable.full.css'
'components/handsontable/dist/jquery.handsontable.full.css'
],
dest: 'dist/angular-ui-handsontable.full.css'
}
Expand Down
2 changes: 2 additions & 0 deletions components/handsontable/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=crlf
5 changes: 5 additions & 0 deletions components/handsontable/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.idea
_SpecRunner.html
.grunt

9 changes: 9 additions & 0 deletions components/handsontable/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js

node_js:
- "0.8"

before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "npm install -g grunt-cli"
582 changes: 582 additions & 0 deletions components/handsontable/CHANGELOG.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions components/handsontable/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing to Handsontable

Your contributions to the project are very welcome. If you would like to fix a bug or propose a new feature, you can submit a Pull Request.

To help us merge your Pull Request, please make sure you follow these points:

1. Describe the problem in the Pull Request description (of course you would do it, why do I mention that?)
2. Please make your fix on a separate branch. This makes merging much easier.
3. Do not edit files `jquery.handsontable.js`, `jquery.handsontable.css`, `jquery.handsontable.full.js`, `jquery.handsontable.full.css`. Instead, try to edit files inside the `src/` directory and then use `grunt` to make a build. More information about this on wiki page [Building](https://github.com/warpech/jquery-handsontable/wiki/Building).
4. Very important: For any change that you make, **please try to also add a test case(s)** in `tests/jasmine/spec/` or `src/3rdparty/walkontable/test/jasmine/spec/`. This helps us understand the issue and make sure that it will stay fixed forever.

Thank you for your commitment!
214 changes: 214 additions & 0 deletions components/handsontable/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
/**
* This file is used to build Handsontable from `src/*`
*
* Installation:
* 1. Install Grunt CLI (`npm install -g grunt-cli`)
* 1. Install Grunt 0.4.0 and other dependencies (`npm install`)
*
* Build:
* Execute `grunt` from root directory of this directory (where Gruntfile.js is)
* To execute automatically after each change, execute `grunt --force default watch`
* To execute build followed by the test run, execute `grunt test`
*
* Result:
* building Handsontable will create files:
* - dist/jquery.handsontable.js
* - dist/jquery.handsontable.css
* - dist/jquery.handsontable.full.js
* - dist/jquery.handsontable.full.css
*
* See http://gruntjs.com/getting-started for more information about Grunt
*/
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
src: [
'tmp/core.js',
'src/focusCatcher.js',
'src/tableView.js',
'src/helpers.js',
'src/fillHandle.js',
'src/undoRedo.js',
'src/selectionPoint.js',

'src/renderers/textRenderer.js',
'src/renderers/autocompleteRenderer.js',
'src/renderers/checkboxRenderer.js',
'src/renderers/numericRenderer.js',

'src/editors/textEditor.js',
'src/editors/autocompleteEditor.js',
'src/editors/checkboxEditor.js',
'src/editors/dateEditor.js',
'src/editors/handsontableEditor.js',

'src/cellTypes.js',

'src/pluginHooks.js',
'src/plugins/autoColumnSize.js',
'src/plugins/columnSorting.js',
'src/plugins/contextMenu.js',
'src/plugins/legacy.js',
'src/plugins/manualColumnMove.js',
'src/plugins/manualColumnResize.js',
'src/plugins/observeChanges.js',

'src/3rdparty/jquery.autoresize.js',
'src/3rdparty/sheetclip.js',
'src/3rdparty/copypaste.js'
],
walkontable: [
'src/3rdparty/walkontable/src/*.js',
'src/3rdparty/walkontable/src/3rdparty/*.js'
],
vendor: [
'lib/bootstrap-typeahead.js',
'lib/numeral.js',
'lib/jQuery-contextMenu/jquery.contextMenu.js'
// seems to have no effect when turned off on contextmenu.html
//'lib/jQuery-contextMenu/jquery.ui.position.js'
]
},

concat: {
dist: {
files: {
'dist/jquery.handsontable.js': [
'tmp/intro.js',
'<%= meta.src %>',
'<%= meta.walkontable %>',
'src/outro.js'
]
}
},
full_js: {
files: {
'dist/jquery.handsontable.full.js': [
'dist/jquery.handsontable.js',
'<%= meta.vendor %>'
]
}
},
full_css: {
files: {
'dist/jquery.handsontable.full.css': [
'dist/jquery.handsontable.css',
'lib/jQuery-contextMenu/jquery.contextMenu.css'
]
}
},
wc: {
files: {
'dist_wc/x-handsontable/jquery-2.min.js': [
'lib/jquery-2.min.js'
],
'dist_wc/x-handsontable/numeral.de-de.js': [
'lib/numeral.de-de.js'
],
'dist_wc/x-handsontable/jquery.handsontable.full.js': [
'dist/jquery.handsontable.full.js'
],
'dist_wc/x-handsontable/jquery.handsontable.full.css': [
'dist/jquery.handsontable.full.css'
]
}
}
},

watch: {
files: [
'src/**/*.js',
'src/**/*.css',
'src/**/*.html',
'lib/**/*.js',
'lib/**/*.css'
],
tasks: ['default']
},

clean: {
dist: ['tmp']
},

replace: {
dist: {
options: {
variables: {
version: '<%= pkg.version %>',
timestamp: '<%= (new Date()).toString() %>'
}
},
files: {
'tmp/intro.js': 'src/intro.js',
'tmp/core.js': 'src/core.js',
'dist/jquery.handsontable.css': 'src/css/jquery.handsontable.css'
}
},
wc: {
options: {
variables: {
controller: '<%= grunt.file.read("src/wc/x-handsontable-controller.js") %>'
}
},
files: {
'dist_wc/x-handsontable.html': 'src/wc/x-handsontable.html'
}
}
},
jasmine: {
handsontable: {
src: [
'lib/jquery.min.js',
'dist/jquery.handsontable.js',
'lib/bootstrap-typeahead.js',
'lib/numeral.js',
'lib/jQuery-contextMenu/jquery.contextMenu.js',
'test/jasmine/spec/SpecHelper.js',
'demo/js/backbone/lodash.underscore.js',
'demo/js/backbone/backbone.js',
'demo/js/backbone/backbone-relational/backbone-relational.js'
],
options: {
specs: [
'test/jasmine/spec/*Spec.js',
'test/jasmine/spec/*/*Spec.js'
],
styles: [
'test/jasmine/css/SpecRunner.css',
'dist/jquery.handsontable.css',
'lib/jQuery-contextMenu/jquery.contextMenu.css'
]
}
},
walkontable: {
src: [
'lib/jquery.min.js',
'src/3rdparty/walkontable/src/*.js',
'src/3rdparty/walkontable/src/3rdparty/*.js',
'src/3rdparty/walkontable/test/jasmine/SpecHelper.js'
],
options: {
specs: [
'src/3rdparty/walkontable/test/jasmine/spec/*.spec.js'
],
styles: [
'src/3rdparty/walkontable/css/walkontable.css'
]
}
}
}
});

// Default task.
grunt.registerTask('default', ['replace:dist', 'concat', 'replace:wc', 'clean']);
grunt.registerTask('test', ['default', 'jasmine']);
grunt.registerTask('test:handsontable', ['default', 'jasmine:handsontable']);
grunt.registerTask('test:walkontable', ['default', 'jasmine:walkontable']);

grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine');
};
22 changes: 22 additions & 0 deletions components/handsontable/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(The MIT License)

Copyright (c) 2012 Marcin Warpechowski <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit c1a9bc9

Please sign in to comment.