mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
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.
This commit is contained in:
25
package.json
25
package.json
@@ -1,14 +1,21 @@
|
||||
{
|
||||
"name": "bridget-src",
|
||||
"name": "bridget",
|
||||
"version": "0.0.1",
|
||||
"description": "bridget theme source file",
|
||||
"private": true,
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix",
|
||||
"build": "hugo -v --source=exampleSite --themesDir ../.. --gc",
|
||||
"build:preview": "hugo -v --source=exampleSite --themesDir ../.. -D --gc",
|
||||
"server": "hugo server --source=exampleSite --gc -D --disableFastRender --watch --verbose",
|
||||
"server:production": "hugo server --source=exampleSite --gc --disableFastRender -e production --watch --verbose"
|
||||
"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",
|
||||
@@ -26,6 +33,9 @@
|
||||
},
|
||||
"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",
|
||||
@@ -37,9 +47,12 @@
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user