A simple demo of
The target application is created using Nest TypeScript starter template.
Install ncc
and pkg
globally.
$ yarn global add @zeit/ncc
$ yarn global add pkg
Clone and set up this repository.
$ git clone https://github.com/shikshan/ncc-pkg-demo.git
$ cd ncc-pkg-demo
$ yarn install
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
yarn start:prod
# bundle the application into a single file and a distributable.
# Check distro script in package.json for details.
yarn distro
# run the single file
yarn start:ncc
# run the standalone executable. It starts executable for mac, change as per your OS.
yarn start:pkg