Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit 18206eb

Browse files
author
Rusty Green
committed
Updated grunt file to output combined css
1 parent 9ba1a17 commit 18206eb

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

Gruntfile.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function (grunt) {
114114
}
115115
]
116116
},
117-
up: '<%= yeoman.dist %>/modules',
117+
up: ['<%= yeoman.dist %>/modules', '<%= yeoman.dist %>/styles'],
118118
server: '.tmp'
119119
},
120120
// coffee: {
@@ -183,19 +183,18 @@ module.exports = function (grunt) {
183183
// ]
184184
// }
185185
// },
186-
// cssmin: {
187-
// // By default, your `index.html` <!-- Usemin Block --> will take care of
188-
// // minification. This option is pre-configured if you do not wish to use
189-
// // Usemin blocks.
190-
// dist: {
191-
// files: {
192-
// '<%= yeoman.dist %>/styles/main.css': [
193-
// '.tmp/styles/**/*.css',
194-
// '<%= yeoman.app %>/styles/**/*.css'
195-
// ]
196-
// }
197-
// }
198-
// },
186+
cssmin: {
187+
// By default, your `index.html` <!-- Usemin Block --> will take care of
188+
// minification. This option is pre-configured if you do not wish to use
189+
// Usemin blocks.
190+
dist: {
191+
files: {
192+
'<%= yeoman.dist %>/angular-flickr.min.css': [
193+
'<%= yeoman.dist %>/styles/**/*.css'
194+
]
195+
}
196+
}
197+
},
199198
// htmlmin: {
200199
// dist: {
201200
// options: {
@@ -286,7 +285,8 @@ module.exports = function (grunt) {
286285
copy: {
287286
main: {
288287
files: [
289-
{expand: true, src: ['<%= yeoman.app %>/**/*'], dest: '<%= yeoman.dist %>', filter: 'isFile'} // includes files in path
288+
{expand: true, src: ['<%= yeoman.app %>/**/*'], dest: '<%= yeoman.dist %>'}, // includes files in path
289+
{expand: true, src: ['<%= yeoman.app %>/../styles/**/*'], dest: '<%= yeoman.dist %>'} // includes files in path
290290
]
291291
}
292292
},
@@ -330,7 +330,7 @@ module.exports = function (grunt) {
330330
'copy',
331331
// 'cdnify',
332332
'ngmin',
333-
// 'cssmin',
333+
'cssmin',
334334
'uglify',
335335
'clean:up'
336336
// 'rev',

dist/angular-flickr.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
<link rel="stylesheet" href="styles/css/bootstrap.css">
1919
<link rel="stylesheet" href="styles/css/bootstrap-glyphicons.css">
20-
<link rel="stylesheet" href="../styles/animate.css">
21-
<link rel="stylesheet" href="../styles/loading.css">
22-
<link rel="stylesheet" href="../styles/modules.css">
20+
<!--<link rel="stylesheet" href="../styles/animate.css">-->
21+
<!--<link rel="stylesheet" href="../styles/loading.css">-->
22+
<!--<link rel="stylesheet" href="../styles/modules.css">-->
23+
<link rel="stylesheet" href="https://rawgithub.com/rustygreen/angular-flickr/master/dist/angular-flickr.min.js">
2324
</head>
2425
<body ng-app="flickrApp" class="ng-cloak">
2526
<!--[if lt IE 7]>
@@ -34,6 +35,7 @@
3435
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
3536
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular-resource.min.js"></script>
3637
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular-mobile.min.js"></script>
38+
<script src="https://rawgithub.com/rustygreen/angular-flickr/master/dist/angular-flickr.min.js"></script>
3739

3840
<!--<script src="../modules/flickr.js"></script>-->
3941
<!--<script src="../modules/services/flickrLoading.js"></script>-->
@@ -47,8 +49,6 @@
4749
<!--<script src="../modules/directives/photoset/photosetSlideshow.js"></script>-->
4850
<!--<script src="../modules/directives/photoset/photosetPanel.js"></script>-->
4951

50-
<script src="../dist/angular-flickr.min.js"></script>
51-
5252
<script src="scripts/app.js"></script>
5353
<script src="scripts/controllers/main.js"></script>
5454

0 commit comments

Comments
 (0)