Skip to content

Commit

Permalink
Fixed build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nickverstocken authored Dec 20, 2018
1 parent 68f4c53 commit feacbf1
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 2 additions & 0 deletions config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
10 changes: 10 additions & 0 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 19 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit feacbf1

Please sign in to comment.