Chore: remove @babel/* and core-js

This commit is contained in:
Cell
2023-04-01 11:15:06 +08:00
parent d64a6210f2
commit d7a25beafa
4 changed files with 9 additions and 42 deletions
+1 -8
View File
@@ -4,23 +4,16 @@
"description": "FixIt theme source files",
"private": true,
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"atomic-algolia": "^0.3.19",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.29.1",
"segmentit": "^2.0.3"
},
"scripts": {
"babel": "npx babel src/js/theme.js -o assets/js/theme.min.js -s",
"build": "npm run babel && hugo -v --source=docs --gc --minify",
"build": "hugo -v --source=docs --gc --minify",
"build:lunr.segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
"server": "hugo server --source=docs -D --disableFastRender --navigateToChanged --ignoreCache --bind 0.0.0.0",
"server:production": "npm run server -- -e production",
"start": "npm run babel && npm run server",
"start:production": "npm run babel && npm run server:production",
"algolia": "atomic-algolia",
"update:docs": "git submodule update --remote --merge && git add docs && git commit -m ':memo: Docs: update theme docs'",
"version": "sed -i '' \"s/v$npm_package_version-RC/v$npm_package_version/g\" layouts/partials/init/index.html && git add .",