@z2cf2e/diamond
Version:
diamond
73 lines (72 loc) • 2.33 kB
JSON
{
"name": "@z2cf2e/diamond",
"version": "1.1.74",
"description": "diamond",
"main": "index.js",
"keywords": [
"diamond"
],
"author": "w-xuefeng",
"license": "ISC",
"files": [
"index.js",
"index.min.js",
"public",
"client"
],
"scripts": {
"lint": "eslint 'src/**/*.{js,ts,json}'",
"handle": "node script/prehandle.js",
"dev": "yarn handle && rollup -w -c --environment FORMAT:umd",
"build:umd": "rollup -c --environment FORMAT:umd",
"build:min": "rollup -c --environment FORMAT:min",
"build:client": "rollup -c --environment FORMAT:client && cp client-types.d.ts client/index.d.ts",
"build:locales": "rollup -c --environment FORMAT:locales",
"generate:langs": "rollup -c --environment FORMAT:langs && node script/lang2json.js",
"generate:json": "sh gen-json.sh",
"clean": "rimraf index.js && rimraf index.min.js && rimraf diamond.min.js && rimraf src/index.ts && rimraf client",
"prebuild": "yarn clean && yarn handle",
"build": "run-p build:umd build:min build:client generate:json && yarn generate:diamond && yarn build:locales && yarn generate:langs",
"generate:diamond": "cp index.min.js public/diamond.min.js",
"prepublishOnly": "npm version patch && yarn build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*./src/**/*.{js,ts,json,css,less,md}": [
"prettier --write",
"yarn lint"
]
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.1",
"@types/lodash.get": "^4.4.6",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"eslint": "^8.10.0",
"glob": "^7.2.0",
"lodash": "^4.17.21",
"lodash.merge": "^4.6.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.70.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.6.2"
},
"dependencies": {
"lodash.get": "^4.4.2"
}
}