-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from emrikol/v1.0.1
V1.0.1
- Loading branch information
Showing
14 changed files
with
2,565 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
module.exports = function( grunt ) { | ||
grunt.initConfig( { | ||
pkg: grunt.file.readJSON( 'package.json' ), | ||
|
||
shell: { | ||
target: { | ||
command: 'wp2md convert readme.txt > readme.md' | ||
} | ||
}, | ||
|
||
version: { | ||
readme: { | ||
options: { | ||
prefix: 'Stable tag:\\s*' | ||
}, | ||
src: ['readme.txt'] | ||
}, | ||
scss: { | ||
options: { | ||
prefix: 'Version:\\s*' | ||
}, | ||
src: ['scss/style.scss'] | ||
}, | ||
package: { | ||
src: ['package.json'] | ||
} | ||
}, | ||
|
||
clean: { | ||
main: ['release/<%= pkg.version %>'] | ||
}, | ||
|
||
copy: { | ||
main: { | ||
src: [ | ||
'focus.php', | ||
'LICENSE', | ||
'readme.txt', | ||
'includes/**' | ||
], | ||
dest: 'release/<%= pkg.version %>/' | ||
} | ||
}, | ||
|
||
compress: { | ||
main: { | ||
options: { | ||
mode: 'zip', | ||
archive: './release/<%= pkg.name %>-v<%= pkg.version %>.zip' | ||
}, | ||
expand: true, | ||
cwd: 'release/<%= pkg.version %>/', | ||
src: ['**/*'], | ||
dest: '<%= pkg.name %>/' | ||
} | ||
}, | ||
|
||
replace: { | ||
readme: { | ||
src: ['release/<%= pkg.version %>/readme.txt'], | ||
overwrite: true, // overwrite matched source files | ||
replacements: [{ | ||
from: "[![Build Status](https://travis-ci.org/emrikol/focus.svg?branch=master)](https://travis-ci.org/emrikol/focus)\n\n", | ||
to: '' | ||
}] | ||
} | ||
}, | ||
|
||
// Bump plugin: grunt version:plugin:patch; grunt version:readme:patch | ||
// Bump dropin: grunt version:dropin:patch | ||
// Bump everything: grunt version::patch | ||
|
||
version: { | ||
readme: { | ||
options: { | ||
prefix: 'Stable tag:\\s*' | ||
}, | ||
src: ['readme.txt'] | ||
}, | ||
plugin: { | ||
options: { | ||
prefix: 'Version:\\s*' | ||
}, | ||
src: [ 'focus.php', 'includes/admin-page.php' ] | ||
}, | ||
dropin: { | ||
options: { | ||
prefix: 'Version:\\s*' | ||
}, | ||
src: [ 'includes/object-cache.php' ] | ||
}, | ||
package: { | ||
src: ['package.json'] | ||
} | ||
}, | ||
|
||
} ); | ||
|
||
require( 'load-grunt-tasks' )( grunt ); | ||
|
||
grunt.registerTask( 'readme', [ 'shell' ] ); | ||
grunt.registerTask( 'release', [ 'clean', 'copy', 'replace', 'compress' ] ); | ||
|
||
grunt.util.linefeed = '\n'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "focus-object-cache", | ||
"title": "FOCUS Object Cache", | ||
"description": "File-based Object Cache is Utterly Slow: An Object Caching Dropin for WordPress that uses the local file system.", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/emrikol/focus", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/emrikol/focus" | ||
}, | ||
"author": { | ||
"name": "Derrick Tennant", | ||
"email": "[email protected]", | ||
"url": "https://emrikol.com" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-clean": "^1.1.0", | ||
"grunt-contrib-compress": "^1.4.3", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-shell": "^2.1.0", | ||
"grunt-text-replace": "^0.4.0", | ||
"grunt-version": "^1.1.1", | ||
"load-grunt-tasks": "^3.5.2" | ||
}, | ||
"license": "GPL-3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.