https://github.com/rshaker/smoketest-npm
A minimal project demonstrating how to bundle Typescript code for distribution as a node package.
https://github.com/rshaker/smoketest-npm
Last synced: 2 months ago
JSON representation
A minimal project demonstrating how to bundle Typescript code for distribution as a node package.
- Host: GitHub
- URL: https://github.com/rshaker/smoketest-npm
- Owner: rshaker
- License: mit
- Created: 2024-03-20T15:30:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T09:52:32.000Z (about 1 year ago)
- Last Synced: 2025-02-15T11:44:45.305Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smoketest-npm
A minimal template project demonstrating how to bundle Typescript code for distribution as a nodejs package, and as a umd-compatible download through [unpkg.com](https://unpkg.com/@rshaker/smoketest-npm).
## Usage
```sh
% git clone https://github.com/rshaker/smoketest-npm
% cd smoketest-npm
``````sh
% nvm useFound '/Users/rshaker/smoketest-npm/.nvmrc' with version
Now using node v18.12.1 (npm v9.2.0)
``````sh
% npm install
% npm build
``````sh
% node test/testNode.jsNode.js test passed successfully.
``````sh
% open test/testBrowser.htmlBrowser test passed successfully.
```