1.4.0 • Published 6 months ago

nanoweb-template v1.4.0

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

Nanoweb Template

Overview

Nanoweb Template is a minimal yet powerful project scaffolding tool designed for Nanoweb-based applications. It provides a structured environment with best practices for development, including ESLint, Rollup, and Vitest.

Features

  • Template-based configuration: Uses createRender.js to dynamically generate files.
  • Built-in ESLint setup: Supports React and Rollup configurations.
  • Automated build and testing: Uses Rollup for bundling and Vitest for testing.
  • Pre-configured package.json: Generates project-specific metadata and scripts.

Installation

To create a new project using this template, run:

git clone https://gitlab.com/nan.web/nanoweb-template my-package
cd my-package
node create.js

Or use the nanoweb-monorepo commands:

pnpm create-package my-package

Usage

Building the project

pnpm build

This command generates production-ready files in the dist or lib directory, depending on the configuration.

Running tests

pnpm test

This command executes unit tests using Vitest.

Linting the project

pnpm lint

Ensures code quality and enforces consistent styling using ESLint.

Contributing

Contributions are welcome! Please refer to CONTRIBUTING.md for guidelines on how to get involved.

License

This project is licensed under the ISC License. See LICENSE for more details.

1.4.0

6 months ago

1.3.0

6 months ago