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: support libraries, via @videojs/babel-config #306

Merged
merged 9 commits into from
Nov 2, 2020

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Oct 8, 2020

Support "libraries" that compile their module output to ./es and ./cjs for consumption by other node packages and our bundlers.

Requires:

spawnSync('npm', ['i', '--package-lock-only'], {stdio: 'inherit', cwd: this.destinationRoot()});
spawnSync('npm', ['ci'], {stdio: 'inherit', cwd: this.destinationRoot()});

spawnSync('npm', ['i', '--prefer-offline', '--no-audit', '--progress=false'], {stdio: 'inherit', cwd: this.destinationRoot()});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the speed of npm i with all of these options is ~20s faster then npm ci

@brandonocasey brandonocasey merged commit 5dddda0 into master Nov 2, 2020
@brandonocasey brandonocasey deleted the feat/library branch November 2, 2020 21:11
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.

2 participants