Built files from Bizgaze WebServer
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Gruntfile.js 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. pkg: grunt.file.readJSON('package.json'),
  4. qunit: {
  5. all: ['test/index.html', 'test/loaders.html'],
  6. options: {
  7. puppeteer: {
  8. headless: true,
  9. args: ['--no-sandbox', '--disable-setuid-sandbox']
  10. }
  11. }
  12. },
  13. jshint: {
  14. options: {
  15. sub: true,
  16. strict: true,
  17. newcap: false,
  18. globals: {
  19. jQuery: true
  20. }
  21. },
  22. with_overrides: {
  23. options: {
  24. strict: false
  25. },
  26. files: {
  27. src: ['i18n/*.js', 'test/tests.js']
  28. }
  29. },
  30. all: ['src/spectrum.js']
  31. },
  32. concat: {
  33. js: {
  34. src: ['src/spectrum.js', 'src/i18n/*.js'],
  35. dest: 'dist/spectrum.js',
  36. },
  37. css: {
  38. src: ['src/spectrum.css'],
  39. dest: 'dist/spectrum.css',
  40. },
  41. scss: { // Provide scss file as well see https://github.com/seballot/spectrum/issues/5
  42. src: ['src/spectrum.css'],
  43. dest: 'dist/spectrum.scss',
  44. }
  45. },
  46. uglify: {
  47. options: {
  48. },
  49. dist: {
  50. files: {
  51. 'dist/spectrum.min.js': ['dist/spectrum.js']
  52. }
  53. }
  54. },
  55. cssmin: {
  56. target: {
  57. files: [{
  58. expand: true,
  59. src: ['dist/spectrum.css'],
  60. dest: '.',
  61. ext: '.min.css'
  62. }]
  63. }
  64. }
  65. });
  66. grunt.loadNpmTasks('grunt-contrib-jshint');
  67. grunt.loadNpmTasks('grunt-contrib-qunit');
  68. grunt.loadNpmTasks('grunt-contrib-uglify');
  69. grunt.loadNpmTasks('grunt-contrib-cssmin');
  70. grunt.loadNpmTasks('grunt-contrib-concat');
  71. // Testing tasks
  72. grunt.registerTask('test', ['jshint', 'qunit']);
  73. // Travis CI task.
  74. grunt.registerTask('travis', 'test');
  75. // Default task.
  76. grunt.registerTask('default', ['test']);
  77. //Build Task.
  78. grunt.registerTask('build', ['jshint', 'concat', 'uglify', 'cssmin']);
  79. };