Skip to content

[7.0] Replacing current decorators - #5290

Merged
hzoo merged 9 commits into
babel:7.0from
oleksandr-kuzmenko:replacing-decorators
Feb 15, 2017
Merged

hzoo merged 9 commits into
babel:7.0from
oleksandr-kuzmenko:replacing-decorators

Conversation

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor
Q A
Patch: Bug Fix? no
Major: Breaking Change? no
Minor: New Feature? yes
Deprecations? no
Spec Compliancy? yes
Tests Added/Pass? yes
Fixed Tickets Close #5283
License MIT
Doc PR
Dependency Changes

I started working on #5283 and I have some doubts about the tests. Please look at the tests structure. If all is well, I move other tests.

@mention-bot

Copy link
Copy Markdown

@Alxpy, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hzoo, @kaicataldo and @raspo to be potential reviewers.

@hzoo hzoo added this to the Babel 7 milestone Feb 9, 2017
hzoo added a commit that referenced this pull request Feb 10, 2017
hzoo added a commit that referenced this pull request Feb 10, 2017
@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

@hzoo So? Did I make everything right? Can I continue?

@xtuc

xtuc commented Feb 12, 2017

Copy link
Copy Markdown
Member

I updated the README to be consistent with the other packages.

```

## Installation
## Installation & Usage

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.

Nit: to keep it consistent with the rest of the docs let's keep Installation and Usage as separate sections


```sh
npm install --save-dev babel-plugin-transform-decorators
npm install --save-dev babel-plugin-transform-decorators`

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.

Oops, I added a trailing backtick there.

@babel-bot

Copy link
Copy Markdown
Collaborator

Hey @Alxpy! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time.

@codecov-io

codecov-io commented Feb 14, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #5290 into 7.0 will increase coverage by 0.47%.
The diff coverage is 94.23%.

@@            Coverage Diff             @@
##              7.0    #5290      +/-   ##
==========================================
+ Coverage   89.88%   90.35%   +0.47%     
==========================================
  Files         200      200              
  Lines        9884     9931      +47     
  Branches     2668     2698      +30     
==========================================
+ Hits         8884     8973      +89     
+ Misses       1000      958      -42
Impacted Files Coverage Δ
...ges/babel-plugin-transform-decorators/src/index.js 94.28% <94.23%> (+77.04%) ✅

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3098d2...488a064. Read the comment docs.

@existentialism

Copy link
Copy Markdown
Member

Nice work @Alxpy!

For the tests, it may be better if we break each test up into its own folder/exec so any specific failure would be easy to identify.

|- fixtures
|     |- class
|           |- descriptor-expr-order
|           |     |- exec.js
|           |- method-reverse-order
|           |     |- exec.js

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

@existentialism I have tried to do like you wrote, but with this structure, expected.js was created =(

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

@existentialism sorry, I was wrong. I forgot to remove the exec folder

@babel-bot

Copy link
Copy Markdown
Collaborator

Hey @Alxpy! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time.

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

@existentialism so, I think I moved all tests


Wrong:

```js

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.

Can we either not make this js or change it to json with wrapping {}?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

I finished work. Do I need to fix something?

"babel-types": "^6.22.0",
"babel-plugin-syntax-decorators": "^6.13.0",
"babel-helper-explode-class": "^6.22.0",
"babel-runtime": "^6.2.0",

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.

note: after this is merged, we should remove this dep in 7.0

@hzoo

hzoo commented Feb 15, 2017

Copy link
Copy Markdown
Member

Nope just a few docs things I'l do when merging, thanks!

@hzoo hzoo added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label Feb 15, 2017
@hzoo
hzoo merged commit fa2a373 into babel:7.0 Feb 15, 2017
@hzoo

hzoo commented Feb 15, 2017

Copy link
Copy Markdown
Member

Really nice work @Alxpy! looking forward to more contributors 😄

@oleksandr-kuzmenko

Copy link
Copy Markdown
Contributor Author

@hzoo I was glad to help! I think that I will be helping again.

hulkish added a commit to hulkish/babel that referenced this pull request May 2, 2017
* 7.0: (37 commits)
  resolved conflicts
  [7.0] Switch decorators-legacy to decorators in the Stage 1 Preset (babel#5318) (babel#5319)
  [7.0] Replacing current decorators with decorators-legacy (babel#5290)
  Add Node 7 to CI (babel#5165)
  [7.0] remove standalone babel package (babel#5293)
  .gitignore for test [skip ci]
  update yarn
  use [email protected] (babel#5254)
  [7.0] Run Babel's unittests in a custom sandbox (take 2). (babel#5263)
  [7.0] Remove quotes option (babel#5154)
  [7.0] List babylon plugins instead of * in babel-generator tests (babel#5231)
  Remove babel-runtime from packages' dependencies (babel#5218)
  Bump `detect-indent`. (babel#5226)
  [7.0] Add legacy-decorators to stage-1. Fixes babel#5220 (babel#5225)
  [7.0] Use lerna's --independent mode + changes (fixes babel#5221)
  [7.0] Bump `home-or-tmp` for `babel-register`. (babel#5189)
  [7.0] Added yarn.lock (babel#5175)
  [7.0] Remove old babel-runtime code (babel#5187)
  [7.0] Drop support for Node 5 (babel#5186)
  Remove path-is-absolute in favor of builtin path.isAbsolute (babel#5179)
  ...
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 6, 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: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants