Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f8fa327

Browse files
authoredAug 1, 2019
Merge pull request #10 from topcoder-platform/develop
Update README and move development instructions on separate doc
2 parents 31d11f2 + 2ffc76e commit f8fa327

File tree

4 files changed

+55
-53
lines changed

4 files changed

+55
-53
lines changed
 

‎README.md

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,12 @@ topcoder-cli
44
#### Build Status:
55
[![CircleCI](https://circleci.com/gh/topcoder-platform/topcoder-cli/tree/master.svg?style=svg)](https://circleci.com/gh/topcoder-platform/topcoder-cli/tree/master) ![npm (tag)](https://img.shields.io/npm/v/@topcoder/topcoder-cli/latest.svg?style=plastic) ![GitHub issues](https://img.shields.io/github/issues/topcoder-platform/topcoder-cli.svg?style=plastic)
66

7-
# Dependencies
8-
- nodejs https://nodejs.org/en/ (v10)
9-
- npm https://www.npmjs.com/ (v6)
10-
11-
# Configuration
12-
Configuration for the application is at `config/default.js`.
13-
The following parameters can be set in config files or in env variables:
14-
15-
| Property | Environment varible | Default value | Description |
16-
| --- | --- | --- | --- |
17-
| LOG_LEVEL | LOG_LEVEL | info | control log level |
18-
| SUBMISSION_API_URL | TEST_SUBMISSION_API_URL | https://api.topcoder.com/v5/submissions | the TC submission API URL |
19-
| TC_AUTHN_URL | TC_AUTHN_URL | https://topcoder.auth0.com/oauth/ro | API that is used to fetch JWT token v2 |
20-
| TC_AUTHZ_URL | TC_AUTHZ_URL | https://api.topcoder.com/v3/authorizations | API that is used to fetch JWT token v3 |
21-
| TC_CLIENT_ID | TC_CLIENT_ID | 6ZwZEUo2ZK4c50aLPpgupeg5v2Ffxp9P | TC client ID |
22-
| TC_CLIENT_V2CONNECTION | CLIENT_V2CONNECTION | TC-User-Database | TC client connection protocol |
23-
24-
# Publish the package to npm
25-
- Create a npm account on https://www.npmjs.com/signup if you don't have one.
26-
- Use the account to sign in via cli: `npm login`
27-
- In the root directory of the project, run `npm publish --access=public` to publish the package to npm registry.
28-
29-
## Notes
30-
- In rare cases the module name would have been used by others. You may need to change the value of the `name` field in `package.json`
31-
to a unique one.
32-
- When you make changes to your code and want to update the package you'll need to update the version of the package.
33-
After that, run `npm publish` again to republish the package.
34-
- If you want to remove the package from npm registry anyway, run `npm unpublish --force` under the root directory of the project.
35-
367
# Installation
378

38-
- After you published the package to npm registry you can then install the package via npm-cli:
9+
- Install the package via npm-cli:
3910

4011
``` node
41-
npm install -g <your package name here>
12+
npm i -g @topcoder/topcoder-cli
4213
```
4314

4415
# Usage
@@ -54,24 +25,6 @@ An example `.topcoderrc` file should conform to at least the following structure
5425
"30095545" // at least one item here
5526
],
5627
"username": "TonyJ",
57-
"password": "appirio123"
28+
"password": "******"
5829
}
5930
```
60-
61-
# test
62-
63-
## Prepare
64-
- Install dependencies `npm install`
65-
66-
## Unit test
67-
To run unit tests alone
68-
69-
```bash
70-
npm run test
71-
```
72-
73-
To run unit tests with coverage report
74-
75-
```bash
76-
npm run test:cov
77-
```

‎docs/Development.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
topcoder-cli
2+
===
3+
4+
# Dependencies
5+
- nodejs https://nodejs.org/en/ (v10)
6+
- npm https://www.npmjs.com/ (v6)
7+
8+
# Configuration
9+
Configuration for the application is at `config/default.js`.
10+
The following parameters can be set in config files or in env variables:
11+
12+
| Property | Environment varible | Default value | Description |
13+
| --- | --- | --- | --- |
14+
| LOG_LEVEL | LOG_LEVEL | info | control log level |
15+
| SUBMISSION_API_URL | TEST_SUBMISSION_API_URL | https://api.topcoder.com/v5/submissions | the TC submission API URL |
16+
| TC_AUTHN_URL | TC_AUTHN_URL | https://topcoder.auth0.com/oauth/ro | API that is used to fetch JWT token v2 |
17+
| TC_AUTHZ_URL | TC_AUTHZ_URL | https://api.topcoder.com/v3/authorizations | API that is used to fetch JWT token v3 |
18+
| TC_CLIENT_ID | TC_CLIENT_ID | 6ZwZEUo2ZK4c50aLPpgupeg5v2Ffxp9P | TC client ID |
19+
| TC_CLIENT_V2CONNECTION | CLIENT_V2CONNECTION | TC-User-Database | TC client connection protocol |
20+
21+
# Publish the package to npm
22+
- Create a npm account on https://www.npmjs.com/signup if you don't have one.
23+
- Use the account to sign in via cli: `npm login`
24+
- In the root directory of the project, run `npm publish --access=public` to publish the package to npm registry.
25+
26+
## Notes
27+
- In rare cases the module name would have been used by others. You may need to change the value of the `name` field in `package.json`
28+
to a unique one.
29+
- When you make changes to your code and want to update the package you'll need to update the version of the package.
30+
After that, run `npm publish` again to republish the package.
31+
- If you want to remove the package from npm registry anyway, run `npm unpublish --force` under the root directory of the project.
32+
33+
# test
34+
35+
## Prepare
36+
- Install dependencies `npm install`
37+
38+
## Unit test
39+
To run unit tests alone
40+
41+
```bash
42+
npm run test
43+
```
44+
45+
To run unit tests with coverage report
46+
47+
```bash
48+
npm run test:cov
49+
```

‎package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@topcoder/topcoder-cli",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A CLI tool that will be used by Topcoder members to submit their solutions on challenges.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)
This repository has been archived.