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

Add/wp scripts babel #7

Merged
merged 13 commits into from
Mar 14, 2019
Merged

Add/wp scripts babel #7

merged 13 commits into from
Mar 14, 2019

Conversation

oandregal
Copy link
Owner

@oandregal oandregal commented Feb 28, 2019

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
  • Verify that the file is built, activate the plugin in your WordPress environment and test that it works (look for a block titled ♥ )

@oandregal oandregal self-assigned this Feb 28, 2019
- 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.
"@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"
Copy link

Choose a reason for hiding this comment

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

Isn't it sweet? :)

Copy link
Owner Author

Choose a reason for hiding this comment

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

It is!

Copy link

Choose a reason for hiding this comment

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

💖

Copy link

Choose a reason for hiding this comment

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

❤️

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.

4 participants