Skip to content

Commit 90cb44b

Browse files
committed
Merge pull request craigmdennis#10 from craigmdennis/v1.1
2 parents f487573 + 157303b commit 90cb44b

18 files changed

+599
-156
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "src/bower_components"
3+
}

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# editorconfig.org
1+
# http://editorconfig.org
22
root = true
33

44
[*]
@@ -9,3 +9,6 @@ end_of_line = lf
99
charset = utf-8
1010
trim_trailing_whitespace = true
1111
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules
2-
.tmp
3-
.sass-cache
42
bower_components
5-
3+
/.tmp
4+
/test
65
.DS_Store
7-
.sublime-workspace

.jshintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"node": true,
3+
"browser": true,
4+
"esnext": true,
5+
"bitwise": true,
6+
"camelcase": true,
7+
"curly": true,
8+
"eqeqeq": true,
9+
"immed": true,
10+
"indent": 2,
11+
"latedef": true,
12+
"newcap": true,
13+
"noarg": true,
14+
"quotmark": "single",
15+
"regexp": true,
16+
"undef": true,
17+
"unused": true,
18+
"strict": true,
19+
"trailing": true,
20+
"smarttabs": true
21+
}

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- '0.10'
4+
- '0.8'

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<a name="1.1.0"></a>
2+
## 1.1.0 (2014-05-21)
3+
4+
5+
#### Features
6+
7+
* add the ability to use animation loops ([b477632b](https://github.com/craigmdennis/animatecss/commit/b477632bc87f6d96d7ed2fd0ced0aec296c35952))
8+
9+
10+
#### Breaking Changes
11+
12+
* Delay can no longer be specified in the plugin shorthand ([89e7da1a](https://github.com/craigmdennis/animatecss/commit/89e7da1af66ba58c0078b426353b281b227c6844))
13+
14+
Before:
15+
16+
`$('#your-id').animateCSS('fadeIn', 2000);`
17+
18+
After:
19+
20+
`$('#your-id').animateCSS('fadeIn', {delay:2000});`

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing
2+
3+
## Important notes
4+
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!
5+
6+
### Code style
7+
Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.**
8+
9+
## Modifying the code
10+
First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed.
11+
12+
Test that Grunt's CLI and Bower are installed by running `grunt --version` and `bower --version`. If the commands aren't found, run `npm install -g grunt-cli bower`. For more information about installing the tools, see the [getting started with Grunt guide](http://gruntjs.com/getting-started) or [bower.io](http://bower.io/) respectively.
13+
14+
1. Fork and clone the repo.
15+
1. Run `npm install` to install all build dependencies (including Grunt).
16+
1. Run `bower install` to install the front-end dependencies.
17+
1. Run `grunt` to grunt this project.
18+
19+
Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken.
20+
21+
## Submitting pull requests
22+
23+
1. Create a new branch, please don't work in your `master` branch directly.
24+
1. Fix stuff.
25+
1. Update the documentation to reflect any changes.
26+
1. Push to your fork and submit a pull request.

Gruntfile.js

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
'use strict';
2+
3+
module.exports = function (grunt) {
4+
// Load all grunt tasks
5+
require('load-grunt-tasks')(grunt);
6+
// Show elapsed time at the end
7+
require('time-grunt')(grunt);
8+
9+
// Project configuration.
10+
grunt.initConfig({
11+
// Metadata.
12+
pkg: grunt.file.readJSON('package.json'),
13+
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
14+
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
15+
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
16+
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
17+
' Licensed MIT */\n\n',
18+
// Task configuration.
19+
clean: {
20+
files: ['dist', '.tmp']
21+
},
22+
23+
concat: {
24+
options: {
25+
banner: '<%= banner %>',
26+
stripBanners: true
27+
},
28+
dist: {
29+
src: ['.tmp/<%= pkg.name %>.js'],
30+
dest: 'dist/jquery.<%= pkg.name %>.js'
31+
}
32+
},
33+
34+
uglify: {
35+
options: {
36+
banner: '<%= banner %>'
37+
},
38+
dist: {
39+
src: '<%= concat.dist.dest %>',
40+
dest: 'dist/jquery.<%= pkg.name %>.min.js'
41+
}
42+
},
43+
44+
jade: {
45+
options: {
46+
pretty: true
47+
},
48+
dist: {
49+
files: [{
50+
expand: true,
51+
cwd: 'test/',
52+
dest: '.tmp/',
53+
src: '*.jade',
54+
ext: '.html'
55+
}]
56+
},
57+
},
58+
59+
coffee: {
60+
dist: {
61+
files: [{
62+
expand: true,
63+
cwd: 'src',
64+
src: '{,*/}*.coffee',
65+
dest: '.tmp/',
66+
ext: '.js'
67+
}]
68+
}
69+
},
70+
71+
jshint: {
72+
options: {
73+
reporter: require('jshint-stylish')
74+
},
75+
gruntfile: {
76+
options: {
77+
jshintrc: '.jshintrc'
78+
},
79+
src: 'Gruntfile.js'
80+
},
81+
dist: {
82+
options: {
83+
jshintrc: 'src/.jshintrc'
84+
},
85+
src: ['.tmp/{,*/}*.js']
86+
}
87+
},
88+
89+
watch: {
90+
gruntfile: {
91+
files: '<%= jshint.gruntfile.src %>',
92+
tasks: ['jshint:gruntfile']
93+
},
94+
jade: {
95+
files: ['test/*.jade'],
96+
tasks: ['jade']
97+
},
98+
coffee: {
99+
files: ['src/{,*/}*.coffee'],
100+
tasks: ['coffee']
101+
},
102+
livereload: {
103+
options: {
104+
livereload: '<%= connect.options.livereload %>'
105+
},
106+
files: [
107+
'.tmp/{,*/}*.*',
108+
]
109+
}
110+
},
111+
112+
bump: {
113+
options: {
114+
files: ['package.json', 'bower.json', '<%= pkg.name %>.jquery.json'],
115+
push: true,
116+
pushTo: 'origin',
117+
createTag: true,
118+
tagName: 'v%VERSION%',
119+
tagMessage: 'Version %VERSION%',
120+
commitFiles: '<%= bump.options.files %>',
121+
commitMessage: 'Bumped version to v%VERSION%'
122+
}
123+
},
124+
125+
changelog: {
126+
options: {
127+
editor: 'atom -w'
128+
}
129+
},
130+
131+
connect: {
132+
options: {
133+
hostname: '0.0.0.0',
134+
livereload: 35729,
135+
port: 9000
136+
},
137+
livereload: {
138+
options: {
139+
open: true,
140+
base: [
141+
'.tmp/',
142+
'src/'
143+
]
144+
}
145+
},
146+
}
147+
});
148+
149+
// Default task.
150+
grunt.registerTask('default', [
151+
'clean',
152+
'compile',
153+
'jshint:dist',
154+
'concat',
155+
'uglify',
156+
]);
157+
158+
// Compile Jade and CoffeeScript
159+
grunt.registerTask('compile', [
160+
'newer:coffee',
161+
'newer:jade'
162+
]);
163+
164+
// Server task
165+
grunt.registerTask('server', function () {
166+
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
167+
grunt.task.run(['serve']);
168+
});
169+
170+
grunt.registerTask('serve', [
171+
'compile', // jade, coffeescript
172+
'connect',
173+
'watch'
174+
]);
175+
};

0 commit comments

Comments
 (0)