加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fengyuanchen/viewer
克隆/下载
package.json 3.35 KB
一键复制 编辑 原始数据 按行查看 历史
Chen Fengyuan 提交于 2019-12-14 19:50 . build: release 1.1.0
{
"name": "imageviewer",
"description": "A simple jQuery image viewing plugin.",
"version": "1.1.0",
"main": "dist/viewer.common.js",
"module": "dist/viewer.esm.js",
"browser": "dist/viewer.js",
"style": "dist/viewer.css",
"files": [
"src",
"dist"
],
"scripts": {
"build": "npm run build:css && npm run build:js",
"build:css": "postcss src/index.css -o dist/viewer.css --no-map",
"build:js": "rollup -c",
"clear": "del-cli dist",
"compress": "npm run compress:css && npm run compress:js",
"compress:css": "postcss dist/viewer.css -u cssnano -o dist/viewer.min.css --no-map",
"compress:js": "uglifyjs dist/viewer.js -o dist/viewer.min.js -c -m --comments /^!/",
"copy": "cpy dist/viewer.css docs/css",
"lint": "eslint src test *.js --fix",
"release": "npm run clear && npm run lint && npm run build && npm run compress && npm run copy && npm test",
"start": "npm-run-all --parallel watch:*",
"test": "karma start",
"watch:css": "postcss src/index.css -o docs/css/viewer.css -m -w",
"watch:js": "rollup -c -m -w"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fengyuanchen/viewer.git"
},
"keywords": [
"image",
"viewer",
"jquery",
"jquery-plugin"
],
"author": {
"name": "Chen Fengyuan",
"url": "https://chenfengyuan.com/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/fengyuanchen/viewer/issues"
},
"homepage": "https://fengyuanchen.github.io/viewer",
"dependencies": {
"viewerjs": "^1.5.0"
},
"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"babel-plugin-istanbul": "^5.2.0",
"chai": "^4.2.0",
"change-case": "^4.1.0",
"cpy-cli": "^3.0.0",
"create-banner": "^1.0.0",
"cssnano": "^4.1.10",
"del-cli": "^3.0.0",
"eslint": "^6.7.2",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.19.1",
"husky": "^3.1.0",
"jquery": "^3.4.1",
"karma": "^4.4.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage-istanbul-reporter": "^2.1.1",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-rollup-preprocessor": "^7.0.2",
"lint-staged": "^9.5.0",
"mocha": "^6.2.2",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.3",
"postcss-header": "^1.0.0",
"postcss-import": "^12.0.1",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^8.0.0",
"puppeteer": "^2.0.0",
"rollup": "^1.27.12",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"stylelint": "^12.0.0",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1",
"uglify-js": "^3.7.2"
},
"peerDependencies": {
"jquery": ">=1.9.1"
},
"browserslist": [
"last 2 versions",
"> 1%",
"not ie <= 8"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"{src,test}/**/*.js|*.conf*.js": [
"eslint --fix",
"git add"
],
"{src,docs}/**/*.{css,html}": [
"stylelint --fix",
"git add"
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化