grunt: disallow pow and poa at the same time

pull/1/head
5chdn 6 years ago
parent f94779f132
commit 9650f8eb85
No known key found for this signature in database
GPG Key ID: 1A40871B597F5F80
  1. 41
      Gruntfile.js
  2. 0
      src/css/animation.css
  3. 0
      src/css/bootstrap.min.css
  4. 0
      src/css/minimal-icons-codes.css
  5. 0
      src/css/minimal-icons-embedded.css
  6. 0
      src/css/minimal-icons-ie7-codes.css
  7. 0
      src/css/minimal-icons-ie7.css
  8. 0
      src/css/minimal-icons.css
  9. 0
      src/css/style.css
  10. 0
      src/css/toastr.min.css
  11. 0
      src/fonts/Simple-Line-Icons.ttf
  12. 0
      src/fonts/SourceSansPro-Bold.woff2
  13. 0
      src/fonts/SourceSansPro-ExtraLight.woff2
  14. 0
      src/fonts/SourceSansPro-Light.woff2
  15. 0
      src/fonts/SourceSansPro-Regular.woff2
  16. 0
      src/fonts/SourceSansPro-SemiBold.woff2
  17. 0
      src/fonts/minimal-icons.eot
  18. 0
      src/fonts/minimal-icons.svg
  19. 0
      src/fonts/minimal-icons.ttf
  20. 0
      src/fonts/minimal-icons.woff
  21. 0
      src/images/favicon.ico
  22. 0
      src/images/favicon.png
  23. 0
      src/images/screenshot-v0.0.1.jpg
  24. 0
      src/images/screenshot-v0.0.2.jpg
  25. 0
      src/images/screenshot-v0.0.5.jpg
  26. 0
      src/images/screenshot-v0.1.0.png
  27. 0
      src/images/screenshot.jpg
  28. 0
      src/js/app.js
  29. 0
      src/js/controllers.js
  30. 0
      src/js/directives.js
  31. 0
      src/js/filters.js
  32. 0
      src/js/lib/angular.js
  33. 0
      src/js/lib/angular.min.js
  34. 0
      src/js/lib/angular.min.js.map
  35. 0
      src/js/lib/bootstrap.min.js
  36. 0
      src/js/lib/d3.js
  37. 0
      src/js/lib/d3.min.js
  38. 0
      src/js/lib/d3.tip.min.js
  39. 0
      src/js/lib/datamaps.min.js
  40. 0
      src/js/lib/jquery-1.11.3.js
  41. 0
      src/js/lib/jquery-1.11.3.min.js
  42. 0
      src/js/lib/jquery-1.11.3.min.js.map
  43. 0
      src/js/lib/jquery.sparkline.js
  44. 0
      src/js/lib/jquery.sparkline.min.js
  45. 0
      src/js/lib/lodash.js
  46. 0
      src/js/lib/lodash.min.js
  47. 0
      src/js/lib/moment.en.min.js
  48. 0
      src/js/lib/moment.js
  49. 0
      src/js/lib/moment.min.js
  50. 0
      src/js/lib/ngStorage.min.js
  51. 0
      src/js/lib/primus.min.js
  52. 0
      src/js/lib/toastr.min.js
  53. 0
      src/js/lib/topojson.min.js
  54. 0
      src/js/script.js
  55. 0
      src/views/error.jade
  56. 0
      src/views/index.jade
  57. 0
      src/views/layout.jade

