Lots of beginner questions so I'm going to be explicit in my process.
I'm using a Windows server command prompt. I have ng and npm installed. I created the Hello World test app in Angular. I can use "ng serve" to build and run the app, and successfully see the output in a browser window. I type ng build -prod and it creates the /dist folder.
I created the repo in BitBucket and added my source code (not the /dist folder, though). I enabled pipelines and am using this yml:
image: trion/ng-cli
pipelines:
default:
- step:
script:
- cd my-app
- ng build -prod
Full error message is "The build command requires to be run in an Angular project, but a project definition could not be found." I added the cd command as I thought perhaps I wasn't in the proper folder.
Your project may require adding `npm install`. Let me know if that helps.
Thanks,
Peter
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.