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

feat: using npm-run-all -p to run scripts parallel #3100

Merged
merged 3 commits into from
Apr 12, 2022

Conversation

adispring
Copy link
Member

@adispring adispring commented Oct 23, 2020

npm-run-all can run scripts parallel(or sequential), which can save some time.

package.json Outdated
"partial-build": "node ./scripts/partialBuild",
"clean": "rimraf es/* src/* dist/* coverage/*",
"prepare": "npm run clean && npm run build",
"prepare": "npm-run-all --sequential clean build",
Copy link
Member

Choose a reason for hiding this comment

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

While I understand the rationale for the change above, why do you think this is better than the && version? Do you just see greater consistency by always using npm-run-all, or is it that this version is more explicit?

Copy link
Member Author

@adispring adispring Oct 24, 2020

Choose a reason for hiding this comment

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

There's no advantage to use npm-run-all --sequential than && version, just looks consistent.
I have changed npm-run-all --sequential back to &&, and made test run spec and lint parallel.

package.json Outdated
"coverage": "BABEL_ENV=cjs nyc --reporter=lcov mocha -- --require @babel/register",
"lint": "eslint scripts/bookmarklet scripts/*.js source/*.js source/internal/*.js test/*.js test/**/*.js lib/sauce/*.js lib/bench/*.js",
"browser_test": "testem ci",
"spec": "cross-env BABEL_ENV=cjs mocha --require @babel/register --reporter spec",
"test": "npm run spec && npm run lint"
"test": "npm-run-all --sequential spec lint"
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

CrossEye
CrossEye previously approved these changes Oct 23, 2020
Copy link
Member

@CrossEye CrossEye left a comment

Choose a reason for hiding this comment

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

This makes sense to me. My comment was just a question. But I'm fine with this either way.

CrossEye
CrossEye previously approved these changes Jan 22, 2022
CrossEye
CrossEye previously approved these changes Jan 22, 2022
@CrossEye
Copy link
Member

@adispring: Do you have time to look into the build problems? (I manually resolved the package-lock.json differences and may have caused something here.)

@adispring
Copy link
Member Author

adispring commented Jan 23, 2022

This is a eslint problem: #2368 (comment)

@adispring
Copy link
Member Author

This PR(#3158) introduce s regex symbol which is an es2018 feature, eslint will not parse /***/s by default.

@customcommander
Copy link
Member

This PR(#3158) introduce s regex symbol which is an es2018 feature, eslint will not parse /***/s by default.

This has been fixed in commit 56a36ec since then. @adispring I took the liberty to rebase your branch against ramda/master to fix that and a merge conflict with the lock file. Hope that's ok.

@customcommander
Copy link
Member

customcommander commented Apr 12, 2022

@CrossEye: no changes since your last review other than the lock file needed to be regenerated. The rebase allowed to get the changes that fixed the linter errors.

@CrossEye CrossEye merged commit 6d38d5a into ramda:master Apr 12, 2022
@adispring adispring mentioned this pull request Apr 7, 2023
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.

None yet

3 participants