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

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