Skip to content

Commit 1f50d67

Browse files
committed
improve build and update to angular-dashboard-framework 0.8.0
1 parent 7104398 commit 1f50d67

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"description": "Random message widget for the angular-dashboard-framework",
2323
"dependencies": {
24-
"angular-dashboard-framework": "0.7.0"
24+
"angular-dashboard-framework": "0.8.0"
2525
},
2626
"devDependencies": {
2727
"angular-local-storage": "0.1.5"

gulpfile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ gulp.task('js', function() {
8787
.pipe($.if('*.html', $.minifyHtml()))
8888
.pipe($.if('*.html', $.angularTemplatecache(pkg.name + '.tpl.js', templateOptions)))
8989
.pipe($.angularFilesort())
90+
.pipe($.if('*.js', $.replace(/'use strict';/g, '')))
9091
.pipe($.concat(pkg.name + '.js'))
92+
.pipe($.headerfooter('(function(window, undefined) {\'use strict\';\n', '})(window);'))
93+
.pipe($.ngAnnotate(annotateOptions))
9194
.pipe(gulp.dest('dist'))
9295
.pipe($.rename(pkg.name + '.min.js'))
93-
.pipe($.ngAnnotate(annotateOptions))
9496
.pipe($.uglify())
9597
.pipe(gulp.dest('dist'));
9698
});

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"gulp-concat": "^2.5.2",
1717
"gulp-connect": "~2.2.0",
1818
"gulp-csslint": "^0.1.5",
19+
"gulp-headerfooter": "^1.0.3",
1920
"gulp-if": "^1.2.5",
2021
"gulp-inject": "^1.2.0",
2122
"gulp-jshint": "^1.9.4",
@@ -25,6 +26,7 @@
2526
"gulp-minify-html": "^1.0.1",
2627
"gulp-ng-annotate": "^0.5.2",
2728
"gulp-rename": "^1.2.0",
29+
"gulp-replace": "^0.5.3",
2830
"ng-annotate-adf-plugin": "^0.1.2",
2931
"gulp-uglify": "^1.1.0",
3032
"jshint-stylish": "^1.0.1",

sample/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313

1414
<!-- inject:css -->
1515
<!-- endinject -->
16+
17+
<!-- inlince css -->
18+
<style type="text/css">
19+
body {
20+
padding-top: 60px;
21+
}
22+
</style>
1623
</head>
1724

1825
<body ng-app="adfWidgetSample">

0 commit comments

Comments
 (0)