Skip to content

Commit

Permalink
feat: rename to create-ts-lib-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbash committed Apr 12, 2021
1 parent 4e4882e commit 656e9cb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# gh-create-ts-lib
# create-ts-lib-gh

[![Deploy](https://github.com/glebbash/gh-create-ts-lib/workflows/build/badge.svg)](https://github.com/glebbash/gh-create-ts-lib/actions)
[![Coverage Status](https://coveralls.io/repos/github/glebbash/gh-create-ts-lib/badge.svg?branch=master)](https://coveralls.io/github/glebbash/gh-create-ts-lib?branch=master)
[![Deploy](https://github.com/glebbash/create-ts-lib-gh/workflows/build/badge.svg)](https://github.com/glebbash/create-ts-lib-gh/actions)
[![Coverage Status](https://coveralls.io/repos/github/glebbash/create-ts-lib-gh/badge.svg?branch=master)](https://coveralls.io/github/glebbash/create-ts-lib-gh?branch=master)

Cli to create public typescript libraries hosted on github.

Usage:

```sh
npx gh-create-ts-lib
npx create-ts-lib-gh
```

What's included:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gh-create-ts-lib",
"name": "create-ts-lib-gh",
"version": "0.0.0",
"description": "Cli to create public typescript libraries hosted on github",
"keywords": [
Expand All @@ -8,18 +8,18 @@
"library",
"typescript"
],
"main": "dist/lib/gh-create-ts-lib.js",
"typings": "dist/types/gh-create-ts-lib.d.ts",
"main": "dist/lib/create-ts-lib-gh.js",
"typings": "dist/types/create-ts-lib-gh.d.ts",
"files": [
"dist"
],
"bin": {
"gh-create-ts-lib": "dist/lib/gh-create-ts-lib.js"
"create-ts-lib-gh": "dist/lib/create-ts-lib-gh.js"
},
"author": "glebbash <glebbash@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/glebbash/gh-create-ts-lib"
"url": "https://github.com/glebbash/create-ts-lib-gh"
},
"license": "MIT",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/gh-create-ts-lib.spec.ts → src/create-ts-lib-gh.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { mocked } from 'ts-jest/utils';
jest.mock('./setup-project');
jest.mock('./get-project-info');

describe('gh-create-ts-lib', () => {
describe('create-ts-lib-gh', () => {
it('gets project info and sets up project', async () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const info: ProjectInfo = 1 as any;

mocked(getProjectInfo).mockResolvedValue(info);

await require('./gh-create-ts-lib');
await require('./create-ts-lib-gh');

expect(getProjectInfo).toBeCalled();
expect(setupProject).toBeCalledWith(info);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ npm i <%= library.name %>

<!-- TODO: add usage examples -->

Bootstrapped with: [gh-create-ts-lib](https://github.com/glebbash/gh-create-ts-lib)
Bootstrapped with: [create-ts-lib-gh](https://github.com/glebbash/create-ts-lib-gh)

This project is [Mit Licensed](LICENSE).

0 comments on commit 656e9cb

Please sign in to comment.