Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Add vendor translation into build process
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Mar 5, 2017
1 parent 4b35c88 commit 4f0a685
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cache:
apt: true
directories:
- $HOME/.composer/cache/files
- $HOME/node_modules
- node_modules

addons:
Expand Down Expand Up @@ -62,6 +63,10 @@ before_install:
- tnw-install-wordpress
- tnw-prepare-codeception

# For grunt tasks
- nvm install stable
- npm update -g npm

# Build the production plugin
- travis_retry composer build
# Activate the plugin
Expand Down
30 changes: 23 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ module.exports = function ( grunt ) {
target: {
files: {
src: [
'src/.*',
'uninstall.php',
'<%= pkg.name %>.php'
'*.php',
'**/*.php',
'*.phtml',
'**/*.phtml',
'*.html',
'**/*.html',
'!assets/**',
'!build/**',
'!node_modules/**',
'!release/**',
'!tests/**'
]
}
}
Expand All @@ -42,9 +50,17 @@ module.exports = function ( grunt ) {
target: {
options: {
include: [
'src/.*',
'uninstall.php',
'<%= pkg.name %>.php'
'*.php',
'**/*.php',
'*.phtml',
'**/*.phtml',
'*.html',
'**/*.html',
'!assets/**',
'!build/**',
'!node_modules/**',
'!release/**',
'!tests/**'
],
mainFile: '<%= pkg.name %>.php',
potHeaders: {
Expand Down Expand Up @@ -205,7 +221,7 @@ module.exports = function ( grunt ) {
grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
grunt.registerTask( 'pre-tag', ['version', 'i18n'] );
grunt.registerTask( 'pre-build', ['clean:pre-build'] );
grunt.registerTask( 'build', ['copy:build', 'compress:build'] );
grunt.registerTask( 'build', ['addtextdomain', 'copy:build', 'compress:build'] );

grunt.util.linefeed = '\n';

Expand Down

0 comments on commit 4f0a685

Please sign in to comment.