Uh oh!
There was an error while loading. Please reload this page.
Update tooling - #79
Conversation
rmarren1
commented
Nov 6, 2018
Should there be a demo for this repo?
|
T4rk1n
left a comment
There was a problem hiding this comment.
💃 Just not sure about the benefits of adding prettier to auto generated code.
| - "node_modules" | ||
| - run: | ||
| name: prettier --list-different |
There was a problem hiding this comment.
Why prettier ? It's auto generated code.
There was a problem hiding this comment.
True, this would probably just get annoying. I'll remove it
| throw new Error('\nIt looks like there are uncommitted changes! Aborting until these changes have been resolved.\n'); | ||
| } else { | ||
| execSh([ | ||
| 'npm publish --otp', |
There was a problem hiding this comment.
Think you can remove the --otp, it will asks if need be.
There was a problem hiding this comment.
Okay, wasn't sure what that did, I just use npm publish then allow it to 401 and ask for the OTP. This was copied from the dash-core-components repo, so this happens there as well.
rmarren1
commented
Dec 1, 2018
| "start": "webpack-serve ./webpack.serve.config.js --open", | ||
| "test": "eslint --fix src", | ||
| "uninstall-local": "pip uninstall dash-html-components -y", | ||
| "prepublish": "npm run clean && npm run generate-components && npm test && npm run build:js && npm run build:js-dev && npm run build:py", |
There was a problem hiding this comment.
Can we condense this scripts by using build:all ?
rmarren1
commented
Dec 7, 2018
|
rmarren1
commented
Dec 11, 2018
@T4rk1n (reminder) |
| "clean-src": "rm -rf src/* && mkdir -p src/components", | ||
| "clean": "npm run clean-lib && npm run clean-src", | ||
| "copy-lib": "cp lib/* dash_html_components", | ||
| "clean": "rm -rf src/* && mkdir -p src/components", |
There was a problem hiding this comment.
This won't work on windows natively.
T4rk1n
left a comment
There was a problem hiding this comment.
lgtm, the clean command and publish script doesn't work on windows.
rmarren1
commented
Dec 12, 2018
publish script is same as in DCC, so that problem will exist there too. |
rmarren1
commented
Dec 12, 2018
Not sure the best way to solve this, some options I can think of:
|
| "test": "eslint --fix src", | ||
| "install-local": "python setup.py install", | ||
| "uninstall-local": "pip uninstall dash-html-components -y", | ||
| "prepublish": "npm run clean && npm run generate-components && npm run build:all", |
There was a problem hiding this comment.
We should remove prepublish entirely and use the new npm methods it warns about instead. This will throw when you install on windows.
T4rk1n
commented
Dec 12, 2018
Let's not fix those platform issues for now, clean/generate will run under cygwin/gitbash. Windows dev can just run the commands to publish separately, that's what I do. |
rmarren1
commented
Dec 12, 2018
👍 |
Update tooling like in plotly/dash-core-components#299
Also, this moved
requirements.txt -> .circleci/dev/dev-requirements.txtand makes that file minimal, like in this PR: plotly/dash#439