Skip to content

Commit c60a740

Browse files
committed
refactor(pkg): Remove stage-1, just add plugins we use
1 parent 1bcf9a5 commit c60a740

File tree

4 files changed

+7
-170
lines changed

4 files changed

+7
-170
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"presets": [
33
["es2015", {loose: true}],
4-
"stage-1",
54
"react"
65
],
76
"plugins": [
8-
"transform-flow-comments"
7+
"transform-class-properties",
8+
"transform-object-rest-spread",
99
]
1010
}

lib/Resizable.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import {DraggableCore} from 'react-draggable';
55
import cloneElement from './cloneElement';
66

77
type Axis = 'both' | 'x' | 'y' | 'none';
8-
type Position = {
9-
10-
};
118
type State = {
129
resizing: boolean,
1310
width: number, height: number,
@@ -38,7 +35,7 @@ export type Props = {
3835
draggableOpts?: ?Object
3936
};
4037

41-
class Resizable extends React.Component {
38+
export default class Resizable extends React.Component {
4239

4340
static propTypes = {
4441
//
@@ -233,5 +230,3 @@ class Resizable extends React.Component {
233230
});
234231
}
235232
}
236-
237-
export default Resizable;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"babel-core": "^6.24.1",
3636
"babel-eslint": "^7.2.3",
3737
"babel-loader": "^7.0.0",
38-
"babel-plugin-transform-flow-comments": "^6.7.0",
38+
"babel-plugin-transform-class-properties": "^6.24.1",
39+
"babel-plugin-transform-object-rest-spread": "^6.23.0",
3940
"babel-preset-es2015": "^6.24.1",
4041
"babel-preset-react": "^6.24.1",
41-
"babel-preset-stage-1": "^6.24.1",
4242
"cross-env": "^4.0.0",
4343
"css-loader": "^0.28.0",
4444
"eslint": "^3.19.0",

yarn.lock

Lines changed: 2 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -281,22 +281,6 @@ babel-generator@^6.24.1:
281281
source-map "^0.5.0"
282282
trim-right "^1.0.1"
283283

284-
babel-helper-bindify-decorators@^6.24.1:
285-
version "6.24.1"
286-
resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330"
287-
dependencies:
288-
babel-runtime "^6.22.0"
289-
babel-traverse "^6.24.1"
290-
babel-types "^6.24.1"
291-
292-
babel-helper-builder-binary-assignment-operator-visitor@^6.24.1:
293-
version "6.24.1"
294-
resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664"
295-
dependencies:
296-
babel-helper-explode-assignable-expression "^6.24.1"
297-
babel-runtime "^6.22.0"
298-
babel-types "^6.24.1"
299-
300284
babel-helper-builder-react-jsx@^6.24.1:
301285
version "6.24.1"
302286
resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.24.1.tgz#0ad7917e33c8d751e646daca4e77cc19377d2cbc"
@@ -323,23 +307,6 @@ babel-helper-define-map@^6.24.1:
323307
babel-types "^6.24.1"
324308
lodash "^4.2.0"
325309

326-
babel-helper-explode-assignable-expression@^6.24.1:
327-
version "6.24.1"
328-
resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa"
329-
dependencies:
330-
babel-runtime "^6.22.0"
331-
babel-traverse "^6.24.1"
332-
babel-types "^6.24.1"
333-
334-
babel-helper-explode-class@^6.24.1:
335-
version "6.24.1"
336-
resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb"
337-
dependencies:
338-
babel-helper-bindify-decorators "^6.24.1"
339-
babel-runtime "^6.22.0"
340-
babel-traverse "^6.24.1"
341-
babel-types "^6.24.1"
342-
343310
babel-helper-function-name@^6.24.1:
344311
version "6.24.1"
345312
resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9"
@@ -379,16 +346,6 @@ babel-helper-regex@^6.24.1:
379346
babel-types "^6.24.1"
380347
lodash "^4.2.0"
381348

382-
babel-helper-remap-async-to-generator@^6.24.1:
383-
version "6.24.1"
384-
resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b"
385-
dependencies:
386-
babel-helper-function-name "^6.24.1"
387-
babel-runtime "^6.22.0"
388-
babel-template "^6.24.1"
389-
babel-traverse "^6.24.1"
390-
babel-types "^6.24.1"
391-
392349
babel-helper-replace-supers@^6.24.1:
393350
version "6.24.1"
394351
resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a"
@@ -427,39 +384,11 @@ babel-plugin-check-es2015-constants@^6.22.0:
427384
dependencies:
428385
babel-runtime "^6.22.0"
429386

430-
babel-plugin-syntax-async-functions@^6.8.0:
431-
version "6.13.0"
432-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
433-
434-
babel-plugin-syntax-async-generators@^6.5.0:
435-
version "6.13.0"
436-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a"
437-
438-
babel-plugin-syntax-class-constructor-call@^6.18.0:
439-
version "6.18.0"
440-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416"
441-
442387
babel-plugin-syntax-class-properties@^6.8.0:
443388
version "6.13.0"
444389
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
445390

446-
babel-plugin-syntax-decorators@^6.13.0:
447-
version "6.13.0"
448-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b"
449-
450-
babel-plugin-syntax-dynamic-import@^6.18.0:
451-
version "6.18.0"
452-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
453-
454-
babel-plugin-syntax-exponentiation-operator@^6.8.0:
455-
version "6.13.0"
456-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
457-
458-
babel-plugin-syntax-export-extensions@^6.8.0:
459-
version "6.13.0"
460-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721"
461-
462-
babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.8.0:
391+
babel-plugin-syntax-flow@^6.18.0:
463392
version "6.18.0"
464393
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
465394

@@ -471,34 +400,6 @@ babel-plugin-syntax-object-rest-spread@^6.8.0:
471400
version "6.13.0"
472401
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
473402

474-
babel-plugin-syntax-trailing-function-commas@^6.22.0:
475-
version "6.22.0"
476-
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3"
477-
478-
babel-plugin-transform-async-generator-functions@^6.24.1:
479-
version "6.24.1"
480-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db"
481-
dependencies:
482-
babel-helper-remap-async-to-generator "^6.24.1"
483-
babel-plugin-syntax-async-generators "^6.5.0"
484-
babel-runtime "^6.22.0"
485-
486-
babel-plugin-transform-async-to-generator@^6.24.1:
487-
version "6.24.1"
488-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
489-
dependencies:
490-
babel-helper-remap-async-to-generator "^6.24.1"
491-
babel-plugin-syntax-async-functions "^6.8.0"
492-
babel-runtime "^6.22.0"
493-
494-
babel-plugin-transform-class-constructor-call@^6.24.1:
495-
version "6.24.1"
496-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9"
497-
dependencies:
498-
babel-plugin-syntax-class-constructor-call "^6.18.0"
499-
babel-runtime "^6.22.0"
500-
babel-template "^6.24.1"
501-
502403
babel-plugin-transform-class-properties@^6.24.1:
503404
version "6.24.1"
504405
resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
@@ -508,16 +409,6 @@ babel-plugin-transform-class-properties@^6.24.1:
508409
babel-runtime "^6.22.0"
509410
babel-template "^6.24.1"
510411

511-
babel-plugin-transform-decorators@^6.24.1:
512-
version "6.24.1"
513-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d"
514-
dependencies:
515-
babel-helper-explode-class "^6.24.1"
516-
babel-plugin-syntax-decorators "^6.13.0"
517-
babel-runtime "^6.22.0"
518-
babel-template "^6.24.1"
519-
babel-types "^6.24.1"
520-
521412
babel-plugin-transform-es2015-arrow-functions@^6.22.0:
522413
version "6.22.0"
523414
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
@@ -686,36 +577,14 @@ babel-plugin-transform-es2015-unicode-regex@^6.24.1:
686577
babel-runtime "^6.22.0"
687578
regexpu-core "^2.0.0"
688579

689-
babel-plugin-transform-exponentiation-operator@^6.24.1:
690-
version "6.24.1"
691-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
692-
dependencies:
693-
babel-helper-builder-binary-assignment-operator-visitor "^6.24.1"
694-
babel-plugin-syntax-exponentiation-operator "^6.8.0"
695-
babel-runtime "^6.22.0"
696-
697-
babel-plugin-transform-export-extensions@^6.22.0:
698-
version "6.22.0"
699-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz#53738b47e75e8218589eea946cbbd39109bbe653"
700-
dependencies:
701-
babel-plugin-syntax-export-extensions "^6.8.0"
702-
babel-runtime "^6.22.0"
703-
704-
babel-plugin-transform-flow-comments@^6.7.0:
705-
version "6.22.0"
706-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-comments/-/babel-plugin-transform-flow-comments-6.22.0.tgz#8d9491132f2b48abd0656f96c20f3bbd6fc17529"
707-
dependencies:
708-
babel-plugin-syntax-flow "^6.8.0"
709-
babel-runtime "^6.22.0"
710-
711580
babel-plugin-transform-flow-strip-types@^6.22.0:
712581
version "6.22.0"
713582
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
714583
dependencies:
715584
babel-plugin-syntax-flow "^6.18.0"
716585
babel-runtime "^6.22.0"
717586

718-
babel-plugin-transform-object-rest-spread@^6.22.0:
587+
babel-plugin-transform-object-rest-spread@^6.23.0:
719588
version "6.23.0"
720589
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.23.0.tgz#875d6bc9be761c58a2ae3feee5dc4895d8c7f921"
721590
dependencies:
@@ -817,33 +686,6 @@ babel-preset-react@^6.24.1:
817686
babel-plugin-transform-react-jsx-source "^6.22.0"
818687
babel-preset-flow "^6.23.0"
819688

820-
babel-preset-stage-1@^6.24.1:
821-
version "6.24.1"
822-
resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0"
823-
dependencies:
824-
babel-plugin-transform-class-constructor-call "^6.24.1"
825-
babel-plugin-transform-export-extensions "^6.22.0"
826-
babel-preset-stage-2 "^6.24.1"
827-
828-
babel-preset-stage-2@^6.24.1:
829-
version "6.24.1"
830-
resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1"
831-
dependencies:
832-
babel-plugin-syntax-dynamic-import "^6.18.0"
833-
babel-plugin-transform-class-properties "^6.24.1"
834-
babel-plugin-transform-decorators "^6.24.1"
835-
babel-preset-stage-3 "^6.24.1"
836-
837-
babel-preset-stage-3@^6.24.1:
838-
version "6.24.1"
839-
resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395"
840-
dependencies:
841-
babel-plugin-syntax-trailing-function-commas "^6.22.0"
842-
babel-plugin-transform-async-generator-functions "^6.24.1"
843-
babel-plugin-transform-async-to-generator "^6.24.1"
844-
babel-plugin-transform-exponentiation-operator "^6.24.1"
845-
babel-plugin-transform-object-rest-spread "^6.22.0"
846-
847689
babel-register@^6.24.1:
848690
version "6.24.1"
849691
resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f"

0 commit comments

Comments
 (0)