Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.41 KB

checking-tool-wrapper

Build Status npm npm

Checking tool wrapper for translationCore App.

Usage

  • Install checking-tool-wrapper in tCore repo.

    npm i checking-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 'checking-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 changes.
  • Run npm i unfoldingWord/checking-tool-wrapper#my-feature-branch in your translationCore root directory.
  • For subsequent changes run rm -rf node_modules/checking-tool-wrapper; npm i checking-tool-wrapper;