Skip to content

Rename everything: use scoped packages - #6495

Merged
hzoo merged 26 commits into
masterfrom
scoped-packages
Oct 17, 2017
Merged

hzoo merged 26 commits into
masterfrom
scoped-packages

Conversation

@hzoo

@hzoo hzoo commented Oct 17, 2017

Copy link
Copy Markdown
Member

Closes #5294 (rebased/fixed version of previous PR from like a year ago)

hzoo and others added 24 commits October 16, 2017 22:49
@hzoo hzoo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release Priority: High labels Oct 17, 2017
@@ -1,17 +1,17 @@
{
"name": "babel-plugin-codemod-optional-catch-binding",
"name" : "@babel/plugin-codemod-optional-catch-binding",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got an extra space before the colon here.

@@ -1,5 +1,5 @@
{
"name": "babel-preset-env",
"name" : "@babel/preset-env",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got an extra space before the colon here.

@babel-bot

babel-bot commented Oct 17, 2017 •

Copy link
Copy Markdown
Collaborator

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

@xtuc

xtuc commented Oct 17, 2017 •

Copy link
Copy Markdown
Member

Did you use a codemod for the switch to scoped?

I think it would be useful to publish it (even if it's a sed cli invocation) for plugin authors who'd like to switch easily.

Just in case, note that greenkeeper:

Public scoped packages (@ scope/name) work out of the box

@xtuc xtuc left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm. Works locally.

Are we going to deprecated the other packages (remember the complains about latest to env 😞 )?

@danez danez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@Andarist Andarist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, there is some followup work to be done though, would be good to list it down:

  • possibly renaming directories (+ repository urls) (+ relative paths to packages in READMEs)
  • change npm, badges et al urls
  • change some babel-preset-env links (probably should point to monorepo)
  • figure out babel-plugin-syntax-trailing-function-commas situation
  • is packages/babel-cli/index.js a deprecation message (should be removed) or helpful warning (should stay)?
  • packages/babel-code-frame/src/index.js has some deprecation warning in it - probably should be removed
  • there is leftover babel-plugin-transform-async-functions/package.json - what should be done with it?
  • packages/babel-runtime/scripts/build-dist.js uses some relative paths - grabbing stuff directly from 'packages', imho packages directories should be independent

@hzoo
hzoo merged commit 830c527 into master Oct 17, 2017
@hzoo

hzoo commented Oct 17, 2017 •

Copy link
Copy Markdown
Member Author

Alright it's fine to merge as is and do the rest ^.

I think we can figure out the directory change later/npm/badge because it will be 0 downloads/links anyway.

Finally! 🎉


We should do all of the rest of those, could make issues for them too

@Andarist
Andarist deleted the scoped-packages branch October 17, 2017 13:02
hzoo pushed a commit that referenced this pull request Oct 19, 2017
- Use it via UNPKG: https://unpkg.com/babel-standalone@6/babel.min.js. This is a simple way to embed it on a webpage without having to do any other setup.
- Install via Bower: `bower install babel-standalone`
- Install via NPM: `npm install --save babel-standalone`
- Use it via UNPKG: https://unpkg.com/@babel/standalone@6/babel.min.js. This is a simple way to embed it on a webpage without having to do any other setup.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We need to double check that this is the correct syntax for Unpkg URLs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it is - syntax is as follows: https://unpkg.com/package_name@version/path/to/file.js

where package_name might be scoped

@@ -16,11 +16,11 @@ It's true that using Babel through Webpack, Browserify or Gulp should be suffici
Installation
============

There are several ways to get a copy of babel-standalone. Pick whichever one you like:
There are several ways to get a copy of @babel/standalone. Pick whichever one you like:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think some of this text should still say babel-standalone, what do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe just "standalone Babel"? 🤔

- Install via Bower: `bower install babel-standalone`
- Install via NPM: `npm install --save babel-standalone`
- Use it via UNPKG: https://unpkg.com/@babel/standalone@6/babel.min.js. This is a simple way to embed it on a webpage without having to do any other setup.
- Install via Bower: `bower install @babel/standalone`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is definitely not right, but maybe we should just remove this line now :P

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm +1 to drop Bower

Haroenv added a commit to Haroenv/babel that referenced this pull request Oct 29, 2017
Since the package won't be downloadable as `@babel/standalone` it's best to just remove it, since it's pretty much deprecated as is. I left the other mention of babel-standalone-bower since I guess that's just the name and still useful in other cases

cc @Daniel15 

reported in babel#6495 (review)
danez pushed a commit that referenced this pull request Mar 12, 2018
* docs(babel-standalone): remove bower mention

Since the package won't be downloadable as `@babel/standalone` it's best to just remove it, since it's pretty much deprecated as is. I left the other mention of babel-standalone-bower since I guess that's just the name and still useful in other cases

cc @Daniel15 

reported in #6495 (review)

* Update README.md
marashiai pushed a commit to marashiai/babel that referenced this pull request Mar 17, 2018
* docs(babel-standalone): remove bower mention

Since the package won't be downloadable as `@babel/standalone` it's best to just remove it, since it's pretty much deprecated as is. I left the other mention of babel-standalone-bower since I guess that's just the name and still useful in other cases

cc @Daniel15 

reported in babel#6495 (review)

* Update README.md
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 1, 2018
@lock lock Bot locked as resolved and limited conversation to collaborators May 1, 2018
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: Breaking Change 💥 A type of pull request used for our changelog categories for next major release Priority: High

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants