From d7a25beafafdc7501a0c7002d134c4ca9c96fdfd Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 1 Apr 2023 11:15:06 +0800 Subject: [PATCH] :heavy_minus_sign: Chore: remove @babel/* and core-js --- .babelrc | 12 ------------ CHANGELOG.md | 9 ++++++++- package-lock.json | 21 --------------------- package.json | 9 +-------- 4 files changed, 9 insertions(+), 42 deletions(-) delete mode 100644 .babelrc diff --git a/.babelrc b/.babelrc deleted file mode 100644 index d5ad11e3..00000000 --- a/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "comments": false, - "minified": true, - "presets": [ - [ - "@babel/preset-env", - { - "targets": "> 0.25%, not dead" - } - ] - ] -} diff --git a/CHANGELOG.md b/CHANGELOG.md index 638a68c2..0a628e78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,16 @@ All notable changes to this project will be documented in this file. + + +
+ 0.x version + ## 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: ## :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) + +
diff --git a/package-lock.json b/package-lock.json index 5194ed66..f5ab501a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 3c9ca5e6..67da6f30 100644 --- a/package.json +++ b/package.json @@ -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 .",