0.0.6 • Published 4 years ago

@mmsoft.npm/mylib1 v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Sample TypeScript based npm module

This project was bootstrapped with TSDX and uses browserify for boundling HTTP content. By default the following extra npm modules are also installed:

Local Development

Below is a list of commands you will probably find useful.

npm start or yarn start

Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.

Your library will be rebuilt if you make edits. Results are stored to 'dist' and 'www' folder.

npm run serve or yarn serve

Start simple HTTP server on port 3333. Server root is in 'www' directory. You can open browser and connect to http://localhost:3333

Note: Use 'chrome' script to start Chrome browser in debug mode. For debugging you can use VSC Chrome debugger in run or attach mode.

npm run chrome or yarn chrome

Start Google Chrome in debug mode waiting for connection on port 9222.

Note: First use 'serve' script to open HTTP server.

npm run build or yarn build

Bundles the package to the 'dist' folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

npm test or yarn test

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.