@ -34,7 +34,7 @@ var styles = [
]; ];
var src_pow = 'src/pow/'; var src_pow = 'src/pow/';
var dest_pow = 'dist/pow/'; var dest_pow = 'dist/';
var styles_pow = [ var styles_pow = [
'bootstrap.min.css', 'bootstrap.min.css',
@ -50,9 +50,9 @@ module.exports = function(grunt) {
build: ['dist'], build: ['dist'],
cleanup_js: ['dist/js/*.*', '!dist/js/netstats.*'], cleanup_js: ['dist/js/*.*', '!dist/js/netstats.*'],
cleanup_css: ['dist/css/*.css', '!dist/css/netstats.*.css'], cleanup_css: ['dist/css/*.css', '!dist/css/netstats.*.css'],
build_pow: ['dist/pow'], build_pow: ['dist'],
cleanup_js_pow: ['dist/pow/js/*.*', '!dist/pow/js/netstats.*'], cleanup_js_pow: ['dist/js/*.*', '!dist/js/netstats.*'],
cleanup_css_pow: ['dist/pow/css/*.css', '!dist/pow/css/netstats.*.css'] cleanup_css_pow: ['dist/css/*.css', '!dist/css/netstats.*.css']
}, },
jade: { jade: {
build: { build: {
@ -74,7 +74,7 @@ module.exports = function(grunt) {
} }
}, },
files: { files: {
'dist/pow/index.html': 'src/pow/views/index.jade' 'dist/index.html': 'src/pow/views/index.jade'
} }
} }
}, },
@ -116,28 +116,28 @@ module.exports = function(grunt) {
expand: true, expand: true,
cwd: 'src/pow/fonts/', cwd: 'src/pow/fonts/',
src: ['minimal-*.*'], src: ['minimal-*.*'],
dest: 'dist/pow/fonts/', dest: 'dist/fonts/',
filter: 'isFile' filter: 'isFile'
}, },
{ {
expand: true, expand: true,
cwd: 'src/pow/images/', cwd: 'src/pow/images/',
src: ['*.ico'], src: ['*.ico'],
dest: 'dist/pow/', dest: 'dist/',
filter: 'isFile' filter: 'isFile'
}, },
{ {
expand: true, expand: true,
cwd: 'src/pow/css/', cwd: 'src/pow/css/',
src: styles_pow, src: styles_pow,
dest: 'dist/pow/css/', dest: 'dist/css/',
filter: 'isFile' filter: 'isFile'
}, },
{ {
expand: true, expand: true,
cwd: 'src/pow/js/lib/', cwd: 'src/pow/js/lib/',
src: ['*.*'], src: ['*.*'],
dest: 'dist/pow/js/lib' dest: 'dist/js/lib'
} }
] ]
} }
@ -154,9 +154,9 @@ module.exports = function(grunt) {
build_pow: { build_pow: {
files: [{ files: [{
expand: true, expand: true,
cwd: 'dist/pow/css', cwd: 'dist/css',
src: ['*.css', '!*.min.css'], src: ['*.css', '!*.min.css'],
dest: 'dist/pow/css/' dest: 'dist/css/'
}] }]
} }
}, },
@ -195,31 +195,31 @@ module.exports = function(grunt) {
options: { options: {
sourceMap: false, sourceMap: false,
sourceMapIncludeSources: true, sourceMapIncludeSources: true,
sourceMapIn: ['dist/pow/js/lib/*.map'] sourceMapIn: ['dist/js/lib/*.map']
}, },
src: vendor, src: vendor,
dest: 'dist/pow/js/vendor.min.js' dest: 'dist/js/vendor.min.js'
}, },
scripts : { scripts : {
options: { options: {
separator: ';\n', separator: ';\n',
}, },
src: scripts, src: scripts,
dest: 'dist/pow/js/app.js' dest: 'dist/js/app.js'
}, },
netstats_pow: { netstats_pow: {
options: { options: {
sourceMap: false, sourceMap: false,
sourceMapIncludeSources: true, sourceMapIncludeSources: true,
sourceMapIn: ['dist/pow/js/vendor.min.js.map', 'dist/pow/js/app.min.js.map'] sourceMapIn: ['dist/js/vendor.min.js.map', 'dist/js/app.min.js.map']
}, },
src: ['<%= concat.vendor.dest %>', '<%= uglify.app_pow.dest %>'], src: ['<%= concat.vendor.dest %>', '<%= uglify.app_pow.dest %>'],
dest: 'dist/pow/js/netstats.min.js', dest: 'dist/js/netstats.min.js',
nonull: true, nonull: true,
}, },
css_pow: { css_pow: {
src: ['dist/pow/css/*.min.css', 'dist/pow/css/*.css'], src: ['dist/css/*.min.css', 'dist/css/*.css'],
dest: 'dist/pow/css/netstats.min.css' dest: 'dist/css/netstats.min.css'
} }
}, },
uglify: { uglify: {
@ -238,7 +238,7 @@ module.exports = function(grunt) {
sourceMap: false, sourceMap: false,
sourceMapIncludeSources: true sourceMapIncludeSources: true
}, },
dest: 'dist/pow/js/app.min.js', dest: 'dist/js/app.min.js',
src: ['<%= concat.scripts.dest %>'] src: ['<%= concat.scripts.dest %>']
} }
} }
@ -253,6 +253,5 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['clean:build', 'clean:cleanup_js', 'clean:cleanup_css', 'jade:build', 'copy:build', 'cssmin:build', 'concat:vendor', 'concat:scripts', 'uglify:app', 'concat:netstats', 'concat:css', 'clean:cleanup_js', 'clean:cleanup_css']); grunt.registerTask('default', ['clean:build', 'clean:cleanup_js', 'clean:cleanup_css', 'jade:build', 'copy:build', 'cssmin:build', 'concat:vendor', 'concat:scripts', 'uglify:app', 'concat:netstats', 'concat:css', 'clean:cleanup_js', 'clean:cleanup_css']);
grunt.registerTask('pow', ['clean:build_pow', 'clean:cleanup_js_pow', 'clean:cleanup_css_pow', 'jade:build_pow', 'copy:build_pow', 'cssmin:build_pow', 'concat:vendor', 'concat:scripts', 'uglify:app_pow', 'concat:netstats_pow', 'concat:css_pow', 'clean:cleanup_js_pow', 'clean:cleanup_css_pow']); grunt.registerTask('pow', ['clean:build_pow', 'clean:cleanup_js_pow', 'clean:cleanup_css_pow', 'jade:build_pow', 'copy:build_pow', 'cssmin:build_pow', 'concat:vendor', 'concat:scripts', 'uglify:app_pow', 'concat:netstats_pow', 'concat:css_pow', 'clean:cleanup_js_pow', 'clean:cleanup_css_pow']);
grunt.registerTask('build', 'default'); grunt.registerTask('poa', 'default');
grunt.registerTask('all', ['default', 'pow']);
}; };

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

Before

Width:  |  Height:  |  Size: 722 KiB

After

Width:  |  Height:  |  Size: 722 KiB

Before

Width:  |  Height:  |  Size: 881 KiB

After

Width:  |  Height:  |  Size: 881 KiB

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 213 KiB

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Loading…
Cancel
Save