Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/epranka/create-tsx-package

Starter kit for React Typescript package [DEPRECATED]
https://github.com/epranka/create-tsx-package

boilerplate create generator jsx package package-creation package-runner react semantic-release starter-kit templates travis tsx tsx-sample typescript

Last synced: 21 days ago
JSON representation

Starter kit for React Typescript package [DEPRECATED]

Awesome Lists containing this project

README

        

⚒️ @epranka/create-tsx-package

[DEPRECATED. See below]

Starter kit for React Typescript module



deprecated


license


npm version

npm downloads

build status

ci travis

semantic release

## DEPRECATION

This module supports only TSX package and may have issues. Please use [@epranka/create-package](https://github.com/epranka/create-package) because this module will no longer be maintained.

[@epranka/create-package](https://github.com/epranka/create-package) is clone of this module, but with JS, JSX, TS, TSX support and many improvements.

## Features

- Interactive package creation
- Silent mode
- Package manager selection (yarn or npm)
- Choices of ES, CJS, UMD modules and all together
- Rollup bundler
- Tests
- Semantic Release
- README template with badges
- Continuous integration: Travis
- License selection (ISC, MIT, UNLICENSED)

## Create package

1. With package runners

```bash
$ npx @epranka/create-tsx-package my-package

# or

$ yarn create @epranka/tsx-package my-package
```

2. Install globally

```bash
$ npm install -g @epranka/create-tsx-package

# or

$ yarn global add @epranka/create-tsx-package

# and then use

$ create-tsx-package my-package

```

If automated semantic releases are selected, package generation will take longer

## CLI Help

```
Usage:
$ create-tsx-package [out-dir]

Commands:
[out-dir] Generate in a or current directory

For more info, run any command with the `--help` flag:
$ create-tsx-package --help

Options:
-i, --info Print out debugging information relating to the local environment
-s, --silent Silent mode. Create package without user interaction
--name Name of the package
--description Description of the package
--author Author of package
--email of author
--mit MIT license. Default is ISC
--umd Build UMD module with
--unlicensed Unlicensed. This option overrides --mit option
--no-private No private:true property in package.json (default: true)
--no-es Don't build ES Module (default: true)
--no-travis Don't use travis ci. (default: true)
--no-tests Don't use tests (default: true)
--no-semantic-release Don't use semantic release (default: true)
--npm Use NPM package manager. Default is YARN
--verbose Show debug logs
-h, --help Display this message
-v, --version Display version number
```

## Structure

Created package will have following structure (if tests, Semantic Release and Travis is selected)

```
my-package
├── src
│ └── index.tsx
├── __tests__
│ └── index.spec.tsx
├── node_modules
├── jest.config.js
├── LICENSE
├── package.json
├── README.md
├── rollup.config.js
├── tsconfig.json
├── tslint.json
└── yarn.lock
```

## Build

```bash
# to build

$ npm run build

# or

$ yarn build

# to watch changes

$ npm run watch

# or

$ yarn watch
```

## Badge

Let people know that your package is generated using **@epranka/create-tsx-package** by including this badge in your readme


generated with

Using Markdown

```
[![generated with @epranka/create-tsx-package](https://img.shields.io/badge/generated%20with-%40epranka%2Fcreate--tsx--package-blue)](https://github.com/epranka/create-tsx-package)
```

Using HTML

```

generated with

```

## Author

Edvinas pranka ([[email protected]](mailto:[email protected]))

Follow on Twitter [@epranka](https://twitter.com/epranka)

https://www.kodmina.lt

## License

ISC License

Copyright (c) 2019, Edvinas Pranka ([email protected])

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.