Skip to content

Commit 9bd6828

Browse files
authored
Merge pull request #58 from codingtools/release/release-v0.1
Master Sync v0.1.6
2 parents 04fc9ea + 71b71d1 commit 9bd6828

29 files changed

+1082
-549
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
command: npm test
2626
- run:
2727
name: Generate code coverage
28-
command: './node_modules/.bin/nyc report --reporter=text-lcov'
29-
- store_artifacts:
30-
path: test-results.xml
31-
prefix: tests
32-
- store_artifacts:
33-
path: coverage
34-
prefix: coverage
28+
command: ./node_modules/.bin/nyc report --reporter=json
29+
- run:
30+
name: moving report to right file
31+
command: mv coverage/coverage-final.json coverage/coverage.json
32+
- run:
33+
name: send code coverage to codecov
34+
command: ./node_modules/.bin/codecov
3535

3636
workflows:
3737
version: 2

.github/workflows/nodejs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: GithubCI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 11.x, 12.x, 13.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: npm install
21+
- run: npm run build --if-present
22+
- run: npm test
23+
env:
24+
CI: true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ node_modules
99
/.idea
1010
cdt.iml
1111
**/.DS_Store
12+
output/*
13+
!output/.gitkeep
14+
coverage/*.json

README.md

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
===
33
CLI for Developers
44

5+
[![GithubCI](https://github.com/codingtools/cdt/workflows/GithubCI/badge.svg)](https://github.com/codingtools/cdt/actions?query=workflow%3AGithubCI)
56
[![CircleCI](https://circleci.com/gh/codingtools/cdt/tree/release%2Frelease-v0.1.svg?style=shield)](https://circleci.com/gh/codingtools/cdt/tree/release%2Frelease-v0.1)
7+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/82d29e2a902a4c338228d636f290d9cd)](https://app.codacy.com/gh/codingtools/cdt?utm_source=github.com&utm_medium=referral&utm_content=codingtools/cdt&utm_campaign=Badge_Grade_Dashboard)
8+
[![codecov](https://codecov.io/gh/codingtools/cdt/branch/release%2Frelease-v0.1/graph/badge.svg)](https://codecov.io/gh/codingtools/cdt)
69
[![Version](https://img.shields.io/npm/v/@codingtools/cdt)](https://npmjs.org/package/@codingtools/cdt)
710
![npm](https://img.shields.io/npm/dt/@codingtools/cdt)
8-
![npm](https://img.shields.io/npm/dm/@codingtools/cdt)
9-
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/commit-activity)
11+
![node (scoped)](https://img.shields.io/node/v/@codingtools/cdt)[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/commit-activity)
1012
[![GitHub contributors](https://img.shields.io/github/contributors/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/contributors)
1113
[![License](https://img.shields.io/npm/l/@codingtools/cdt)](https://github.com/codingtools/cdt/blob/master/package.json)
1214
[![Greenkeeper badge](https://badges.greenkeeper.io/codingtools/cdt.svg)](https://greenkeeper.io/)
@@ -38,7 +40,7 @@ $ npm install -g @codingtools/cdt
3840
$ cdt COMMAND
3941
running command...
4042
$ cdt (-v|--version|version)
41-
@codingtools/cdt/0.1.5 darwin-x64 node-v12.9.0
43+
@codingtools/cdt/0.1.6 darwin-x64 node-v12.9.0
4244
$ cdt --help [COMMAND]
4345
USAGE
4446
$ cdt COMMAND
@@ -48,6 +50,7 @@ USAGE
4850
# Commands
4951
<!-- commands -->
5052
* [`cdt autocomplete [SHELL]`](#cdt-autocomplete-shell)
53+
* [`cdt avro [COMMAND]`](#cdt-avro-command)
5154
* [`cdt bundlephobia [PACKAGE]`](#cdt-bundlephobia-package)
5255
* [`cdt crypto [STRING]`](#cdt-crypto-string)
5356
* [`cdt datetime [DATE]`](#cdt-datetime-date)
@@ -78,6 +81,23 @@ EXAMPLES
7881

7982
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.1.4/src/commands/autocomplete/index.ts)_
8083

84+
## `cdt avro [COMMAND]`
85+
86+
Avro Utility command
87+
88+
```
89+
USAGE
90+
$ cdt avro [COMMAND]
91+
92+
OPTIONS
93+
-f, --file=file input file path
94+
-h, --help show CLI help
95+
-o, --output=output output file path
96+
-t, --schemaType=schemaType schema type file path
97+
```
98+
99+
_See code: [src/commands/avro.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/avro.ts)_
100+
81101
## `cdt bundlephobia [PACKAGE]`
82102

83103
Find cost of adding a npm/yarn packages or all dependencies in package.json file
@@ -92,7 +112,7 @@ OPTIONS
92112
-p, --packages=packages packages for which cost is required, can pass more than one separated by space
93113
```
94114

95-
_See code: [src/commands/bundlephobia.ts](https://github.com/codingtools/cdt/blob/v0.1.5/src/commands/bundlephobia.ts)_
115+
_See code: [src/commands/bundlephobia.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/bundlephobia.ts)_
96116

97117
## `cdt crypto [STRING]`
98118

@@ -112,7 +132,7 @@ OPTIONS
112132
-s, --string=string string to be encrypted/decrypted
113133
```
114134

115-
_See code: [src/commands/crypto.ts](https://github.com/codingtools/cdt/blob/v0.1.5/src/commands/crypto.ts)_
135+
_See code: [src/commands/crypto.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/crypto.ts)_
116136

117137
## `cdt datetime [DATE]`
118138

@@ -130,7 +150,7 @@ OPTIONS
130150
-z, --timezone=timezone Timezone for Datetime parsing, default: Your timezone
131151
```
132152

133-
_See code: [src/commands/datetime.ts](https://github.com/codingtools/cdt/blob/v0.1.5/src/commands/datetime.ts)_
153+
_See code: [src/commands/datetime.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/datetime.ts)_
134154

135155
## `cdt hash [STRING]`
136156

@@ -148,7 +168,7 @@ OPTIONS
148168
-t, --type=type type of hash [SHA1(default), MD5, SHA256, SHA512, RMD160 or RIPEMD160]
149169
```
150170

151-
_See code: [src/commands/hash.ts](https://github.com/codingtools/cdt/blob/v0.1.5/src/commands/hash.ts)_
171+
_See code: [src/commands/hash.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/hash.ts)_
152172

153173
## `cdt help [COMMAND]`
154174

@@ -184,9 +204,16 @@ OPTIONS
184204
HTML/HTM, CSS
185205
```
186206

187-
_See code: [src/commands/minify.ts](https://github.com/codingtools/cdt/blob/v0.1.5/src/commands/minify.ts)_
207+
_See code: [src/commands/minify.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/minify.ts)_
188208
<!-- commandsstop -->
189209

210+
## Acknowledgement
211+
* this cli uses following opensource libraries/services
212+
* [bundlephobia](https://bundlephobia.com/)
213+
* [avro-js](https://openbase.io/js/avro-js)
214+
* [avsc](https://github.com/mtth/avsc)
215+
216+
And many others, great thanks to all the people involved in developnment and support :)
190217

191218
## Contribution
192219

@@ -198,6 +225,18 @@ Please feel free to provide any suggestion for new utility in [Issues](https://g
198225

199226
This Project is created and supported by [Ashish Patel](http://ashish.live/)
200227

228+
## Releasing Version
229+
* this needs to be done from release* branch
230+
```bash
231+
npm version patch
232+
```
233+
it will update readme.md and update package.json, also will create tag and commit.
234+
235+
```bash
236+
npm publish --access public
237+
```
238+
this will publish package to **npm** starting with updating README and publishing tarballs
239+
201240
## License
202241

203242
[MIT](https://raw.githubusercontent.com/codingtools/cdt/master/LICENSE)

coverage/.gitkeep

Whitespace-only changes.

error.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)