Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Deploy an Angular CLI Project to now.sh

In this lesson we will add support for deploying our application to now.sh.

We will create a now object in package.json where we configure the name, the alias and the list of files we want to deploy.

We create an npm run-script called now-build and set the value to true to skip building the project on now.sh. The second run-script called now invokes now deploy && now alias.

After this we sun npm run build && npm run now to build and deploy our app!

You must be a Member to view code