The following guide should be used for testing and deployment from the CLI (command line interface).
The following instructions assumes Node (which comes packaged with npm
) has been installed globally and is available at the command line. To install Node, use one of the two options:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then run brew install node
.It's recommended that NPM or Yarn (can be installed using these instructions) be used from the CLI to manage dependancies, test and build.
To deploy the project to Netlify for testing and demonstration, install netlify
at the CLI using npm install netlify-cli -g
. An account for Skillpod has been created for Netlify, with the siteId
stored in .netlify/state.json
for easy CLI deployment. When a new account is created, update the sideId
. The file netlify.toml
will contain the build settings.
npm install npm@latest -g
yarn policies set-version
package.json
and lock
files):
npm install
yarn
npm start
or yarn start
will test files on a local servernpm run build
or yarn build
to create a deployment build to project subfolder /build
netlify deploy
deplpoys test build to netlify server (specified in .netlify
folder)
netlify login
prior to this step to login from the CLInetlify deploy --prod
deploys to the Netlify production server. The current Netlify account can be found herenpm
to yarn
: https://yarnpkg.com/lang/en/docs/migrating-from-npm/