Changeset 474 for Dev/trunk/Gruntfile.js


Ignore:
Timestamp:
07/08/13 20:09:40 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Auto-manage svn ignores for generated files.

Location:
Dev/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
        11build
        2 dist
         2quod-erat.git
         3node_modules
  • Dev/trunk/Gruntfile.js

    r471 r474  
    99
    1010    grunt.registerTask('default', ['compile']);
    11     grunt.registerTask('compile', ['jshint:lint-sources'
     11    grunt.registerTask('compile', ['svn-ignore:compile'
     12                                  ,'jshint:lint-sources'
    1213                                  ,'htmlhint:lint'
    1314                                  ,'coffeelint:lint'
     
    1718                                  ,'usebanner:generated-js'
    1819                                  ,'jshint:lint-generated'
    19                                   //,'amd-check' // too smart about plugins, r.js can't find them
     20                                //,'amd-check' // too smart about plugins, r.js can't find them
    2021                                  ]);
    2122    grunt.registerTask('build', ['clean:build'
     
    9192            ]
    9293        },
     94        'svn-ignore': {
     95            compile: {
     96                files: { src: dest(coffeeMap).concat(dest(lessMap)) }
     97            }
     98        },
     99        'svn-ignore-clean': {
     100            clean: {
     101                files: [{
     102                    expand: true,
     103                    cwd: srcDir,
     104                    src: ['**', '!node_modules/**', '!client/dojo/**', '!client/dijit/**', '!client/dojox/**', '!client/util/**'],
     105                    filter: 'isDirectory'
     106                }]
     107            }
     108        },
    93109        usebanner: {
    94110            'generated-css': { options: { position: 'top',
Note: See TracChangeset for help on using the changeset viewer.