Skip to content

Commit 66e7a87

Browse files
committed
ready for new version
1 parent a11f53d commit 66e7a87

File tree

10 files changed

+573
-539
lines changed

10 files changed

+573
-539
lines changed

Gruntfile.js

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
/*global module, require*/
2-
(function setUp(module, require) {
1+
/*global module*/
2+
(function setUp(module) {
33
'use strict';
44

55
var banner = ['/*!',
66
' * Angular Fx v<%= pkg.version %>',
77
' *',
8+
' * <%= pkg.description %>',
9+
' *',
810
' * Released under the MIT license',
911
' * www.opensource.org/licenses/MIT',
1012
' *',
1113
' * Brought to you by 720kb.net',
1214
' *',
1315
' * <%= grunt.template.today("yyyy-mm-dd") %>',
14-
' */\n\n'].join('\n')
15-
, modRewrite = require('connect-modrewrite');
16+
' */\n\n'].join('\n');
1617

1718
module.exports = function doGrunt(grunt) {
1819

@@ -47,58 +48,46 @@
4748
'uglify': {
4849
'options': {
4950
'sourceMap': true,
50-
'sourceMapName': '<%= confs.dist %>/angular-fx.sourcemap.map',
5151
'preserveComments': false,
5252
'report': 'gzip',
5353
'banner': banner
5454
},
5555
'minifyTarget': {
5656
'files': {
57-
'<%= confs.dist %>/angular-fx.min.js': [
58-
'<%= confs.js %>/angular-fx.js'
57+
'<%= confs.dist %>/<%= pkg.name %>.min.js': [
58+
'<%= confs.js %>/<%= pkg.name %>.js'
5959
]
6060
}
6161
}
6262
},
6363
'cssmin': {
6464
'options': {
65-
'report': 'gzip',
66-
'banner': banner
65+
'report': 'gzip'
6766
},
6867
'minifyTarget': {
6968
'files': {
70-
'<%= confs.dist %>/angular-fx.min.css': [
71-
'<%= confs.css %>/angular-fx.css'
69+
'<%= confs.dist %>/<%= pkg.name %>.min.css': [
70+
'<%= confs.css %>/<%= pkg.name %>.css'
7271
]
7372
}
7473
}
7574
},
75+
'header': {
76+
'dist': {
77+
'options': {
78+
'text': banner
79+
},
80+
'files': {
81+
'<%= confs.dist %>/<%= pkg.name %>.min.css': '<%= confs.dist %>/<%= pkg.name %>.min.css'
82+
}
83+
}
84+
},
7685
'connect': {
7786
'server': {
7887
'options': {
7988
'port': '<%= confs.serverPort %>',
8089
'base': '.',
81-
'keepalive': true,
82-
'middleware': function manageMiddlewares(connect, options) {
83-
var middlewares = []
84-
, directory = options.directory || options.base[options.base.length - 1];
85-
86-
// enable Angular's HTML5 mode
87-
middlewares.push(modRewrite(['!\\.html|\\.js|\\.svg|\\.css|\\.png|\\.gif$ /index.html [L]']));
88-
89-
if (!Array.isArray(options.base)) {
90-
options.base = [options.base];
91-
}
92-
options.base.forEach(function forEachOption(base) {
93-
// Serve static files.
94-
middlewares.push(connect.static(base));
95-
});
96-
97-
// Make directory browse-able.
98-
middlewares.push(connect.directory(directory));
99-
100-
return middlewares;
101-
}
90+
'keepalive': true
10291
}
10392
}
10493
},
@@ -134,8 +123,10 @@
134123

135124
grunt.loadNpmTasks('grunt-contrib-csslint');
136125
grunt.loadNpmTasks('grunt-eslint');
126+
137127
grunt.loadNpmTasks('grunt-contrib-uglify');
138128
grunt.loadNpmTasks('grunt-contrib-cssmin');
129+
grunt.loadNpmTasks('grunt-header');
139130

140131
grunt.loadNpmTasks('grunt-concurrent');
141132
grunt.loadNpmTasks('grunt-contrib-connect');
@@ -151,7 +142,8 @@
151142
'csslint',
152143
'eslint',
153144
'cssmin',
154-
'uglify'
145+
'uglify',
146+
'header'
155147
]);
156148
};
157-
}(module, require));
149+
}(module));

Readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To use the directive, include the Angular Fx javascript and css files in your we
4242
<!DOCTYPE HTML>
4343
<html>
4444
<head>
45-
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.1/animate.min.css" rel="stylesheet" type="text/css" />
45+
<link href="bower_components/animate.css/animate.min.css" rel="stylesheet" type="text/css" />
4646
<!-- angular-fx.css goes after animate.css-->
4747
<link href="path/to/css/angular-fx.css" rel="stylesheet" type="text/css" />
4848
</head>
@@ -63,6 +63,14 @@ $ bower install angular-fx --save
6363

6464
_then load the js files in your html_
6565

66+
###Npm installation
67+
68+
```
69+
$ npm install angular-fx --save
70+
```
71+
72+
_then load the js files in your html_
73+
6674
###Add module dependency
6775

6876
Add the 720kb.fx module dependency

bower.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "angular-fx",
3-
"version": "0.0.4",
3+
"version": "1.0.0",
44
"description": "Angular CSS3 animation directives, conditional animations and effects for your elements.",
5+
"license": "MIT",
56
"authors": [
67
"Filippo Oretti <filippo.oretti@gmail.com",
78
"Dario Andrei <wouldgo84@gmail.com>"
@@ -16,7 +17,9 @@
1617
"./dist/angular-fx.min.js",
1718
"./dist/angular-fx.min.css"
1819
],
19-
"license": "MIT",
20+
"dependencies": {
21+
"animate.css": "^3.2.3"
22+
},
2023
"homepage": "http://720kb.github.io/angular-fx",
2124
"ignore": [
2225
"**/.*",

dist/angular-fx.min.css

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-fx.min.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)