@@ -4,41 +4,12 @@ topcoder-cli
4
4
#### Build Status:
5
5
[ ![ 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 )
6
6
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
-
36
7
# Installation
37
8
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:
39
10
40
11
``` node
41
- npm install - g < your package name here >
12
+ npm i - g @topcoder / topcoder - cli
42
13
```
43
14
44
15
# Usage
@@ -54,24 +25,6 @@ An example `.topcoderrc` file should conform to at least the following structure
54
25
"30095545" // at least one item here
55
26
],
56
27
"username": "TonyJ",
57
- "password": "appirio123 "
28
+ "password": "****** "
58
29
}
59
30
```
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
- ```
0 commit comments