Socket
Socket
Sign inDemoInstall

@luban-cli/cli-plugin-babel

Package Overview
Dependencies
0
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

dist/template/_babelrc

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.0.3](https://github.com/front-end-captain/luban/compare/v0.0.2...v0.0.3) (2020-02-21)
### Bug Fixes
* **all:** fix some bugs ([7afcf92](https://github.com/front-end-captain/luban/commit/7afcf92b036d48130bdf271542e5e632068d0a6d))
## 0.0.2 (2020-02-18)

@@ -8,0 +19,0 @@

43

dist/generator.js

@@ -11,11 +11,24 @@ "use strict";

"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
];
let babelConfigEnv = {};
if (api.useTsWithBabel()) {
api.extendPackage({
devDependencies: {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@babel/preset-react": "^7.7.0",
"core-js": "^3.4.2",
},
});
if (rootOptions.preset.language === "ts") {
babelConfigPreset.push("@babel/preset-typescript");
}
if (rootOptions.preset.language === "js") {
babelConfigPlugins.push("@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-class-properties");
api.extendPackage({
devDependencies: {
"@babel/preset-typescript": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
},

@@ -34,4 +47,9 @@ });

]);
api.extendPackage({
devDependencies: {
"babel-plugin-styled-components": "^1.10.0",
},
});
}
if (rootOptions.preset.plugins["@luban-cli/cli-plugin-eslint"]) {
if (rootOptions.preset.eslint && rootOptions.preset.language === "js") {
api.extendPackage({

@@ -48,16 +66,3 @@ devDependencies: {

}
api.extendPackage({
devDependencies: {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/runtime": "^7.7.2",
"@babel/preset-react": "^7.7.0",
"core-js": "^3.4.2",
},
});
api.render("./../../../template/babel", {
api.render("./template", {
presets: JSON.stringify(babelConfigPreset),

@@ -64,0 +69,0 @@ plugins: JSON.stringify(babelConfigPlugins),

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(api) {
function default_1() {
}
exports.default = default_1;
//# sourceMappingURL=index.js.map
{
"name": "@luban-cli/cli-plugin-babel",
"version": "0.0.2",
"version": "0.0.3",
"description": "cli-plugin-babel",

@@ -24,3 +24,3 @@ "author": "front-end-captain <18810940932@163.com>",

"scripts": {
"build": "rimraf dist && tsc --pretty",
"build": "rimraf dist && tsc --pretty && cp -ri src/template dist/template",
"check:type": "tsc --noEmit",

@@ -33,3 +33,3 @@ "watch": "yarn run build -- --watch --diagnostics"

"devDependencies": {
"@luban-cli/cli-shared-types": "0.0.2"
"@luban-cli/cli-shared-types": "0.0.3"
},

@@ -39,3 +39,3 @@ "engines": {

},
"gitHead": "c805281a79a1009af42c6a46afa939b33fdcf6bd"
"gitHead": "4b5929044074704ef69e4df9f1a9c3c16aa5c9c7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc