Files
bridget/package.json
Sped0n b91a67e0da chore(package.json): update scripts and devDependencies
- Update the name field from "bridget-src" to "bridget" for better clarity.
- Add "sideEffects" field and set it to false to optimize tree shaking.
- Update the "lint" script to remove unnecessary file extensions and fix linting issues.
- Update the "dev" script to remove existing JavaScript files before running rollup and hugo in development mode.
- Update the "build" script to remove existing JavaScript files before running rollup and hugo in production mode.
- Update the "server" script to remove existing JavaScript files before running rollup and hugo in production mode.
- Add new scripts for rollup and hugo commands in different environments.
- Update devDependencies to include new rollup plugins and npm-run-all.

Note: The specific versions of the devDependencies are not mentioned in the diff.
2023-11-01 23:12:19 +08:00

63 lines
2.2 KiB
JSON

{
"name": "bridget",
"version": "0.0.1",
"description": "bridget theme source file",
"private": true,
"sideEffects": false,
"scripts": {
"lint": "eslint . --fix",
"dev": "rm ./static/js/*.js && run-p rollup:dev hugo:dev",
"build": "rm ./static/js/*.js && run-s rollup:build hugo:build",
"server": "rm ./static/js/*.js && run-p rollup:server hugo:server",
"rollup:build": "rollup -c --environment BUILD:production",
"rollup:server": "rollup -c --watch --environment BUILD:production",
"rollup:dev": "rollup -c --watch --environment BUILD:development",
"hugo:build": "hugo --logLevel info --source=exampleSite --themesDir ../.. --gc",
"hugo:preview": "hugo --logLevel info --source=exampleSite --themesDir ../.. -D --gc",
"hugo:dev": "hugo server --source=exampleSite --gc -D --disableFastRender --watch --logLevel info",
"hugo:server": "hugo server --source=exampleSite --gc --disableFastRender -e production --watch --logLevel info"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sped0n/bridget.git"
},
"keywords": [
"hugo",
"theme",
"photography"
],
"author": "spedon",
"license": "MIT",
"bugs": {
"url": "https://github.com/Sped0n/bridget/issues"
},
"homepage": "https://github.com/Sped0n/bridget#readme",
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"npm-run-all": "^4.1.5",
"prettier": "3.0.3",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-organize-imports": "^3.2.3",
"rollup": "^4.2.0",
"terser": "^5.24.0",
"typescript": "^5.2.2"
},
"dependencies": {
"gsap": "^3.12.2",
"swiper": "^11.0.3"
}
}