1.7.13 • Published 3 years ago

@lunde/create-react-pkg v1.7.13

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@lunde/create-react-pkg

This is an inst template for creating React packages with or without TypeScript.

📦 What's in the ****ing box?

Packages are created with a variety of build tools that make your life easier

Build tools

LibraryDescription
Babel 7For compiling jsx and ES6 code to ES5
JestFor testing components
PrettierFor formatting code, READMEs, and configs
ESLintFor linting the application
YarnFor deterministic builds and monorepos
Travis CI(Optional) For continuous integration
TypeScript(Optional) For adding type definitions to your package

🔧 Usage

# Use `npx`
npx @lunde/create-react-pkg my-pkg

# Or install it globally
yarn global add @lunde/create-react-pkg
create-react-pkg my-pkg --ts

Arguments

create-react-pkg <name> [--ts]

ArgumentTypeRequiredDescription
namestringtrueThe name of the package you're creating. This is also the name of the directory the package will be created in.
--tsbooleanfalseCreates a TypeScript package

📜 Package scripts

build

Builds types (if --ts), commonjs, and ECMAScript distributions

build-main

Builds the commonjs distribution

build-module

Builds the ECMAScript distribution

format

Formats src and dist directories with prettier as defined by .prettierrc

lint

Runs eslint on the package source

prepublishOnly

Runs before the package is published. This calls lint, build, test, and format scripts

test

Tests the package with jest as defined by options in package.json -> jest

validate

Runs check-types (if --ts), lint, test, and format scripts

🚨 TypeScript-specific scripts

build-types

Builds the TypeScript type definitions

check-types

Runs a type check on the project using the local tsconfig.json

🐺 Husky hooks

pre-commit

Runs lint-staged and the build-types script

💨 Lint staged

Used for calling commands on git staged files that match a glob pattern

**/*.{ts,tsx,js,jsx}

Calls eslint and prettier --write to lint and format the staged files

**/*.{md,yml,json,eslintrc,prettierrc}

Calls prettier --write to format the staged files

LICENSE

MIT

1.7.13

3 years ago

1.7.12

3 years ago

1.7.11

3 years ago

1.7.10

3 years ago

1.7.9

3 years ago

1.7.8

3 years ago

1.7.7

3 years ago

1.7.6

3 years ago

1.7.5

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.77

4 years ago

1.0.76

4 years ago

1.0.75

4 years ago

1.0.74

4 years ago

1.0.73

4 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.69

4 years ago

1.0.70

4 years ago

1.0.68

4 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago