Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v0.0.13 grunt 0.4.0 compatibility

  • Loading branch information...
commit e9a4acc3dac4ba2dd7c379ba5a5c4d0705033617 1 parent de7e7cc
@pajtai authored
Showing with 24 additions and 18 deletions.
  1. +16 −15 grunt.js → Gruntfile.js
  2. +5 −0 README.md
  3. +3 −3 package.json
View
31 grunt.js → Gruntfile.js
@@ -5,10 +5,11 @@ module.exports = function (grunt) {
var gruntConfig = {
- cp: {
+ copy: {
test: {
- src : 'test/input',
- dest : 'test/output'
+ files: [
+ {src : ['test/input'], dest : 'test/output'}
+ ]
}
},
@@ -19,18 +20,18 @@ module.exports = function (grunt) {
file: 'test/output/sample.php'
},
test2: {
-    constant: 'TEST2',
-    value: 67890,
-    file: 'test/output/sample.php'
-   },
-  test3: {
-      constant: 'TEST3',
-      value: 'new_constant_value',
-      file: 'test/output/sample.php'
-   },
+ constant: 'TEST2',
+ value: 67890,
+ file: 'test/output/sample.php'
+ },
+ test3: {
+ constant: 'TEST3',
+ value: 'new_constant_value',
+ file: 'test/output/sample.php'
+ },
test4: {
constant: 'TEST4',
- value: '<%= cp.test.dest %>',
+ value: '<%= copy.test.files[0].dest %>',
file: 'test/output/sample.php'
}
}
@@ -38,10 +39,10 @@ module.exports = function (grunt) {
grunt.initConfig(gruntConfig);
- grunt.loadNpmTasks('grunt-cp');
+ grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bump');
grunt.loadTasks('./tasks');
- grunt.registerTask('test', 'cp setPHPConstant');
+ grunt.registerTask('test', ['copy', 'setPHPConstant']);
};
View
5 README.md
@@ -1,6 +1,10 @@
grunt-php-set-constant
======================
+## Version 0.0.13+ is Grunt 0.4.0 compatible
+
+### Version 0.0.12- is Grunt 0.3.17 compatible
+
## Description
Set a constant in a php file to the value indicated.
@@ -81,6 +85,7 @@ directory inside the `node_modules` folder of your project.
### Changelog
+* 0.0.13 - 2013 02 22 - Adding Grunt 0.4.0 compatibility
* 0.0.12 - 2013 01 25 - Ability to have an empty string for value. Ability to put one type of quote in another. Issues #1, and #5
* 0.0.11 - 2012 11 29 - Adding grunt templating to value
View
6 package.json
@@ -2,7 +2,7 @@
"name": "grunt-php-set-constant",
"title": "grunt PHP set constant",
"description": "Set PHP constants to a defined values in PHP files.",
- "version": "0.0.12",
+ "version": "0.0.13",
"homepage": "https://github.com/pajtai/grunt-php-set-constant",
"author": "Peter Ajtai (https://netlumination.com)",
"repository": {
@@ -24,9 +24,9 @@
},
"dependencies": {},
"devDependencies": {
+ "grunt": "~0.4.0",
"jasmine-node": "*",
- "grunt": "= 0.3.8",
- "grunt-cp": ">=0.1.0",
+ "grunt-contrib-copy": "*",
"grunt-bump": ">=0.0.1"
},
"keywords": [
Please sign in to comment.
Something went wrong with that request. Please try again.