@amoy/common
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "@amoy/common", | ||
"version": "1.0.8", | ||
"description": "A tool function kit.", | ||
"keywords": [ | ||
"tool function" | ||
], | ||
"main": "dist/common.js", | ||
"module": "dist/common.es.js", | ||
"moduleName": "common", | ||
"types": "./lib/type.d.ts", | ||
"scripts": { | ||
"reload": "./node_modules/.bin/livereload 'example/'", | ||
"watch": "NODE_ENV=example rollup -w -c rollup.config.js", | ||
"dev": "npm-run-all --parallel reload watch", | ||
"es": "NODE_ENV=es rollup -c rollup.config.js", | ||
"pre": "NODE_ENV=development rollup -c rollup.config.js", | ||
"prod": "NODE_ENV=production rollup -c rollup.config.js", | ||
"build": "rm -rf dist && npm-run-all --parallel es pre prod" | ||
}, | ||
"repository": { | ||
"url": "https://github.com/amoyjs/common.git", | ||
"type": "git" | ||
}, | ||
"author": "gxd", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"babel-eslint": "^7.2.2", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-syntax-flow": "^6.18.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-latest": "^6.24.1", | ||
"eslint": "^3.19.0", | ||
"expect.js": "^0.3.1", | ||
"livereload": "^0.7.0", | ||
"npm-run-all": "^4.1.5", | ||
"rollup": "^1.10.1", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.2.2", | ||
"rollup-plugin-img": "^1.1.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.4.0", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-sass": "^1.2.2", | ||
"rollup-plugin-serve": "^1.0.1", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript": "^1.0.1", | ||
"rollup-plugin-uglify": "^6.0.2", | ||
"rollup-watch": "^4.3.1", | ||
"tslib": "^1.11.2", | ||
"tslint": "^5.16.0", | ||
"tslint-react": "^4.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": {} | ||
"name": "@amoy/common", | ||
"moduleName": "COMMON", | ||
"version": "1.0.9", | ||
"description": "common.", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"start": "NODE_ENV=development rollup -w -c rollup.config.js", | ||
"dev": "NODE_ENV=development rollup -c rollup.config.js", | ||
"prod": "NODE_ENV=production rollup -c rollup.config.js", | ||
"build": "rm -rf dist && npm run dev && npm run prod" | ||
}, | ||
"repository": { | ||
"url": "https://github.com/amoyjs/common.git", | ||
"type": "git" | ||
}, | ||
"author": "大板栗 <576839360@qq.com>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"rollup": "^2.11.0", | ||
"rollup-plugin-babel-minify": "^10.0.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"tslib": "^2.0.0", | ||
"typescript": "^3.9.3" | ||
}, | ||
"dependencies": { | ||
"eventemitter3": "^4.0.4" | ||
} | ||
} |
@@ -1,34 +0,1 @@ | ||
# rollup-typescript-startkit | ||
## 简介: | ||
一款基于 rollup 与 typescript 的轻量级脚手架,专注于 JavaScript 库的开发,能够满足开发库时所需要的各项功能; | ||
包含功能: | ||
- rollup | tree-shaking | ||
- typescript | ||
- hot-reload | ||
- example / debug | ||
- sass | ||
## 安装 | ||
此处使用一个简单易用的项目初始化工具: just-cli | ||
```js | ||
// 命令行: | ||
sudo npm i just-cli -g | ||
// 添加配置 | ||
just add -n rollup-startkit -g https://github.com/xd-tayde/rollup-typescript-startkit.git | ||
// 之后就可以通过 init 快速创建项目 | ||
just init rollup-startkit myProject | ||
``` | ||
## 开发姿势: | ||
- `package.json` 中修改对应的包名称 | ||
- `npm run dev`: 开发环境 | ||
- `npm run publish`: 打包编译 | ||
# README |
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"module": "esnext", | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"sourceMap": true, | ||
"allowJs": true, | ||
"jsx": "react", | ||
"moduleResolution": "node", | ||
"rootDir": "./", | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
// "noImplicitAny": true, | ||
"importHelpers": true, | ||
"strictNullChecks": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
// "noUnusedLocals": true, // 为了编译成功,临时关闭 | ||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"paths": { | ||
} | ||
}, | ||
"include": [ | ||
"lib/*", | ||
"example/*" | ||
] | ||
} | ||
"compilerOptions": { | ||
"declaration": true, | ||
"allowSyntheticDefaultImports": true, | ||
} | ||
} |
{ | ||
"extends": [ | ||
"tslint:recommended" | ||
], | ||
"linterOptions": { | ||
@@ -10,2 +7,14 @@ "exclude": [ | ||
}, | ||
"extends": [ | ||
"tslint:recommended" | ||
], | ||
"jsRules": { | ||
"semicolon": [ | ||
true, | ||
"never" | ||
], | ||
"no-console": false, | ||
"quotemark": false, | ||
"eofline": false | ||
}, | ||
"rules": { | ||
@@ -24,3 +33,6 @@ "semicolon": [ | ||
"no-shadowed-variable": false, | ||
"curly": [true, "ignore-same-line"], | ||
"curly": [ | ||
true, | ||
"ignore-same-line" | ||
], | ||
"interface-over-type-literal": false, | ||
@@ -31,5 +43,11 @@ "no-string-literal": false, | ||
"prefer-for-of": false, | ||
"no-unused-expression": [true, "allow-fast-null-checks"], | ||
"member-ordering":[false], | ||
"jsx-boolean-value":false, | ||
"no-unused-expression": [ | ||
true, | ||
"allow-new", | ||
"allow-fast-null-checks" | ||
], | ||
"member-ordering": [ | ||
false | ||
], | ||
"jsx-boolean-value": false, | ||
"prefer-const": false, | ||
@@ -41,8 +59,4 @@ "max-line-length": false, | ||
"radix": false, | ||
"no-trailing-whitespace": false | ||
}, | ||
"jsRules": { | ||
"object-literal-sort-keys": false, | ||
"jsx-no-lambda": false | ||
"no-trailing-whitespace": true | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
135623
7
26
1568
1
1
1
+ Addedeventemitter3@^4.0.4
+ Addedeventemitter3@4.0.7(transitive)