Closed shivapoudel closed 10 years ago
Hey @shivapoudel, you should be able to use the regular Grunt file formats with the addtextdomain
task, which should include using the cwd
option. Each file is passed to the PHP addtextdomain
task individually. Let me know if you run into any issues, though.
@bradyvercher I have to use
grunt-contrib-copy
module too. I have to copy all the files from the root directory excluding some text, markdown and documentation files. After deployment tasksdeploy
directory is created where mywp-theme
resides.The thought is: I want to create a wp-theme in root directory with
axisthemes
and there is my own framework's textdomain too calledaxisframework
, and after deployment necessary files from the theme and framework is copied todeploy
directory. What I want is how can I run addtextdomain to replace all the textdomain matchingaxisthemes
andaxisframework
only in thedeploy
directory (i.e not in root where Gruntfile.js) is present. Can we usecwd
or not. It will be better if addtextdomain has support forcwd
. Please so me an example to demonstrate how we can through snippet.