Skip to content

Master Sync v0.1.6 #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 68 commits into from
Feb 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
9c607c3
fix(package): update nyc to version 15.0.0
greenkeeper[bot] Dec 23, 2019
c00f2ce
chore(package): update lockfile package-lock.json
greenkeeper[bot] Dec 23, 2019
ab27525
chore(package): update @types/node to version 13.1.0
greenkeeper[bot] Dec 23, 2019
2975869
chore(package): update lockfile package-lock.json
greenkeeper[bot] Dec 23, 2019
0d9bab8
Merge pull request #48 from codingtools/greenkeeper/nyc-15.0.0
pateash Dec 28, 2019
84017c4
Merge branch 'release/release-v0.1' into greenkeeper/@types/node-13.1.0
pateash Dec 28, 2019
1f9a7c7
Merge pull request #49 from codingtools/greenkeeper/@types/node-13.1.0
pateash Dec 28, 2019
5d166ed
chore(package): update @types/mocha to version 7.0.0
greenkeeper[bot] Jan 29, 2020
910076d
chore(package): update lockfile package-lock.json
greenkeeper[bot] Jan 29, 2020
12654c3
Merge pull request #52 from codingtools/greenkeeper/@types/mocha-7.0.0
pateash Feb 2, 2020
c4a8165
[ISSUE#51]: added avro utility
pateash Feb 2, 2020
6df1576
[ISSUE#51]: avsc added
pateash Feb 2, 2020
229d610
[ISSUE#51]: two tests added
pateash Feb 2, 2020
3e5abe8
[ISSUE#51]: getschema done
pateash Feb 2, 2020
ee76424
[ISSUE#51]: to_json done
pateash Feb 2, 2020
8ae2687
[ISSUE#51]: file renamed
pateash Feb 2, 2020
7dc6082
[ISSUE#51]: to_avro working
pateash Feb 2, 2020
e62536b
[ISSUE#51]: tests added for all negative cases
pateash Feb 2, 2020
51675c8
[ISSUE#51]: timeout error removed, we need to add test cases
pateash Feb 2, 2020
22449cd
Merge branch 'release/release-v0.1' into feature/avro-support-#51
pateash Feb 2, 2020
42c2b90
[AVRO] - get_schema not prints
pateash Feb 5, 2020
1c5929c
[ISSUE#51]: writing tests
pateash Feb 5, 2020
2fc68d2
Add Codacy badge
codacy-badger Feb 5, 2020
716eb28
Merge pull request #55 from codacy-badger/codacy-badge
pateash Feb 5, 2020
9896dac
Create nodejs.yml
pateash Feb 5, 2020
7fa1c17
Update nodejs.yml
pateash Feb 5, 2020
29a9a8c
Update nodejs.yml
pateash Feb 5, 2020
f0adda1
Update README.md
pateash Feb 5, 2020
6667ea5
Update README.md
pateash Feb 5, 2020
caff349
Failing for versions <10.x
pateash Feb 5, 2020
c3a4ce6
Merge pull request #56 from codingtools/ashishpatel0720-patch-1
pateash Feb 5, 2020
ca22fd3
Update README.md
pateash Feb 5, 2020
cc7911d
Merge branch 'release/release-v0.1' into feature/avro-support-#51
pateash Feb 5, 2020
16ad96f
[AVRO] - get_schema will give output on screen if output file is not …
pateash Feb 5, 2020
ff2f673
[AVRO] - All tests working
pateash Feb 5, 2020
bc98743
Merge remote-tracking branch 'origin/feature/avro-support-#51' into f…
pateash Feb 5, 2020
1f9ec7c
[AVRO] - Added test for get_schema to write on console
pateash Feb 5, 2020
8f4e0f3
[ISSUE#51]: README.md updated
pateash Feb 5, 2020
88efdc1
[ISSUE#51]: oclif added
pateash Feb 5, 2020
54888cc
0.1.6
pateash Feb 5, 2020
31c2108
[ISSUE#51]: readme updated
pateash Feb 5, 2020
3eba066
[ISSUE#51]: tslint fixed
pateash Feb 5, 2020
57c8431
Merge pull request #53 from codingtools/feature/avro-support-#51
pateash Feb 5, 2020
6f11d88
Delete my.json
pateash Feb 5, 2020
3789d33
Delete error.json
pateash Feb 5, 2020
d18801f
[README]: updated README.md
pateash Feb 5, 2020
607aec3
Merge branch 'release/release-v0.1' into remove-unused-files
pateash Feb 5, 2020
7ca141e
Merge pull request #57 from codingtools/remove-unused-files
pateash Feb 5, 2020
8945e52
[TESTS]: added tests for output to a file
pateash Feb 7, 2020
7d95996
output folder's content added
pateash Feb 7, 2020
2d047f6
refactoring
pateash Feb 7, 2020
4157e5b
[TESTS]: added folder output
pateash Feb 7, 2020
853e2d5
[TESTS]: gitignore added to gitignore
pateash Feb 7, 2020
d2d8e14
refactoring
pateash Feb 7, 2020
e340cac
Merge branch 'release/release-v0.1' into refactoring-v0.1.6
pateash Feb 7, 2020
4f03d2c
Merge pull request #59 from codingtools/refactoring-v0.1.6
pateash Feb 7, 2020
e0442b0
[TESTS]: adding codecov to test coverage
pateash Feb 7, 2020
e5a26d5
[TESTS]: coverage added
pateash Feb 7, 2020
958ac11
Update README.md
pateash Feb 7, 2020
58d4df1
[TESTS]: coverage fixed
pateash Feb 7, 2020
835d2f6
Merge remote-tracking branch 'origin/feature/codecov-integration' int…
pateash Feb 7, 2020
88ff912
[TESTS]: coverage fixed
pateash Feb 7, 2020
b5f26e4
[TESTS]: coverage fixed
pateash Feb 7, 2020
198aeeb
[TESTS]: workaround done
pateash Feb 7, 2020
889d66b
[CODECOV]: done fix, removed unused
pateash Feb 7, 2020
0c51b97
[CODECOV]: done fix, removed unused
pateash Feb 7, 2020
149973f
[CODECOV]: done fix, removed unused
pateash Feb 7, 2020
71b71d1
Merge pull request #60 from codingtools/feature/codecov-integration
pateash Feb 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
command: npm test
- run:
name: Generate code coverage
command: './node_modules/.bin/nyc report --reporter=text-lcov'
- store_artifacts:
path: test-results.xml
prefix: tests
- store_artifacts:
path: coverage
prefix: coverage
command: ./node_modules/.bin/nyc report --reporter=json
- run:
name: moving report to right file
command: mv coverage/coverage-final.json coverage/coverage.json
- run:
name: send code coverage to codecov
command: ./node_modules/.bin/codecov

workflows:
version: 2
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GithubCI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 11.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ node_modules
/.idea
cdt.iml
**/.DS_Store
output/*
!output/.gitkeep
coverage/*.json
55 changes: 47 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
===
CLI for Developers

[![GithubCI](https://github.com/codingtools/cdt/workflows/GithubCI/badge.svg)](https://github.com/codingtools/cdt/actions?query=workflow%3AGithubCI)
[![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)
[![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)
[![codecov](https://codecov.io/gh/codingtools/cdt/branch/release%2Frelease-v0.1/graph/badge.svg)](https://codecov.io/gh/codingtools/cdt)
[![Version](https://img.shields.io/npm/v/@codingtools/cdt)](https://npmjs.org/package/@codingtools/cdt)
![npm](https://img.shields.io/npm/dt/@codingtools/cdt)
![npm](https://img.shields.io/npm/dm/@codingtools/cdt)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/commit-activity)
![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)
[![GitHub contributors](https://img.shields.io/github/contributors/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/contributors)
[![License](https://img.shields.io/npm/l/@codingtools/cdt)](https://github.com/codingtools/cdt/blob/master/package.json)
[![Greenkeeper badge](https://badges.greenkeeper.io/codingtools/cdt.svg)](https://greenkeeper.io/)
Expand Down Expand Up @@ -38,7 +40,7 @@ $ npm install -g @codingtools/cdt
$ cdt COMMAND
running command...
$ cdt (-v|--version|version)
@codingtools/cdt/0.1.5 darwin-x64 node-v12.9.0
@codingtools/cdt/0.1.6 darwin-x64 node-v12.9.0
$ cdt --help [COMMAND]
USAGE
$ cdt COMMAND
Expand All @@ -48,6 +50,7 @@ USAGE
# Commands
<!-- commands -->
* [`cdt autocomplete [SHELL]`](#cdt-autocomplete-shell)
* [`cdt avro [COMMAND]`](#cdt-avro-command)
* [`cdt bundlephobia [PACKAGE]`](#cdt-bundlephobia-package)
* [`cdt crypto [STRING]`](#cdt-crypto-string)
* [`cdt datetime [DATE]`](#cdt-datetime-date)
Expand Down Expand Up @@ -78,6 +81,23 @@ EXAMPLES

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

## `cdt avro [COMMAND]`

Avro Utility command

```
USAGE
$ cdt avro [COMMAND]

OPTIONS
-f, --file=file input file path
-h, --help show CLI help
-o, --output=output output file path
-t, --schemaType=schemaType schema type file path
```

_See code: [src/commands/avro.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/avro.ts)_

## `cdt bundlephobia [PACKAGE]`

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

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

## `cdt crypto [STRING]`

Expand All @@ -112,7 +132,7 @@ OPTIONS
-s, --string=string string to be encrypted/decrypted
```

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

## `cdt datetime [DATE]`

Expand All @@ -130,7 +150,7 @@ OPTIONS
-z, --timezone=timezone Timezone for Datetime parsing, default: Your timezone
```

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

## `cdt hash [STRING]`

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

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

## `cdt help [COMMAND]`

Expand Down Expand Up @@ -184,9 +204,16 @@ OPTIONS
HTML/HTM, CSS
```

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

## Acknowledgement
* this cli uses following opensource libraries/services
* [bundlephobia](https://bundlephobia.com/)
* [avro-js](https://openbase.io/js/avro-js)
* [avsc](https://github.com/mtth/avsc)

And many others, great thanks to all the people involved in developnment and support :)

## Contribution

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

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

## Releasing Version
* this needs to be done from release* branch
```bash
npm version patch
```
it will update readme.md and update package.json, also will create tag and commit.

```bash
npm publish --access public
```
this will publish package to **npm** starting with updating README and publishing tarballs

## License

[MIT](https://raw.githubusercontent.com/codingtools/cdt/master/LICENSE)
Empty file added coverage/.gitkeep
Empty file.
17 changes: 0 additions & 17 deletions error.json

This file was deleted.

Loading