Created
April 28, 2014 08:35
-
-
Save nikolaygit/11365571 to your computer and use it in GitHub Desktop.
Wordpress Theme Translation
This file contains hidden or 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
'use strict'; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
var base = 'static'; | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
po2mo: { | |
files: { | |
src: 'languages/*.po', | |
expand: true | |
} | |
}, | |
pot: { | |
options: { | |
text_domain: 'attitude-de_DE', | |
dest: 'languages/', | |
keywords: ['__', '_e', 'esc_html__', 'esc_html_e', 'esc_attr__', 'esc_attr_e', 'esc_attr_x', 'esc_html_x', 'ngettext', '_n', '_ex', '_nx' ], | |
}, | |
files: { | |
src: [ | |
'**/*.php', | |
'!node_modules/**', | |
'!dist/**', | |
'!apigen/**', | |
'!documentation/**', | |
'!tests/**', | |
'!vendor/**', | |
'!*~', | |
], | |
expand: true | |
} | |
} | |
}); | |
grunt.registerTask( 'build', [ 'pot', 'po2mo'] ); | |
}; |
This file contains hidden or 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
{ | |
"name": "ecg_balancing", | |
"version": "0.0.1", | |
"description": "ECG Balancing", | |
"main": "Gruntfile.js", | |
"author": "Sinnwerkstatt", | |
"license": "none", | |
"readmeFilename": "README.md", | |
"devDependencies": { | |
"grunt": "~0.4.1", | |
"grunt-contrib-watch": "~0.4.4", | |
"grunt-contrib-uglify": "~0.2.2", | |
"grunt-contrib-sass": "~0.3.0", | |
"matchdep": "~0.1.2", | |
"grunt-contrib-connect": "~0.3.0", | |
"grunt-open": "~0.2.0", | |
"grunt-contrib-concat": "~0.3.0", | |
"grunt-newer": "~0.5.4", | |
"grunt-po2mo": "~0.1.0", | |
"grunt-pot": "~0.1.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment