2021-07-09 18:28:29 +08:00
|
|
|
{
|
|
|
|
"name": "sakura-next",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"license": "MIT",
|
|
|
|
"scripts": {
|
|
|
|
"dev": "vite",
|
2021-07-14 10:04:54 +08:00
|
|
|
"build": "yarn bulid:main && yarn build:admin",
|
|
|
|
"bulid:main": "APP_TARGET=main vite build",
|
|
|
|
"build:admin": "APP_TARGET=admin vite build",
|
2021-07-09 18:28:29 +08:00
|
|
|
"build:strict": "vue-tsc --noEmit && vite build",
|
|
|
|
"serve": "vite preview",
|
|
|
|
"test": "jest --coverage",
|
|
|
|
"lint": "eslint \"src/**/*.{ts,js,json,vue}\"",
|
|
|
|
"format": "eslint \"src/**/*.{ts,js,json,vue}\" --fix && prettier \"src/**/*.{ts,js,json,vue}\" --write",
|
|
|
|
"format:lint": "eslint \"src/**/*.{ts,js,json,vue}\" --fix",
|
|
|
|
"format:prettier": "prettier \"src/**/*.{ts,js,json,vue}\" --write",
|
|
|
|
"i18n:extract": "formatjs extract \"src/**/*.{ts,tsx,vue}\" --out-file src/locales/defaultMessages.json --ignore \"src/**/@types\"",
|
|
|
|
"i18n:compile": "formatjs compile src/locales/defaultMessages.json --out-file src/locales/default.json",
|
|
|
|
"i18n": "yarn i18n:extract && yarn i18n:compile",
|
|
|
|
"git:commit": "git add . && git commit",
|
|
|
|
"composer": "node scripts/rsync.mjs --composer-install",
|
|
|
|
"remote-download:geoip2": "node scripts/rsync.mjs --geoip2",
|
|
|
|
"local-download:geoip2": "mkdir -p app/cache && curl -o app/cache/GeoLite2-City.mmdb https://raw.githubusercontent.com/P3TERX/GeoLite.mmdb/download/GeoLite2-City.mmdb",
|
|
|
|
"rsync": "nodemon -e '*' --watch ./app --ignore ./app/vendor scripts/rsync.mjs",
|
|
|
|
"rsync:composer": "nodemon --watch './composer.json' --watch './composer.lock' scripts/rsync.mjs --composer",
|
2021-07-20 17:58:34 +08:00
|
|
|
"icon": "yarn svgo -f ./src/assets/icons/ui/ && node scripts/import-svg-icons.mjs && eslint \"src/components/icon/**/*.{ts,js,json,vue}\" --fix && prettier \"src/components/icon/**/*.{ts,js,json,vue}\" --write",
|
2021-07-18 19:52:09 +08:00
|
|
|
"mdc": "node scripts/mdc-upgrade.mjs",
|
2021-07-21 17:35:45 +08:00
|
|
|
"options": "node scripts/options-export/copy-options.mjs && yarn tsc scripts/options-export/dump-options.ts && node scripts/options-export/dump-options.js && eslint \"src/admin/optionsType.ts\" --fix && prettier \"src/admin/optionsType.ts\" --write"
|
2021-07-09 18:28:29 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@formatjs/intl": "^1.13.2",
|
2021-07-21 17:35:45 +08:00
|
|
|
"@material/button": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/card": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/checkbox": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/chips": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/dialog": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/elevation": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/form-field": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/menu": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/radio": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/ripple": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/switch": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/tab-bar": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/textfield": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/theme": "^12.0.0-canary.90e08fc6b.0",
|
|
|
|
"@material/typography": "^12.0.0-canary.90e08fc6b.0",
|
2021-07-13 11:02:16 +08:00
|
|
|
"@vueuse/core": "^5.1.3",
|
2021-07-09 18:28:29 +08:00
|
|
|
"@yzfe/svgicon": "^1.0.1",
|
|
|
|
"@yzfe/vue3-svgicon": "^1.0.1",
|
2021-07-21 17:35:45 +08:00
|
|
|
"animate.css": "^4.1.1",
|
2021-07-09 18:28:29 +08:00
|
|
|
"axios": "^0.21.1",
|
|
|
|
"camelcase-keys": "^7.0.0",
|
2021-07-18 19:52:09 +08:00
|
|
|
"chroma-js": "^2.1.2",
|
2021-07-09 18:28:29 +08:00
|
|
|
"crypto-js": "^4.0.0",
|
|
|
|
"gsap": "^3.7.0",
|
2021-07-13 08:06:50 +08:00
|
|
|
"highlight.js": "^11.1.0",
|
2021-07-09 18:28:29 +08:00
|
|
|
"idb": "^6.1.2",
|
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"marked": "^2.1.3",
|
|
|
|
"normalize.css": "^8.0.1",
|
2021-07-21 17:35:45 +08:00
|
|
|
"perfect-scrollbar": "^1.5.2",
|
2021-07-09 18:28:29 +08:00
|
|
|
"sass": "^1.35.1",
|
|
|
|
"sass-loader": "^12.1.0",
|
|
|
|
"snakecase-keys": "^4.0.2",
|
2021-07-14 16:54:49 +08:00
|
|
|
"swiper": "^6.7.5",
|
2021-07-09 18:28:29 +08:00
|
|
|
"uuid": "^8.3.2",
|
|
|
|
"vue": "^3.1.4",
|
|
|
|
"vue-intl": "^6.0.6",
|
|
|
|
"vue-router": "^4.0.10"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@formatjs/cli": "^4.2.27",
|
2021-07-18 19:52:09 +08:00
|
|
|
"@types/chroma-js": "^2.1.3",
|
2021-07-09 18:28:29 +08:00
|
|
|
"@types/crypto-js": "^4.0.1",
|
2021-07-13 16:28:19 +08:00
|
|
|
"@types/jest": "^26.0.24",
|
2021-07-13 11:02:27 +08:00
|
|
|
"@types/marked": "^2.0.4",
|
2021-07-09 18:28:29 +08:00
|
|
|
"@types/uuid": "^8.3.1",
|
2021-07-13 11:31:06 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.28.3",
|
2021-07-13 11:07:21 +08:00
|
|
|
"@typescript-eslint/parser": "^4.28.3",
|
2021-07-13 16:15:03 +08:00
|
|
|
"@vitejs/plugin-legacy": "^1.4.4",
|
2021-07-13 08:06:35 +08:00
|
|
|
"@vitejs/plugin-vue": "^1.2.5",
|
2021-07-09 18:28:29 +08:00
|
|
|
"@vue/compiler-sfc": "^3.1.4",
|
|
|
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
|
|
"@vue/eslint-config-typescript": "^7.0.0",
|
2021-07-12 22:07:15 +08:00
|
|
|
"@vue/test-utils": "^2.0.0-rc.10",
|
2021-07-13 16:28:28 +08:00
|
|
|
"autoprefixer": "^10.3.1",
|
2021-07-20 17:58:34 +08:00
|
|
|
"camelcase": "^6.2.0",
|
2021-07-09 18:28:29 +08:00
|
|
|
"colors": "^1.4.0",
|
|
|
|
"dotenv": "^10.0.0",
|
|
|
|
"eslint": "^7.30.0",
|
|
|
|
"eslint-plugin-file-progress": "^1.1.0",
|
2021-07-13 11:02:02 +08:00
|
|
|
"eslint-plugin-formatjs": "^2.17.1",
|
2021-07-09 18:28:29 +08:00
|
|
|
"eslint-plugin-prettier": "^3.3.1",
|
|
|
|
"eslint-plugin-vue": "^7.13.0",
|
|
|
|
"jest": "^27.0.6",
|
2021-07-13 08:07:05 +08:00
|
|
|
"nodemon": "^2.0.12",
|
2021-07-09 18:28:29 +08:00
|
|
|
"postcss-import": "^14.0.2",
|
|
|
|
"prettier": "^2.3.2",
|
|
|
|
"resize-observer-polyfill": "^1.5.1",
|
2021-07-20 17:58:34 +08:00
|
|
|
"svgo": "^2.3.1",
|
2021-07-09 18:28:29 +08:00
|
|
|
"ts-jest": "^27.0.3",
|
2021-07-13 08:06:20 +08:00
|
|
|
"type-fest": "^1.2.2",
|
2021-07-09 18:28:29 +08:00
|
|
|
"typescript": "^4.3.5",
|
2021-07-13 16:28:04 +08:00
|
|
|
"vite": "^2.4.2",
|
2021-07-09 18:28:29 +08:00
|
|
|
"vite-plugin-svgicon": "^1.0.0-alpha.0",
|
|
|
|
"vue-jest": "^5.0.0-alpha.10",
|
2021-07-15 18:22:43 +08:00
|
|
|
"vue-tsc": "^0.2.0",
|
|
|
|
"wp-types": "^2.10.0"
|
2021-07-09 18:28:29 +08:00
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"npm": "please-use-yarn",
|
|
|
|
"yarn": ">= 1.22.10",
|
|
|
|
"node": ">= 14.17.1"
|
|
|
|
}
|
|
|
|
}
|