IdanCo / ng1bs4

AngularJS with Bootstrap 4
https://idanco.github.io/ng1bs4
38 stars 13 forks source link

Add Development instructions to README.md #32

Closed langdonx closed 7 years ago

langdonx commented 7 years ago

Instructions for getting started

  1. Install Node.js 6.x
  2. Fork the repository
  3. Clone the forked repository
  4. Run the following commands
    1. npm i
    2. npm run serve
  5. Open http://localhost:8080 in a browser

Instructions for after you've switched branches or merged from upstream

  1. Run the following commands
    1. npm prune
    2. npm i
    3. npm run serve
langdonx commented 7 years ago

It could simplify things if there was a start script in package.json. I think this is what a lot of folks are doing these days?

{ "start": "npm run build && npm run serve" }

Also, is there a way to get WebpackDevServer to open the browser for us?

IdanCo commented 7 years ago

Go for it!

actually the 'build' part is not necessary for development, so i think you can simply switch 'serve' with 'start', no?

langdonx commented 7 years ago

Haha, I'm not sure, this was partly me asking about the workflow and partly me trying help others with it.

I thought I ran into an error trying just serve, but I deleted dist/ and /docs and ran it again and it seems OK.