您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Gruntfile_global.js 826B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Created by robin on 11/10/15.
  3. */
  4. module.exports = function(grunt) {
  5. grunt.loadNpmTasks('grunt-contrib-copy');
  6. var path = require('path');
  7. grunt.initConfig({
  8. globals: {
  9. releasePath: 'build/release',
  10. appFolder: '.',
  11. staticFiles: [
  12. 'favicon.ico',
  13. 'index.html'
  14. ]
  15. },
  16. copy: {
  17. release: {
  18. files: [
  19. {
  20. expand: true,
  21. cwd:'<%= globals.appFolder %>/',
  22. src: ['<%= globals.staticFiles %>'],
  23. dest: '<%= globals.releasePath %>'
  24. }
  25. ]
  26. }
  27. }
  28. });
  29. grunt.registerTask('default', [
  30. 'copy:release'
  31. ]);
  32. };