@nerdjs/nerd-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.24 • Public • Published

Nerd-Network library starter

styled with prettier

A Nerd-network library to handle API.

Usage

npm install

Features

Importing library

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

import myLib from 'mylib'

Additionally, you can import the transpiled modules from dist/lib in case you have a modular library:

import something from 'mylib/dist/lib/something'

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

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.

Good news: the setup is here for you, you must only include the dependency name in external property within rollup.config.js. For example, if you want to exclude lodash, just write there external: ['lodash'].

Readme

Keywords

none

Package Sidebar

Install

npm i @nerdjs/nerd-core

Weekly Downloads

5

Version

1.0.24

License

ISC

Unpacked Size

28.5 kB

Total Files

38

Last publish

Collaborators

  • olivierkastel
  • ouralien
  • eric_ga
  • remiwid