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

Add webpack commands into setup.py #809

Merged
merged 8 commits into from
Oct 3, 2019
Merged

Conversation

agjohnson
Copy link
Collaborator

This is a POC that shows building webpack through standard setup.py
commands. Any call to setup.py build or bdist or sdist will
trigger a Webpack build of the assets first. A non-zero exit code will
halt the process.

Also, moved the npm run dev command, which here is python setup.py watch, though there is perhaps something better here. There is already
python setup.py develop, which has a separate function, so I don't
want to collide there.

Example output here:
https://gist.github.com/agjohnson/cdaab364fe598daa7f3bef750cfb84dd

Refs #797

This is a POC that shows building webpack through standard `setup.py`
commands. Any call to `setup.py build` or `bdist` or `sdist` will
trigger a Webpack build of the assets first. A non-zero exit code will
halt the process.

Also, moved the `npm run dev` command, which here is `python setup.py
watch`, though there is perhaps something better here. There is already
`python setup.py develop`, which has a separate function, so I don't
want to collide there.

Example output here:
https://gist.github.com/agjohnson/cdaab364fe598daa7f3bef750cfb84dd

Refs #797
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
agjohnson and others added 2 commits August 22, 2019 12:33
Co-Authored-By: Jesse Tan <[email protected]>
Co-Authored-By: Jesse Tan <[email protected]>
@jessetan jessetan mentioned this pull request Oct 3, 2019
@agjohnson agjohnson merged commit ddf840c into master Oct 3, 2019
@agjohnson agjohnson deleted the agj/setup-webpack-commands branch October 3, 2019 16:51
@FRidh
Copy link

FRidh commented Dec 3, 2020

Fetching stuff from the web during build-time is bad practice, please don't do that.
#1014

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

Successfully merging this pull request may close these issues.

3 participants