-
Notifications
You must be signed in to change notification settings - Fork 0
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/wp scripts babel #7
Conversation
- build and start commands are still not available in latest wp-scripts version in npm. Use local. - create webpack and babel configs locally (not provided by wp-scripts yet) - add babel packages (not provided by wp-scripts yet)
it'll be provided by the build/start command if it doesn't found any in the project.
97c1d97
to
e1bbd2d
Compare
"@babel/preset-env": "^7.3.4", | ||
"@wordpress/babel-plugin-import-jsx-pragma": "file:../../gutenberg/packages/babel-plugin-import-jsx-pragma", | ||
"@wordpress/babel-preset-default": "file:../../gutenberg/packages/babel-preset-default", | ||
"@wordpress/browserslist-config": "file:../../gutenberg/packages/browserslist-config", | ||
"@wordpress/scripts": "file:../../gutenberg/packages/scripts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it sweet? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Testbed for WordPress/gutenberg#14168
Testing
cd wp-scripts
npm install
(note that this requires having Gutenberg locally checked to the branch of the PR above).npm run build