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
-12
View File
@@ -1,12 +0,0 @@
{
"comments": false,
"minified": true,
"presets": [
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead"
}
]
]
}
+8 -1
View File
@@ -3,11 +3,16 @@
All notable changes to this project will be documented in this file.
<!-- Releases see https://github.com/hugo-fixit/FixIt/releases -->
<!-- remove 0.x releases and only keep ^1.0.0 releases -->
<details>
<summary>0.x version</summary>
## v0.2.18 [2023.3.31]
> **Note**
> This will be the last relatively stable 0.x release, after which the first major release will be incompatible with all previous 0.x releases
> Snapshot: <>
> Snapshot: <https://fixit-bpkhreqhl-x-cell.vercel.app>
## :boom: Breaking Updates
@@ -324,3 +329,5 @@ All notable changes to this project will be documented in this file.
## v0.2.10 :arrow_down: [2020-5-29 before]
Thanks [dillonzq/LoveIt](https://github.com/dillonzq/LoveIt/releases)
</details>
-21
View File
@@ -9,13 +9,9 @@
"version": "0.2.18",
"license": "MIT",
"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"
}
},
@@ -2521,17 +2517,6 @@
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true
},
"node_modules/core-js": {
"version": "3.29.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.29.1.tgz",
"integrity": "sha512-+jwgnhg6cQxKYIIjGtAHq2nwUOolo9eoFZ4sHfUH09BLXBgxnH4gA0zEd+t+BO2cNB8idaBtZFcFTRjQJRJmAw==",
"dev": true,
"hasInstallScript": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
}
},
"node_modules/core-js-compat": {
"version": "3.26.0",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz",
@@ -6675,12 +6660,6 @@
}
}
},
"core-js": {
"version": "3.29.1",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.29.1.tgz",
"integrity": "sha512-+jwgnhg6cQxKYIIjGtAHq2nwUOolo9eoFZ4sHfUH09BLXBgxnH4gA0zEd+t+BO2cNB8idaBtZFcFTRjQJRJmAw==",
"dev": true
},
"core-js-compat": {
"version": "3.26.0",
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz",
+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 .",