Skip to content

Commit 904af6d

Browse files
author
Vikas Katiyar
authored
Merge pull request #99 from codingtools/release/release-v0.x
Sync Master
2 parents 9bd6828 + 7164bcb commit 904af6d

24 files changed

+778
-295
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
patreon: ashishpatel0720

.github/workflows/npmpublish.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: GithubPublish
2+
3+
on:
4+
push:
5+
tags:
6+
- v0.1.*
7+
- v0.2.*
8+
- v0.*.*
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm test
20+
21+
publish-npm:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: 12
29+
registry-url: https://registry.npmjs.org/
30+
- run: npm ci
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34+
35+
# publish-gpr:
36+
# needs: build
37+
# runs-on: ubuntu-latest
38+
# steps:
39+
# - uses: actions/checkout@v2
40+
# - uses: actions/setup-node@v1
41+
# with:
42+
# node-version: 12
43+
# registry-url: https://npm.pkg.github.com/
44+
# scope: '@codingtools/cdt'
45+
# - run: npm ci
46+
# - run: npm publish
47+
# env:
48+
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ node_modules
99
/.idea
1010
cdt.iml
1111
**/.DS_Store
12-
output/*
13-
!output/.gitkeep
12+
13+
output
14+
output/**.json
15+
output/**.avro
16+
output/**.avsc
17+
1418
coverage/*.json
19+
20+

README.md

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CLI for Developers
1111
![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)
1212
[![GitHub contributors](https://img.shields.io/github/contributors/codingtools/cdt)](https://github.com/codingtools/cdt/graphs/contributors)
1313
[![License](https://img.shields.io/npm/l/@codingtools/cdt)](https://github.com/codingtools/cdt/blob/master/package.json)
14-
[![Greenkeeper badge](https://badges.greenkeeper.io/codingtools/cdt.svg)](https://greenkeeper.io/)
14+
1515
<!-- ![Node](https://img.shields.io/node/v/@codingtools/cdt) -->
1616
<!-- [![Downloads](https://img.shields.io/npm/dm/@codingtools/cdt)](https://npmjs.org/package/@codingtools/cdt) -->
1717

@@ -40,7 +40,7 @@ $ npm install -g @codingtools/cdt
4040
$ cdt COMMAND
4141
running command...
4242
$ cdt (-v|--version|version)
43-
@codingtools/cdt/0.1.6 darwin-x64 node-v12.9.0
43+
@codingtools/cdt/0.2.0 darwin-x64 node-v12.9.0
4444
$ cdt --help [COMMAND]
4545
USAGE
4646
$ cdt COMMAND
@@ -90,13 +90,14 @@ USAGE
9090
$ cdt avro [COMMAND]
9191
9292
OPTIONS
93+
-c, --command=command commands supported: get_schema,to_json,to_avro,to_csv
9394
-f, --file=file input file path
9495
-h, --help show CLI help
9596
-o, --output=output output file path
9697
-t, --schemaType=schemaType schema type file path
9798
```
9899

99-
_See code: [src/commands/avro.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/avro.ts)_
100+
_See code: [src/commands/avro.ts](https://github.com/codingtools/cdt/blob/v0.2.0/src/commands/avro.ts)_
100101

101102
## `cdt bundlephobia [PACKAGE]`
102103

@@ -112,7 +113,7 @@ OPTIONS
112113
-p, --packages=packages packages for which cost is required, can pass more than one separated by space
113114
```
114115

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

117118
## `cdt crypto [STRING]`
118119

@@ -132,7 +133,7 @@ OPTIONS
132133
-s, --string=string string to be encrypted/decrypted
133134
```
134135

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

137138
## `cdt datetime [DATE]`
138139

@@ -150,7 +151,7 @@ OPTIONS
150151
-z, --timezone=timezone Timezone for Datetime parsing, default: Your timezone
151152
```
152153

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

155156
## `cdt hash [STRING]`
156157

@@ -161,14 +162,14 @@ USAGE
161162
$ cdt hash [STRING]
162163
163164
OPTIONS
164-
-f, --file=file file to be hashed
165-
-h, --help show CLI help
166-
-o, --outputFile=outputFile output file path
167-
-s, --string=string string to be hashed
168-
-t, --type=type type of hash [SHA1(default), MD5, SHA256, SHA512, RMD160 or RIPEMD160]
165+
-f, --file=file file to be hashed
166+
-h, --help show CLI help
167+
-o, --output=output output file path
168+
-s, --string=string string to be hashed
169+
-t, --type=type type of hash [SHA1(default), MD5, SHA256, SHA512, RMD160 or RIPEMD160]
169170
```
170171

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

173174
## `cdt help [COMMAND]`
174175

@@ -196,15 +197,13 @@ USAGE
196197
$ cdt minify [FILE]
197198
198199
OPTIONS
199-
-f, --file=file file to be minified
200-
-h, --help show CLI help
201-
-o, --outputFile=outputFile output file path
202-
203-
-t, --type=type type of file to be minified, it will try to find type with extension supported: JS,
204-
HTML/HTM, CSS
200+
-f, --file=file file to be minified
201+
-h, --help show CLI help
202+
-o, --output=output output file path
203+
-t, --type=type type of file to be minified, it will try to find type with extension supported: JS, HTML/HTM, CSS
205204
```
206205

207-
_See code: [src/commands/minify.ts](https://github.com/codingtools/cdt/blob/v0.1.6/src/commands/minify.ts)_
206+
_See code: [src/commands/minify.ts](https://github.com/codingtools/cdt/blob/v0.2.0/src/commands/minify.ts)_
208207
<!-- commandsstop -->
209208

210209
## Acknowledgement
@@ -223,20 +222,42 @@ Please feel free to provide any suggestion for new utility in [Issues](https://g
223222

224223
## @codingtools/cdt
225224

226-
This Project is created and supported by [Ashish Patel](http://ashish.live/)
225+
This Project is created and managed by [Ashish Patel](http://ashish.live/)
227226

228227
## Releasing Version
229228
* this needs to be done from release* branch
229+
230+
### Increasing Version
231+
230232
```bash
231-
npm version patch
233+
npm version [patch|minor|major]
232234
```
233235
it will update readme.md and update package.json, also will create tag and commit.
234236

237+
### Publishing to NPM
238+
235239
```bash
236240
npm publish --access public
237241
```
238242
this will publish package to **npm** starting with updating README and publishing tarballs
239243

244+
> Already a Github Action is there to publish on pushing a tag.
245+
246+
### Creating Standalone Tarballs
247+
248+
```bash
249+
oclif-dev pack
250+
```
251+
this will release standalone tarballs for linux, macos and windows which we can extract and uses.
252+
253+
### Creating Installers
254+
255+
```bash
256+
oclif-dev pack:macos
257+
oclif-dev pack:win
258+
```
259+
these will create installers for macos and windows
260+
240261
## License
241262

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

0 commit comments

Comments
 (0)