tc-submission
Submit to Topcoder challenges directly from CLI
Last updated 10 months ago by dsyefria .
ISC · Original npm · Tarball · package.json
$ cnpm install tc-submission 
SYNC missed versions from official npm registry.

Topcoder Submission CLI Tool

CLI tool to create submissions in single/multiple topcoder challanges

How to publish as an npm package to the global repository

  1. Login to your npm account

    npm login
    
  2. Publish the package to the npm registery

    npm publish
    

How to use this tool

  1. Install the tool as a global npm dependency

    npm i -g tc-submission
    
  2. Open the project folder for which you want to create a submission

    • Create a file .topcoderrc
    • Place the file in the root of your project
    • Add the following details
    {
        "challengeIds": [
            "12345678",
            "91011121"...
        ],
        "userId": "<Your user ID>",
        "username": "<Your user Name>",
        "password": "<Your account password>"
    }
    
  3. Run the follwoing command from the root of your project

    tc-submission
    

    You should be able to see the following output

    ⠋ Welcome to tc-submission _______                        _           
    |__   __|                      | |          
       | | ___  _ __   ___ ___   __| | ___ _ __ 
       | |/ _ \| '_ \ / __/ _ \ / _` |/ _ \ '__|
       | | (_) | |_) | (_| (_) | (_| |  __/ |   
       |_|\___/| .__/ \___\___/ \__,_|\___|_|   
            | |                              
            |_|            
    ✔ Submission details recieved
    ✔ User logged in
    ✔ Submission packaged
    ✔ Submission uploaded successfully to challenge 12345678
    ✔ Submission uploaded successfully to challenge 91011121
    ✔ All done
    

    Demo Video

You are done!

Running Test Cases

Make sure you have created the .topcoderrc file in the root of your project and then run

To run the tests alone, execute the command

```bash
npm run test
```

To run tests with coverage report, execute the command

```bash
npm run cov
```

Current Tags

  • 1.0.10                                ...           latest (10 months ago)

1 Versions

  • 1.0.10                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (11)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |