Skip to content

Commit

Permalink
add gruntfile support
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Apr 21, 2013
1 parent 483baac commit 926aa0c
Show file tree
Hide file tree
Showing 15 changed files with 902 additions and 367 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
*.DS_Store
15 changes: 15 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"sub": true,
"undef": true,
"unused": true,
"boss": true,
"eqnull": true,
"node": true,
"es5": true
}
27 changes: 27 additions & 0 deletions Ascensor.js.jquery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Ascensor.js",
"title": "Ascensor.js",
"description": "The best jQuery plugin ever.",
"version": "1.5.6",
"homepage": "http://kirkas.ch/ascensor/",
"author": {
"name": "léo galley",
"email": "[email protected]",
"url": "http://kirkas.ch/"
},
"repository": {
"type": "git",
"url": "[email protected]:kirkas/Ascensor.js.git"
},
"bugs": "https://github.com/kirkas/Ascensor.js/issues",
"licenses": [
{
"type": "MIT",
"url": "http://kirkas.ch/ascensor//blob/master/LICENSE-MIT"
}
],
"dependencies": {
"jquery": "*"
},
"keywords": []
}
66 changes: 66 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

projectOptions:{
src:"src",
dist:"dist"
},

uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},

ascensor:{
options:{
beautify: true,
mangle:false,
preserveComments:true
},
src: '<%= projectOptions.src %>/jquery.ascensor.js',
dest: '<%= projectOptions.dist %>/jquery.ascensor.js'
},

ascensorstripped: {
options:{
beautify: true,
mangle:false
},
src: '<%= projectOptions.src %>/jquery.ascensor.js',
dest: '<%= projectOptions.dist %>/jquery.ascensor.stripped.js'
},

ascensormin: {
src: '<%= projectOptions.src %>/jquery.ascensor.js',
dest: '<%= projectOptions.dist %>/jquery.ascensor.min.js'
}
},

jshint: {
gruntfile: {
src:'Gruntfile.js'
},

ascensorsrc: {
src:'<%= projectOptions.src %>/jquery.ascensor.js'
}
},

clean:{
dist:{
src: ["dist/"]
}
}

});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', ['jshint']);
grunt.registerTask('build', ['clean', 'jshint', 'uglify']);

};
22 changes: 22 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2013 léo galley

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.
43 changes: 37 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
Ascensor.js
===========
# Ascensor.js

Description
-----------
Ascensor is a jquery plugin which aims to train and adapt content according to an elevator system

See the website for doc and exemple.
http://kirkas.ch/ascensor/#/Home
## Getting Started
Download the [production version][min] or the [development version][max].


[max]: https://raw.github.com/kirkas/Ascensor.js/master/dist/jquery.ascensor.js
[min]: https://raw.github.com/kirkas/Ascensor.js/master/dist/jquery.ascensor.min.js
[stripped]: https://raw.github.com/kirkas/Ascensor.js/master/dist/jquery.ascensor.stripped.js

In your web page:

```html
<div id="ascensor">
<div>Content 1</div>
<div>Content 2</div>
<div>Content 3</div>
<div>Content 4</div>
<div>Content 5</div>
<div>Content 6</div>
<div>Content 7</div>
</div>

<script src="jquery.js"></script>
<script src="jquery.ascensor.js"></script>
<script>
$('#ascensorBuilding').ascensor();
</script>
```

## Documentation
_(Coming soon)_

## Examples
_(Coming soon)_

## Release History
_(Nothing yet)_
Loading

0 comments on commit 926aa0c

Please sign in to comment.