Skip to content

Commit

Permalink
Remove generated gutenberg.pot file from repository
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 3, 2017
1 parent 112a1f5 commit 70f99a1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 148 deletions.
10 changes: 7 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"transform-object-rest-spread",
[ "transform-react-jsx", {
"pragma": "wp.element.createElement"
} ],
[ "./i18n/babel-plugin", {
"output": "languages/gutenberg.pot"
} ]
],
"env": {
Expand All @@ -24,6 +21,13 @@
},
"test": {
"presets": [ "latest" ]
},
"gettext": {
"plugins": [
[ "./i18n/babel-plugin", {
"output": "languages/gutenberg.pot"
} ]
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
build
gutenberg.pot
.vscode
*.log
yarn.lock
10 changes: 10 additions & 0 deletions languages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Languages
=========

The generated POT template file is not included in this repository. To create this file locally, follow instructions from [CONTRIBUTING.md](https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md) to install the project, then run the following command:

```
npm run gettext-strings
```

After the build completes, you'll find a `gutenberg.pot` strings file in this directory.
145 changes: 0 additions & 145 deletions languages/gutenberg.pot

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"test-unit": "cross-env NODE_ENV=test webpack && mocha build --require bootstrap-test.js",
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"gettext-strings": "cross-env BABEL_ENV=gettext webpack",
"lint": "eslint .",
"dev": "cross-env BABEL_ENV=default webpack --watch",
"test": "npm run lint && npm run test-unit",
Expand Down

0 comments on commit 70f99a1

Please sign in to comment.