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

Fix "dev" script to be cross-platform #2922

Merged
merged 3 commits into from
Feb 6, 2018
Merged

Conversation

igor-dv
Copy link
Member

@igor-dv igor-dv commented Feb 6, 2018

Issue: After my changes in "ts distribution", the dev script works only in windows

What I did

I've used cross-env-shell to fix this.

@igor-dv igor-dv added the maintenance User-facing maintenance tasks label Feb 6, 2018
@igor-dv igor-dv self-assigned this Feb 6, 2018
@codecov
Copy link

codecov bot commented Feb 6, 2018

Codecov Report

Merging #2922 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2922   +/-   ##
=======================================
  Coverage   35.99%   35.99%           
=======================================
  Files         429      429           
  Lines        9503     9503           
  Branches      972      976    +4     
=======================================
  Hits         3421     3421           
+ Misses       5448     5423   -25     
- Partials      634      659   +25
Impacted Files Coverage Δ
app/vue/src/server/config/babel.js 0% <0%> (-100%) ⬇️
app/polymer/src/server/babel_config.js 0% <0%> (-76.67%) ⬇️
app/vue/src/server/utils.js 0% <0%> (-53.58%) ⬇️
...codemod/src/transforms/update-organisation-name.js 40.62% <0%> (ø) ⬆️
lib/core/src/client/preview/syncUrlWithStore.js 40.9% <0%> (ø) ⬆️
...tive/src/preview/components/StoryListView/index.js 0% <0%> (ø) ⬆️
lib/codemod/src/transforms/update-addon-info.js 50% <0%> (ø) ⬆️
addons/knobs/src/components/types/Color.js 8.1% <0%> (ø) ⬆️
addons/info/src/components/PropTable.js 87.23% <0%> (ø) ⬆️
addons/storyshots/src/vue/renderTree.js 60% <0%> (ø) ⬆️
... and 55 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e157ffa...16c3810. Read the comment docs.

@Hypnosphi
Copy link
Member

Thanks, will test

package.json Outdated
@@ -16,8 +16,8 @@
"coverage": "codecov",
"danger": "danger",
"dev": "concurrently --kill-others \"yarn dev:ts\" \"yarn dev:js\"",
"dev:js": "lerna exec --parallel -- node %LERNA_ROOT_PATH%/scripts/watch-js.js",
"dev:ts": "lerna exec --parallel -- node %LERNA_ROOT_PATH%/scripts/watch-ts.js",
"dev:js": "lerna exec --parallel -- cross-env-shell node $LERNA_ROOT_PATH/scripts/watch-js.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It fails unless I replace $ with \\$

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Works for me too

@igor-dv igor-dv merged commit b934857 into master Feb 6, 2018
@igor-dv igor-dv deleted the cross-platform-dev-script branch February 6, 2018 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants