Posts

Showing posts from April, 2017

Finally... Package.json.js

Image
I know I have been promising to finish looking at the default files created Angular CLI for over a week now and finally we get there. Granted this isn't the most exciting subject but when we start coding in the next post, you will need to know about these files. So let's take a look at the package.json.js file. The file itself breaks down into three sections; Settings, Dependencies and DevDependencies. Let's do a quick review of each section. Settings There are a couple things you want to look at in the Settings section. First are the name, version and author properties. These are pretty obvious but I still wanted to draw your attention to them since a lot of folks leave them at the default. Take a few moments and update these. Next lets look at the start property, by default it is set to "ng serve" but if you want to run your Angular 2 app locally, you will need to change this. Angular has no concept of localhost so you need to modify this to add ...