tc-tool-wrapper

0.3.4 • Public • Published

tc-tool-wrapper

translationCore tool wrapper

Usage

  • Install tc-tool-wrapper in tCore repo.

    npm i tc-tool-wrapper
  • Write the following code in the tool's index.js file:

    import {connectTool} from 'tc-tool';
    import {connect} from 'react-redux';
    import path from 'path';
    import {
      Api,
      Container,
      mapStateToProps
    } from 'tc-tool-wrapper';
     
    export default connectTool('translationWords', {
      localeDir: path.join(__dirname, './src/locale'),
      api: new Api()
    })(connect(mapStateToProps)(Container));

Testing your changes

  • Create your feature/bugfix/enhancement (my-feature-branch)branch off of master.
  • Make your changes in the new branch (my-feature-branch).
  • Push your chnages.
  • Run npm i translationCoreApps/tc-tool-wrapper#my-feature-branch in your translationCore root directory.

Readme

Keywords

none

Package Sidebar

Install

npm i tc-tool-wrapper

Weekly Downloads

0

Version

0.3.4

License

MIT

Unpacked Size

5.96 MB

Total Files

27

Last publish

Collaborators

  • macolon