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

Import babel-plugin-transform-unicode-property-regex #6499

Merged
merged 5 commits into from Oct 18, 2017
Merged

Import babel-plugin-transform-unicode-property-regex #6499

merged 5 commits into from Oct 18, 2017

Conversation

mathiasbynens
Copy link
Contributor

Original: https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex

Moving it into the official Babel repository makes it easier to maintain the transform.

@hzoo hzoo added this to In Progress in Core Oct 17, 2017
"version": "3.0.0",
"description": "Compile Unicode property escapes in Unicode regular expressions to ES5.",
"homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-property-regex",
"main": "dist/index.js",
Copy link
Member

Choose a reason for hiding this comment

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

we are using lib/index.js in our packages

"dist"
],
"scripts": {
"build": "babel src -d dist",
Copy link
Member

@hzoo hzoo Oct 17, 2017

Choose a reason for hiding this comment

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

Can remove these scripts and devDeps since we have a build/test runner already

"@babel/helper-plugin-test-runner": "7.0.0-beta.3"

@@ -0,0 +1,55 @@
# babel-plugin-transform-unicode-property-regex
Copy link
Member

Choose a reason for hiding this comment

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

It should be @babel/plugin-transform-unicode-property-regex

## Installation

```sh
$ npm install babel-plugin-transform-unicode-property-regex
Copy link
Member

Choose a reason for hiding this comment

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

Also here

"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.26.0",
Copy link
Member

Choose a reason for hiding this comment

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

I think we can use Babel 7?

Original: https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex

Moving it into the official Babel repository makes it easier to maintain the transform.
@existentialism
Copy link
Member

existentialism commented Oct 17, 2017

@mathiasbynens mind if I make a few cleanup tweaks to this PR?

@mathiasbynens
Copy link
Contributor Author

@existentialism Of course not! Go ahead :) Thanks!

@babel-bot
Copy link
Collaborator

babel-bot commented Oct 17, 2017

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/5376/

Copy link
Member

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

👏

@@ -13,6 +13,6 @@
"@babel/plugin-transform-class-properties": "7.0.0-beta.3",
"@babel/plugin-transform-object-rest-spread": "7.0.0-beta.3",
"@babel/plugin-transform-optional-catch-binding": "7.0.0-beta.3",
"babel-plugin-transform-unicode-property-regex": "^2.0.5"
"@babel/plugin-transform-unicode-property-regex": "7.0.0-beta.3"
Copy link
Member

Choose a reason for hiding this comment

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

@hzoo
Copy link
Member

hzoo commented Oct 17, 2017

looks good, almost done

@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Oct 17, 2017
],
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-property-regex.git"
Copy link
Member

Choose a reason for hiding this comment

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

I think .git should be removed, since that url doesn't point to the git repo itself but to a subdirectory.

@@ -2,7 +2,7 @@
"name": "@babel/plugin-transform-unicode-property-regex",
"version": "7.0.0-beta.3",
"description": "Compile Unicode property escapes in Unicode regular expressions to ES5.",
"homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-property-regex",
"homepage": "https://babeljs.io/",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other transforms in packages point to the tree URL. Why would this one be different?

Copy link
Member

Choose a reason for hiding this comment

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

Looks like we handle the homepage key relatively inconsistently: most transforms don't have it, except transform-regenerator which has the tree URL; the rest point to the website.

Copy link
Member

@hzoo hzoo Oct 17, 2017

Choose a reason for hiding this comment

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

on npm

The url to the project homepage.

So I think the site sounds right? shrug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm… The “project” in this case is this particular transform, not Babel itself (which is the parent project) IMHO. No big deal either way :)

Copy link
Member

@hzoo hzoo Oct 17, 2017

Choose a reason for hiding this comment

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

I'm ok with either, if we want to do the url of the package then we should change everything, although I thought repo covers that

Copy link
Member

Choose a reason for hiding this comment

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

Let's decide and normalize in a followup PR?

@mathiasbynens
Copy link
Contributor Author

mathiasbynens commented Oct 18, 2017 via email

@jridgewell jridgewell merged commit 5d4c736 into babel:master Oct 18, 2017
mathiasbynens added a commit to mathiasbynens/babel-plugin-transform-unicode-property-regex that referenced this pull request Oct 18, 2017
@mathiasbynens mathiasbynens deleted the unicode-property-escapes branch October 18, 2017 23:49
@hzoo hzoo moved this from In Progress to Done in Core Oct 19, 2017
mathiasbynens added a commit to mathiasbynens/babel-plugin-transform-unicode-property-regex that referenced this pull request Nov 11, 2017
mathiasbynens added a commit to mathiasbynens/babel-plugin-transform-unicode-property-regex that referenced this pull request Dec 19, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
No open projects
Core
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants