🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

tc-tool-wrapper

Package Overview
Dependencies
Maintainers
7
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tc-tool-wrapper

translationCore tool wrapper

latest
npmnpm
Version
0.3.4
Version published
Weekly downloads
21
600%
Maintainers
7
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts