This is a sample project which created by Youmen SharePoint Generator with deployment automation script.
gulp serve
- gulp clean
- gulp bundle --ship
- gulp package-solution --ship
OR
- npm run package
Use my article for all the steps and instructions:
https://www.linkedin.com/pulse/spfx-solution-deployment-automation-process-end-praveen-battula/
https://www.linkedin.com/pulse/sharepoint-framework-deployment-part-2-automation-using-battula/