2.0.8 • Published 2 months ago

@nerdjs/nerd-network v2.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

@nerdjs/nerd-network library

styled with prettier types typescript

A Nerd-network library to handle API calls. This library is bootstrapping with TSDX.

Features

Commands

TSDX scaffolds the new library inside /src.

To run the library, use:

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use npm run build or yarn build.

To run tests, use npm test or yarn test.

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import <feature> from '@nerdjs/nerd-network'

NPM scripts

  • npm start: Run npm run build in watch mode
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • prettier-format: Add setting up prettier format to code

Work locally

In order to use this library locally and make any change, inside /src use:

yarn link

This will create a symlink that can be use in the main project as:

yarn link "@nerdjs/nerd-network"

Bundle Analysis

size-limit is set up to calculate the real cost of your library with npm run size and visualize the bundle with npm run analyze.

Excluding peerDependencies

On library development, one might want to set some peer dependencies, and thus remove those from the final bundle. You can see in Rollup docs how to do that.

Rollup

TSDX uses Rollup as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.

TypeScript

tsconfig.json is set up to interpret dom and esnext types, as well as react for jsx. Adjust according to your needs.

Module Formats

CJS, ESModules, and UMD module formats are supported.

The appropriate paths are configured in package.json and dist/index.js accordingly. Please report if any issues are found.

Named Exports

Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.

2.0.8

2 months ago

2.0.7

3 months ago

2.0.6

4 months ago

2.0.5

5 months ago

2.0.4

5 months ago

2.0.3

8 months ago

2.0.2

10 months ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago