You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Gruntfile_01_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. };