๐๏ธ Base repository for building JavaScript apps or libraries.
To use this template, clone this repository and rename all "Foundation" instances to the name of your library. Set this package to "public" before publishing it.
nvm installcp .env.template .env.localnpm install
- List the main features of the library
- Explain how it distinguishes from other libraries
Everything is exported from the main entry-point through an ES6 module:
import { add } from "foundation";Install with the Node Package Manager:
npm install foundationDocumentation is generated here.
npm run devnpm run dev:test(or use dedicated Vitest plugin of your IDE)
Import exported library items from the "#lib" alias:
import { add } from "#lib";npm run build:lib- Set the
privateproperty tofalsein package.json npm run release:init
npm run release:alphanpm run release:betanpm run release:patchnpm run release:minornpm run release:major
npm run devnpm run dev:test(or use dedicated Vitest plugin of your IDE)
npm run build:app- OPTIONAL:
export ENV_PATH=path/to/extra/dot_env/file npm start
List all environment variables used by the application:
ENV_PATH: Path to an optional environment file.LOG_LEVEL: One of the supported levels or"silent"to disable logging.