Hmmm, I didn’t use Cli to set it up, so I’ll have to see if I can retroactively get Cli working on an existing project. Maybe there is something specific to their gh-pages build I’m missing and isn’t obvious when doing it manually.
Thanks for the link. I’ll report back.
Edit
Adding Cli retroactively may not be possible. Gonna rebuild it with Cli and a little copy-pasta…
So, my initial install of Angular Cli was borked. I spent a good 2 hours tweaking typings.ts, system-config.ts, angular-cli.build.json and a bunch of other things to try and get the Zone module recognised, and it was just a fresher install that was needed…
Then I had to jump through all those hoops again to get Marked installed.
Then getting the gh-pages deployment working was the final issue.
I still can’t seem to set the text area size with CSS, even though that worked fine in my original app yesterday…but I’ll settle for hard-coded HTML textarea rows which doesn’t work on mobile.
Here were the most helpful things that solved my problems…left for future generations.
I think the difficulty comes from everything being new to me. Because I haven’t used anything with any real build process before, figuring out all the ‘wiring’ took some getting used to.
Also, knowing that it is in beta makes it difficult to figure out whether the problems you are facing are just you, or are part of the growing pains of using immature software.
It’s particularly tricky because most people running into and solving the problems you face have been working with Angular2 for a while, and have a good foundation in Ang1/Ember/React. So when they pose their solutions to each other, they assume others coming across their solution have plenty of context and can join the dots relatively easily. Jumping in the deep end as a relative new-comer is hard, since a lot of solutions tell you what to do, but not what effect that should have, or why it is supposed to work, so I found that I had to try dozens of solutions because I couldn’t determine the appropriate one for me.
I got there in the end, and learned a bit about how build tools do their magic, but it was a slog!
Edit
It was much easier to implement this in React, but I still prefer A2 so far
I did the MD Previewer and Camper Leaderboard prior to learning about Angular CLI, so now I’m gonna have to do exactly what you did. I hope your suffering will help me avoid the slog!