Permalink
Browse files

remove sed helper in favor of grunt copy

  • Loading branch information...
1 parent 16152c4 commit 2644fe112caf0ae7d8ead3c9c01382af51a55629 @johnbender johnbender committed Jun 8, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −2 build/tasks/js.js
  2. +0 −9 grunt.js
View
@@ -14,9 +14,9 @@ module.exports = function( grunt ) {
requirejs.optimize( require );
// replace the version with the value in version.text
- helpers.sed( require.out, function( fileContents ) {
+ grunt.file.copy( require.out, require.out, { process: function( fileContents ) {
return fileContents.replace( /__version__/, '"' + global_config.ver.official + '"' );
- });
+ }});
});
grunt.registerTask( 'js:cleanup', 'compile and minify the js', function() {
View
@@ -165,15 +165,6 @@ module.exports = function( grunt ) {
shas: {},
helpers: {
- // in place file alteration
- sed: function( file, filter ) {
- var id, inputString = fs.readFileSync(file).toString();
-
- inputString = filter ? filter(inputString) : inputString;
-
- grunt.file.write( file, inputString );
- },
-
// NOTE cargo culting my way to the top :(
rmdirRecursive: function(dir) {
if( !path.existsSync(dir) ) {

0 comments on commit 2644fe1

Please sign in to comment.