@smg-automotive/phrase-pkg
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

CircleCI semantic-release

Usage

This package allows syncing between Phrase and the code.

  • push new translations to Phrase
  • cleanup by removing in Phrase, translations deleted in the code.
npm install @smg-automotive/phrase-pkg
npx au-phrase push

This push and clean up commands are part of the Phrase CLI and can be run on a project's main branch via circleci. The job will look like this in the circleci config file:

phrase_push:
    <<: *DOCKER_NODE
    resource_class: small
    steps:
      - attach_workspace:
          at: ~/
      - run: npx au-phrase push
      - <<: *SLACK_NOTIFY

Development

npm run build

You can link your local npm package to integrate it with any local project:

cd smg-automotive/phrase-pkg
npm run build

cd <project directory>
npm link ../smg-automotive/phrase-pkg

Release a new version

New versions are released on the ci using semantic-release as soon as you merge into master. Please make sure your merge commit message adheres to the corresponding conventions and your branch name does not contain forward slashes /.

Readme

Keywords

none

Package Sidebar

Install

npm i @smg-automotive/phrase-pkg

Weekly Downloads

226

Version

1.0.2

License

MIT

Unpacked Size

25.6 MB

Total Files

13

Last publish

Collaborators

  • smg-automotive-engineering