Any contribution is welcome. Just follow those guidelines:
- If you are unsure, open a ticket before working on anything.
- Fork and clone the project
- Create a branch
git checkout -b feature/my-feature
(orhotfix
). If you want to work on multiple bugs or improvements, do so in multiple branches and PRs. It almost always complicated things to mix unrelated changes. - Push the code to your fork
- Write tests and documentation. I won't merge a PR without it!
- Make a pull request from your new branch
- Wait, I am usually pretty fast to merge PRs :)
Thanks a lot to all the previous contributors.
git clone [email protected]:<your-username>/i18next-parser.git
cd i18next-parser
yarn
The code is written using the latest ES6 features. For the cli to run on older node version, it is compiled with Babel. You can run the compiler in watch mode and let it in the background:
yarn watch
Don't forget to commit the compiled files.
Make sure the tests pass:
yarn test
To test the CLI:
yarn link
cd test
i18next manual/**/*.html -c i18next-parser.config.js
i18next manual/**/*.html -c i18next-parser.config.js --fail-on-warnings
i18next manual/**/*.{js,jsx} --fail-on-warnings
To test gulp:
yarn global add gulp@next
cd test
gulp i18next
To test broccoli:
yarn global add broccoli-cli
cd test
rm -rf dist && broccoli build dist
yarn build
- update
package.json
version - create commit and add version tag
npm publish
1.x
is a major release. It is not backward compatible. There are two separate branches:
master
for1.x
0.x.x
for the old version
I will not maintain the old version but will welcome bug fixes as PRs.