From c383e05d1c130d487cbdb9940b9ff2b2692c5582 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Thu, 3 Aug 2017 16:14:12 +0200 Subject: [PATCH] Form Components: Modularize --- client/components/forms/package.json | 33 ++++++++ lerna.json | 8 ++ npm-shrinkwrap.json | 109 +++++++++++++++++++-------- package.json | 1 + 4 files changed, 119 insertions(+), 32 deletions(-) create mode 100644 client/components/forms/package.json create mode 100644 lerna.json diff --git a/client/components/forms/package.json b/client/components/forms/package.json new file mode 100644 index 00000000000000..a7e2b085f6637c --- /dev/null +++ b/client/components/forms/package.json @@ -0,0 +1,33 @@ +{ + "name": "@automattic/form-components", + "version": "0.1.0-alpha.3", + "description": "React-based form components, as used on WordPress.com", + "scripts": { + "test": "run-s -s test-client test-server test-test" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/automattic/wp-calypso.git" + }, + "keywords": [ + "wordpress", + "react", + "form", + "components" + ], + "author": "Automattic", + "license": "GPL-2.0+", + "bugs": { + "url": "https://github.com/automattic/wp-calypso/issues" + }, + "homepage": "https://github.com/Automattic/wp-calypso/tree/master/client/components/forms#readme", + "dependencies": { + "classnames": "^2.2.5", + "i18n-calypso": "^1.7.4", + "prop-types": "^15.5.10", + "react": "^15.6.1" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/lerna.json b/lerna.json new file mode 100644 index 00000000000000..ad8f596e492b9f --- /dev/null +++ b/lerna.json @@ -0,0 +1,8 @@ +{ + "lerna": "2.0.0", + "packages": [ + "client/components/forms", + "." + ], + "version": "independent" +} diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 452434d3535bee..3f00333f1dbc69 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -2,6 +2,26 @@ "name": "wp-calypso", "version": "0.17.0", "dependencies": { + "@automattic/form-components": { + "version": "0.1.0-alpha.3", + "dependencies": { + "async": { + "version": "1.5.2" + }, + "classnames": { + "version": "2.2.5" + }, + "commander": { + "version": "2.11.0" + }, + "i18n-calypso": { + "version": "1.7.4" + }, + "react": { + "version": "15.6.1" + } + } + }, "@types/node": { "version": "6.0.85", "dev": true @@ -16,6 +36,10 @@ "version": "0.9.11", "dev": true }, + "core-js": { + "version": "2.4.1", + "dev": true + }, "esprima": { "version": "4.0.0", "dev": true @@ -245,6 +269,12 @@ "babel-register": { "version": "6.24.1" }, + "babylon": { + "version": "6.17.4" + }, + "core-js": { + "version": "2.4.1" + }, "source-map": { "version": "0.5.6" }, @@ -570,7 +600,13 @@ }, "babel-polyfill": { "version": "6.23.0", - "dev": true + "dev": true, + "dependencies": { + "core-js": { + "version": "2.4.1", + "dev": true + } + } }, "babel-preset-es2015": { "version": "6.9.0" @@ -610,6 +646,9 @@ "babel-register": { "version": "6.9.0", "dependencies": { + "core-js": { + "version": "2.4.1" + }, "home-or-tmp": { "version": "1.0.0" }, @@ -625,19 +664,34 @@ } }, "babel-runtime": { - "version": "6.25.0" + "version": "6.25.0", + "dependencies": { + "core-js": { + "version": "2.4.1" + } + } }, "babel-template": { - "version": "6.25.0" + "version": "6.25.0", + "dependencies": { + "babylon": { + "version": "6.17.4" + } + } }, "babel-traverse": { - "version": "6.25.0" + "version": "6.25.0", + "dependencies": { + "babylon": { + "version": "6.17.4" + } + } }, "babel-types": { "version": "6.25.0" }, "babylon": { - "version": "6.17.4" + "version": "6.8.4" }, "backo2": { "version": "1.0.2" @@ -722,6 +776,9 @@ "debug": { "version": "2.6.7" }, + "iconv-lite": { + "version": "0.4.15" + }, "ms": { "version": "2.0.0" }, @@ -1176,7 +1233,7 @@ } }, "core-js": { - "version": "2.4.1" + "version": "1.2.7" }, "core-util-is": { "version": "1.0.2" @@ -2013,21 +2070,12 @@ "version": "2.1.1" }, "fbjs": { - "version": "0.8.14", - "dependencies": { - "core-js": { - "version": "1.2.7" - } - } + "version": "0.8.14" }, "fbjs-scripts": { "version": "0.7.1", "dev": true, "dependencies": { - "core-js": { - "version": "1.2.7", - "dev": true - }, "cross-spawn": { "version": "3.0.1", "dev": true @@ -2118,15 +2166,12 @@ "dev": true }, "flow-parser": { - "version": "0.51.1", + "version": "0.52.0", "dev": true }, "flux": { "version": "2.1.1", "dependencies": { - "core-js": { - "version": "1.2.7" - }, "fbjs": { "version": "0.1.0-alpha.7" }, @@ -3027,7 +3072,7 @@ } }, "iconv-lite": { - "version": "0.4.15" + "version": "0.4.18" }, "ieee754": { "version": "1.1.8" @@ -3326,6 +3371,10 @@ "version": "1.7.4", "dev": true, "dependencies": { + "babylon": { + "version": "6.17.4", + "dev": true + }, "semver": { "version": "5.4.1", "dev": true @@ -3744,10 +3793,6 @@ "version": "1.1.2", "dev": true }, - "core-js": { - "version": "1.2.7", - "dev": true - }, "detect-indent": { "version": "3.0.1", "dev": true @@ -5108,7 +5153,12 @@ "version": "1.0.3" }, "raw-body": { - "version": "2.2.0" + "version": "2.2.0", + "dependencies": { + "iconv-lite": { + "version": "0.4.15" + } + } }, "rc": { "version": "1.2.1", @@ -6950,12 +7000,7 @@ "dev": true }, "xgettext-js": { - "version": "1.0.0", - "dependencies": { - "babylon": { - "version": "6.8.4" - } - } + "version": "1.0.0" }, "xml": { "version": "1.0.1", diff --git a/package.json b/package.json index f0cff4f8b3f9ae..0288c5d4dfdb55 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "main": "index.js", "dependencies": { + "@automattic/form-components": "^0.1.0-alpha.3", "ajv": "5.2.1", "async": "0.9.0", "autoprefixer": "6.3.5",