Getting Started with flightpkg
Flight
Swift, reliable, multi-language package manager.
⚡ Installation
We don't have an official release of Flight yet, however, if you would like to give it a try, feel free to follow the steps below to install a pre-alpha release.
Linux:
Shell script (Recommended):
$ curl -qL https://raw.githubusercontent.com/flightpkg/flight/main/install.sh | bash
If the installer doesn't set your environment variables, add it using:
$ echo "export PATH=~/flight/bin:$PATH" >> YOUR_SHELL_CONFIG_HERE
...and restart your shell to use the command flight
NodeJS based installer:
$ curl https://raw.githubusercontent.com/flightpkg/flight/setup/dist/index.js -O && node index
Homebrew:
$ brew install flightpkg/flight
Windows:
> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/flightpkg/flight/main/install.ps1'))
Build From Source
Prerequisites: Git, Yarn and/or NPM, NodeJS.
Steps
- Clone the repository using git.
$ git clone https://github.com/flightpkg/flight
- CD into the
flight
directory.
$ cd flight
- Install @vercel/ncc globally if it isnt already installed
$ npm i @vercel/ncc
$ yarn global add @vercel/ncc
- Run the build script
$ npm run compile && npm run build
$ yarn compile && yarn build
- CD into the dist/js directory, then init.
$ cd dist/js
-------------
$ npm init
$ yarn init