Skip to content

Commit

Permalink
Add @babel/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
estacioneto committed Jul 31, 2019
1 parent ac4bee3 commit 739df35
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .babelrc
@@ -0,0 +1,12 @@
{
"presets": [
"@babel/preset-react",
"@babel/preset-typescript",
["@babel/preset-env", { "loose": true }]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"transform-es2015-modules-commonjs",
"dynamic-import-node"
]
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"styleguide": "styleguidist server",
"start": "styleguidist server",
"styleguide:build": "styleguidist build && echo 'styleguide.vtex.com' >./styleguide/CNAME",
"babel:lib": "NODE_ENV=production babel ./react/components --out-dir ./lib --extensions \".ts,.tsx\" --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files",
"babel:lib": "NODE_ENV=production babel ./react/components --out-dir ./lib --extensions \".js,.jsx,.ts,.tsx\" --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files",
"build:types": "tsc --emitDeclarationOnly",
"babel:modules": "NODE_ENV=production babel ./react/modules --out-dir ./modules --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files",
"clean:lib": "rm -rf lib",
Expand All @@ -30,6 +30,7 @@
],
"homepage": "https://vtex.github.io/styleguide",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
Expand Down
3 changes: 1 addition & 2 deletions react/tsconfig.json
Expand Up @@ -9,8 +9,7 @@
"strict": false,
"typeRoots": ["node_modules/@types"],
"target": "esnext",
"declaration": true,
"rootDir": "./"
"declaration": true
},
"typeAcquisition": {
"enable": false
Expand Down
32 changes: 29 additions & 3 deletions yarn.lock
Expand Up @@ -2,6 +2,23 @@
# yarn lockfile v1


"@babel/cli@^7.5.5":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.5.5.tgz#bdb6d9169e93e241a08f5f7b0265195bf38ef5ec"
integrity sha512-UHI+7pHv/tk9g6WXQKYz+kmXTI77YtuY3vqC59KIqcoWEjsJJSG6rAxKaLsgj3LDyadsPrCB929gVOKM6Hui0w==
dependencies:
commander "^2.8.1"
convert-source-map "^1.1.0"
fs-readdir-recursive "^1.1.0"
glob "^7.0.0"
lodash "^4.17.13"
mkdirp "^0.5.1"
output-file-sync "^2.0.0"
slash "^2.0.0"
source-map "^0.5.0"
optionalDependencies:
chokidar "^2.0.4"

"@babel/code-frame@7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8"
Expand Down Expand Up @@ -3640,7 +3657,7 @@ commander@2.17.x:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==

commander@^2.11.0, commander@^2.19.0, commander@^2.20.0, commander@~2.20.0:
commander@^2.11.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1, commander@~2.20.0:
version "2.20.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
Expand Down Expand Up @@ -5955,7 +5972,7 @@ fs-minipass@^1.2.5:
dependencies:
minipass "^2.2.1"

fs-readdir-recursive@^1.0.0:
fs-readdir-recursive@^1.0.0, fs-readdir-recursive@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==
Expand Down Expand Up @@ -6159,7 +6176,7 @@ glob@7.1.2:
once "^1.3.0"
path-is-absolute "^1.0.0"

glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
version "7.1.4"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255"
integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==
Expand Down Expand Up @@ -9552,6 +9569,15 @@ output-file-sync@^1.1.2:
mkdirp "^0.5.1"
object-assign "^4.1.0"

output-file-sync@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-2.0.1.tgz#f53118282f5f553c2799541792b723a4c71430c0"
integrity sha512-mDho4qm7WgIXIGf4eYU1RHN2UU5tPfVYVSRwDJw0uTmj35DQUt/eNp19N7v6T3SrR0ESTEf2up2CGO73qI35zQ==
dependencies:
graceful-fs "^4.1.11"
is-plain-obj "^1.1.0"
mkdirp "^0.5.1"

p-defer@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c"
Expand Down

0 comments on commit 739df35

Please sign in to comment.