Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Build, missing build script #5

Open
patrick-rodgers opened this issue Jan 24, 2019 · 9 comments
Open

Can't Build, missing build script #5

patrick-rodgers opened this issue Jan 24, 2019 · 9 comments

Comments

@patrick-rodgers
Copy link
Member

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
Copy link
Member Author

@olemp can you have a quick look please?

@olemp
Copy link
Contributor

olemp commented Jan 24, 2019

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

@patrick-rodgers
Copy link
Member Author

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
Copy link
Contributor

olemp commented Jan 24, 2019

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
Copy link
Member Author

patrick-rodgers commented Jan 24, 2019

Couple more questions:

  • Running gulp build changes the files and git now sees uncommitted changes, is that expected? Do I ignore it? Do I need to commit those changes?
  • It looks like you are checking in the built code under "lib" - should I just do a publish of what is there and skip the build, or should that be removed from github?

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
Copy link
Contributor

olemp commented Jan 24, 2019

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
Copy link
Member Author

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
Copy link
Contributor

olemp commented Jan 24, 2019

Will do @patrick-rodgers, thanks 👍

@olemp
Copy link
Contributor

olemp commented Oct 30, 2019

Fixed lib and build issue in #8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants