From feacbf1c41ca80b3c0fff08397d3fc03d96c8ed8 Mon Sep 17 00:00:00 2001 From: nickverstocken Date: Thu, 20 Dec 2018 19:30:40 +0100 Subject: [PATCH] Fixed build warnings --- .babelrc | 4 ++-- README.md | 2 +- config/paths.js | 2 ++ config/webpack.js | 10 ++++++++++ package.json | 5 +++-- src/manifest.json | 2 +- yarn.lock | 30 +++++++++++++++++++----------- 7 files changed, 38 insertions(+), 17 deletions(-) diff --git a/.babelrc b/.babelrc index 6cbd997..b41edd0 100644 --- a/.babelrc +++ b/.babelrc @@ -11,8 +11,8 @@ "@babel/preset-flow" ], "plugins": [ - "transform-es2015-destructuring", + "@babel/plugin-transform-destructuring", "transform-es2015-parameters", - "transform-object-rest-spread" + "@babel/plugin-proposal-object-rest-spread" ] } diff --git a/README.md b/README.md index e92dc85..38e27fe 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A [Zeplin](https://extensions.zeplin.io/) extension that generates [Styled Compo ## Getting started -Download the extension from the Zeplin extensions website: [Zeplin Styled Components](https://extensions.zeplin.io/), and open a Zeplin project to see it work its magic. +Download the extension from the Zeplin extensions website: [Zeplin Styled Components](https://extensions.zeplin.io/5c1ba7a217aa3f24679a1ca8), and open a Zeplin project to see it work its magic. #### Prerequisites - [A Zeplin account](https://zeplin.io/) diff --git a/config/paths.js b/config/paths.js index 208a77b..c67fd49 100644 --- a/config/paths.js +++ b/config/paths.js @@ -9,6 +9,8 @@ const resolveLib = relativePath => path.resolve(rootDirectory, relativePath); module.exports = { root: rootDirectory, src: resolveLib('src'), + readme: resolveLib('README.md'), + screenshots: resolveLib('screenshots'), nodeModules: resolveLib('node_modules'), indexJs: resolveLib('src/index.js'), manifestJson: resolveLib('src/manifest.json'), diff --git a/config/webpack.js b/config/webpack.js index ca2ee69..48050cf 100644 --- a/config/webpack.js +++ b/config/webpack.js @@ -59,6 +59,16 @@ module.exports = { from: paths.manifestJson, to: paths.dist, }, + { + context: paths.root, + from: paths.readme, + to: paths.dist, + }, + { + context: paths.root, + from: paths.screenshots, + to: `${paths.dist}/screenshots`, + }, ]), new CaseSensitivePathsPlugin(), ], diff --git a/package.json b/package.json index 2ce8ebe..72ad169 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zeplin-styled-components", - "version": "0.1.0", + "version": "0.1.1", "description": "A Zeplin extension that generates Styled Component snippets from colors, text styles and layers.", "scripts": { "start": "webpack --config ./config/webpack.dev.js --progress --color", @@ -16,12 +16,13 @@ }, "devDependencies": { "@babel/core": "^7.1.2", + "@babel/plugin-proposal-object-rest-spread": "^7.2.0", + "@babel/plugin-transform-destructuring": "^7.2.0", "@babel/preset-env": "^7.1.0", "@babel/preset-flow": "^7.0.0", "babel-cli": "^6.26.0", "babel-eslint": "^10.0.1", "babel-loader": "^8.0.4", - "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-es2015": "^6.24.1", "case-sensitive-paths-webpack-plugin": "^2.1.2", "clean-webpack-plugin": "^0.1.19", diff --git a/src/manifest.json b/src/manifest.json index 5afded1..f1f3f1f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "packageName": "zeplin-styled-components", "name": "Styled Components", "description": "A Zeplin extension that generates Styled Component snippets from colors, text styles and layers.", - "version": "0.1.0", + "version": "0.1.1", "moduleURL": "./index.js", "author": { "name": "Nick Verstocken", diff --git a/yarn.lock b/yarn.lock index 89d865e..87c51f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -215,6 +215,13 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.0.0" +"@babel/plugin-proposal-object-rest-spread@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.2.0.tgz#88f5fec3e7ad019014c97f7ee3c992f0adbf7fb8" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-proposal-optional-catch-binding@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0.tgz#b610d928fe551ff7117d42c8bb410eec312a6425" @@ -254,6 +261,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" +"@babel/plugin-syntax-object-rest-spread@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-optional-catch-binding@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0.tgz#886f72008b3a8b185977f7cb70713b45e51ee475" @@ -312,6 +325,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" +"@babel/plugin-transform-destructuring@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.2.0.tgz#e75269b4b7889ec3a332cd0d0c8cff8fed0dc6f3" + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-dotall-regex@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0.tgz#73a24da69bc3c370251f43a3d048198546115e58" @@ -1178,10 +1197,6 @@ babel-plugin-syntax-exponentiation-operator@^6.8.0: version "6.13.0" resolved "http://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" -babel-plugin-syntax-object-rest-spread@^6.8.0: - version "6.13.0" - resolved "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" - babel-plugin-syntax-trailing-function-commas@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" @@ -1370,13 +1385,6 @@ babel-plugin-transform-exponentiation-operator@^6.22.0: babel-plugin-syntax-exponentiation-operator "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-object-rest-spread@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" - dependencies: - babel-plugin-syntax-object-rest-spread "^6.8.0" - babel-runtime "^6.26.0" - babel-plugin-transform-regenerator@^6.22.0, babel-plugin-transform-regenerator@^6.24.1: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"