feat: init project
Showing
.editorconfig
0 → 100644
.eslintrc.js
0 → 100644
.gitignore
0 → 100644
.npmignore
0 → 100644
LICENSE
0 → 100644
build/rollup.config.js
0 → 100644
ext/config.json
0 → 100644
package.json
0 → 100644
{ | ||
"name": "@dcloudio/uni-id-common", | ||
"version": "1.0.0", | ||
"description": "uni-id token生成、校验、刷新", | ||
"main": "dist/index.js", | ||
"homepage": "https://uniapp.dcloud.io/uniCloud/uni-id-common.html", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://gitee.com/dcloud/uni-id-common.git" | ||
}, | ||
"scripts": { | ||
"lint": "eslint --fix src build", | ||
"build": "npm run lint && rollup -c build/rollup.config.js --environment NODE_ENV:production && node script/sync-package.js", | ||
"dev": "rollup -c build/rollup.config.js --environment NODE_ENV:development" | ||
}, | ||
"author": "DCloud", | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^11.1.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^7.1.3", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^8.0.1", | ||
"rollup": "^1.28.0", | ||
"rollup-plugin-terser": "^5.1.3" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run lint", | ||
"commit-msg": "node script/check-commit-msg.js" | ||
} | ||
} | ||
} |
pnpm-lock.yaml
0 → 100644
此差异已折叠。
script/check-commit-msg.js
0 → 100644
script/sync-package.js
0 → 100644
src/common/constants.js
0 → 100644
src/common/error.js
0 → 100644
src/common/jwt.js
0 → 100644
src/common/utils.js
0 → 100644
src/common/wrap-fn.js
0 → 100644
src/index.js
0 → 100644
src/lang/en.js
0 → 100644
src/lang/index.js
0 → 100644
src/lang/zh-Hans.js
0 → 100644
src/lib/token/check-token.js
0 → 100644
src/lib/token/create-token.js
0 → 100644
src/lib/token/index.js
0 → 100644
src/lib/token/refresh-token.js
0 → 100644
src/lib/token/utils.js
0 → 100644
src/uni-id.js
0 → 100644
想要评论请 注册 或 登录