pnp / sp-js-provisioning

JavaScript Provisioning Library
Other
10 stars 5 forks source link

Can't Build, missing build script #5

Open patrick-rodgers opened 5 years ago

patrick-rodgers commented 5 years ago

Category

[ ] Enhancement [X] Bug [ ] Question

Expected / Desired Behavior / Question

Trying to execute a release following the instructions from #4.

Observed Behavior

λ npm run build
npm ERR! Windows_NT 10.0.17763
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\patrodg\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v8.11.3
npm ERR! npm  v3.10.8

npm ERR! missing script: build
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\github\sp-js-provisioning\npm-debug.log

Steps to Reproduce

  1. Clone Repo
  2. npm install
  3. npm run build

Also note there is no build script defined in the package.json.

patrick-rodgers commented 5 years ago

@olemp can you have a quick look please?

olemp commented 5 years ago

Oh, sorry, my bad @patrick-rodgers. It's gulp build. We could add an npm task for build aswell though.

patrick-rodgers commented 5 years ago

I am not really concerned with exactly the commands to run, just that they are documented and understood. I am assuming when you tested you were using gulp build?

olemp commented 5 years ago

Yes, I did, haven't really done any edits to the build setup. We could create an issue for improving the build if you want.

patrick-rodgers commented 5 years ago

Couple more questions:

I don't mean to tell anyone what to do, this is a community project. My only concern is ensuring once published it works as you (and consumers) expect. I am not going to go through and test things - so relying on folks contributing to ensure things are correct.

Edit: I will add that since this was branched (years ago?) we have made significant changes to how the build works in pnpjs. Some of it might be helpful here and other parts likely not as this is still a single library repo. But there are likely improvements that could be made to the build process, if you wanted.

olemp commented 5 years ago

No problem @patrick-rodgers. While developing this "lib", I've pushed lib to git to so I could include the git reference in other projects using this lib. We should probably ignore lib in .gitignore, and make sure lib is included for npm publish. Sorry for forgetting this step!

patrick-rodgers commented 5 years ago

No worries, just want to have it be successful once published. Do you want to make a few changes and let me know and I'll re-pull and publish?

olemp commented 5 years ago

Will do @patrick-rodgers, thanks 👍

olemp commented 5 years ago

Fixed lib and build issue in https://github.com/pnp/sp-js-provisioning/pull/8.