Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yarn makepot #658

Closed
wants to merge 5 commits into from
Closed

Fix yarn makepot #658

wants to merge 5 commits into from

Conversation

Tug
Copy link
Contributor

@Tug Tug commented Feb 22, 2019

This is not a priority for 1.0 release but it could use a fix. Not touching anything critical...
Just fixing the the pot file generation using the xgettext command line.

The current command assumes gutenberg.pot is generated in gutenberg/languages/ and that bash is the default shell to run commands (sh is probably the default one actually)

@Tug Tug self-assigned this Feb 22, 2019
@Tug Tug requested a review from koke February 22, 2019 17:04
@hypest hypest added this to the Future milestone Feb 22, 2019
@hypest hypest closed this Feb 22, 2019
@Tug Tug changed the base branch from release/1.0 to develop February 22, 2019 18:20
@Tug Tug reopened this Feb 22, 2019
package.json Outdated
@@ -59,7 +59,8 @@
"bundle:ios": "mkdir -p bundle/ios && yarn react-native bundle --platform ios --dev false --entry-file index.js --assets-dest bundle/ios --bundle-output bundle/ios/App.js --sourcemap-output bundle/ios/App.js.map",
"i18n-cache": "node i18n-cache/index.js",
"postinstall": "yarn i18n-cache",
"makepot": "xgettext -f <( find . \\( -path './gutenberg/*/src/*.native.js' -or -path './src/*.js' \\) ! -path 'node_modules' -print ) --from-code=UTF-8 -k__ -k_n -k_x -k_nx -x ./gutenberg/languages/gutenberg.pot -o ./gutenberg-mobile.pot",
"premakepot": "npm run build --prefix gutenberg",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this still need a npm install inside gutenberg, leaving a populated node_modules there?

@Tug
Copy link
Contributor Author

Tug commented Mar 15, 2019

This is out of date since babel-plugin-makepot was removed from gutenberg in WordPress/gutenberg#12559

@Tug Tug closed this Mar 15, 2019
@Tug Tug deleted the fix/makepot branch March 15, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants