Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: viarotel-org/cleants
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.1-10
Choose a base ref
...
head repository: viarotel-org/cleants
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 299 additions and 56 deletions.
  1. +1 −1 .github/workflows/autofix.yml
  2. +6 −10 .github/workflows/ci.yml
  3. +2 −1 .gitignore
  4. +210 −0 CHANGELOG.md
  5. +5 −5 README-CN.md
  6. +6 −6 README.md
  7. +4 −3 package.json
  8. +12 −0 pnpm-lock.yaml
  9. +1 −1 src/bin.js
  10. +40 −20 src/helpers/index.js
  11. +5 −5 src/index.js
  12. +2 −2 src/plugins/base/index.js
  13. +5 −2 src/plugins/vue/index.js
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: autofix
name: autofix.ci

on:
pull_request:
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -9,31 +9,27 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: enable corepack and pnpm
- name: Enable corepack and pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: install dependencies and build
- name: Install dependencies and build
run: |
pnpm install
pnpm build
- name: release
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
fail_on_unmatched_files: false
files: dist/**/*
env:
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -19,4 +19,5 @@ lerna-debug.log*
# User
node_modules
*.local
dist
dist
cleants.config.js
210 changes: 210 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,216 @@
# Changelog


## v0.0.3

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.2...v0.0.3)

### 🔥 Performance

- ➖ Remove unnecessary language flags at build time ([227465f](https://github.com/viarotel-org/cleants/commit/227465f))

### 📖 Documentation

- 📝 Update README ([866fb49](https://github.com/viarotel-org/cleants/commit/866fb49))
- 📝 Update README ([e31a380](https://github.com/viarotel-org/cleants/commit/e31a380))

### ❤️ Contributors

- Viarotel ([@viarotel-org](http://github.com/viarotel-org))

## v0.0.2

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1...v0.0.2)

### 🔥 Performance

- 🚀Update default ignoredCopyPatterns configuration ([8ddc9f1](https://github.com/viarotel-org/cleants/commit/8ddc9f1))

### ❤️ Contributors

- Viarotel ([@viarotel-org](http://github.com/viarotel-org))

## v0.0.1

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-20...v0.0.1)

### 🏡 Chore

- 🎉 Official Release ([688d114](https://github.com/viarotel-org/cleants/commit/688d114))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-20

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-19...v0.0.1-20)

### 🤖 CI

- 👷 Update CI ([1a7c6de](https://github.com/viarotel-org/cleants/commit/1a7c6de))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-19

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-18...v0.0.1-19)

### 🔥 Performance

- 🔧 Update CI ([9aa9f7d](https://github.com/viarotel-org/cleants/commit/9aa9f7d))

### 🏡 Chore

- **release:** V0.0.1-18 ([c937df7](https://github.com/viarotel-org/cleants/commit/c937df7))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-18

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-17...v0.0.1-18)

### 🏡 Chore

- **release:** V0.0.1-17 ([2093777](https://github.com/viarotel-org/cleants/commit/2093777))

### 🤖 CI

- ♻️ Update CI ([add9d86](https://github.com/viarotel-org/cleants/commit/add9d86))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-17

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-16...v0.0.1-17)

### 🏡 Chore

- **release:** V0.0.1-16 ([779d455](https://github.com/viarotel-org/cleants/commit/779d455))

### 🤖 CI

- 👷 Update CI ([5c37160](https://github.com/viarotel-org/cleants/commit/5c37160))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-16

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-15...v0.0.1-16)

### 🏡 Chore

- **release:** V0.0.1-15 ([edcc23d](https://github.com/viarotel-org/cleants/commit/edcc23d))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-15

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-14...v0.0.1-15)

### 🏡 Chore

- **release:** V0.0.1-14 ([df9d87a](https://github.com/viarotel-org/cleants/commit/df9d87a))

### 🤖 CI

- 🔧 Update CI ([020834c](https://github.com/viarotel-org/cleants/commit/020834c))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-14

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-13...v0.0.1-14)

### 🔥 Performance

- 🔧 Update CI ([cc39baf](https://github.com/viarotel-org/cleants/commit/cc39baf))

### 🏡 Chore

- **release:** V0.0.1-13 ([e2f2990](https://github.com/viarotel-org/cleants/commit/e2f2990))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-13

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-12...v0.0.1-13)

### 🔥 Performance

- ♻️ Update CI ([e683454](https://github.com/viarotel-org/cleants/commit/e683454))

### 🏡 Chore

- **release:** V0.0.1-12 ([80b05d4](https://github.com/viarotel-org/cleants/commit/80b05d4))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-12

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-11...v0.0.1-12)

### 🔥 Performance

- ♻️ CI flows ([a32d10f](https://github.com/viarotel-org/cleants/commit/a32d10f))

### 🏡 Chore

- **release:** V0.0.1-11 ([239eb89](https://github.com/viarotel-org/cleants/commit/239eb89))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-11

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-10...v0.0.1-11)

### 🩹 Fixes

- 🐛 Entry function name error ([0c80f89](https://github.com/viarotel-org/cleants/commit/0c80f89))
- 🐛 Package conversion errors in some cases ([74fba05](https://github.com/viarotel-org/cleants/commit/74fba05))

### 🏡 Chore

- **release:** V0.0.1-10 ([3073029](https://github.com/viarotel-org/cleants/commit/3073029))

### ❤️ Contributors

- Viarotel <viarotel@foxmail.com>

## v0.0.1-10

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-9...v0.0.1-10)

### 🩹 Fixes

- 🐛 Entry function name error ([0c80f89](https://github.com/viarotel-org/cleants/commit/0c80f89))

### 🏡 Chore

- **release:** V0.0.1-9 ([f0e0f42](https://github.com/viarotel-org/cleants/commit/f0e0f42))

### ❤️ Contributors

- Viarotel ([@viarotel-org](http://github.com/viarotel-org))

## v0.0.1-9

[compare changes](https://github.com/viarotel-org/cleants/compare/v0.0.1-8...v0.0.1-9)
10 changes: 5 additions & 5 deletions README-CN.md
Original file line number Diff line number Diff line change
@@ -55,10 +55,10 @@ module.exports = {
outputDir: 'C:\\Users\\viarotel\\Downloads',
compilerOptions: {},
ignoredCopyPatterns: [
'node_modules',
'.git',
'dist',
/\.d\.ts$/,
file => file.includes('node_modules'),
file => file.endsWith('.log')
],
ignoredConversionPatterns: [
@@ -104,10 +104,10 @@ TypeScript 编译器选项。
默认值:
```javascript
[
'node_modules',
'.git',
'dist',
/\.d\.ts$/,
file => file.includes('node_modules'),
file => file.endsWith('.log')
]
```
@@ -153,10 +153,10 @@ TypeScript 编译器选项。
如果这个项目对你的工作或学习有所帮助,请考虑为项目点赞或通过以下链接请我喝杯咖啡:

<div style="display:flex;">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/zh-CN/viarotel-wepay.jpg" alt="viarotel-wepay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/zh-CN/viarotel-alipay.jpg" alt="viarotel-alipay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/sponsor/viarotel-wepay.png" alt="viarotel-wepay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/sponsor/viarotel-alipay.png" alt="viarotel-alipay" width="30%">
<a href="https://www.paypal.com/paypalme/viarotel" target="_blank" rel="noopener noreferrer">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/en-US/viarotel-paypal.png" alt="viarotel-paypal" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/sponsor/viarotel-paypal.png" alt="viarotel-paypal" width="30%">
</a>
</div>

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
[![npm version](https://img.shields.io/npm/v/cleants)](https://npmjs.com/package/cleants)
[![npm downloads](https://img.shields.io/npm/dm/cleants)](https://npm.chart.dev/cleants)

> 🧹 Convert TypeScript to a cleaner JavaScript project
> 🧹 Convert TypeScript to a cleaner JavaScript project [中文文档](https://github.com/viarotel-org/cleants/blob/main/README-CN.md)
## Features

@@ -55,10 +55,10 @@ module.exports = {
outputDir: 'C:\\Users\\viarotel\\Downloads',
compilerOptions: {},
ignoredCopyPatterns: [
'node_modules',
'.git',
'dist',
/\.d\.ts$/,
file => file.includes('node_modules'),
file => file.endsWith('.log')
],
ignoredConversionPatterns: [
@@ -104,10 +104,10 @@ Patterns to ignore during the copy phase.
Default:
```javascript
[
'node_modules',
'.git',
'dist',
/\.d\.ts$/,
file => file.includes('node_modules'),
file => file.endsWith('.log')
]
```
@@ -153,10 +153,10 @@ Contributions, issues, and feature requests are welcome! Feel free to check the
If you find this project helpful for your work or study, please consider starring the project or buying me a cup of coffee through the links below:

<div style="display:flex;">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/zh-CN/viarotel-wepay.jpg" alt="viarotel-wepay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/zh-CN/viarotel-alipay.jpg" alt="viarotel-alipay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/donate/viarotel-wepay.png" alt="viarotel-wepay" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/donate/viarotel-alipay.png" alt="viarotel-alipay" width="30%">
<a href="https://www.paypal.com/paypalme/viarotel" target="_blank" rel="noopener noreferrer">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/screenshots/en-US/viarotel-paypal.png" alt="viarotel-paypal" width="30%">
<img src="https://cdn.jsdelivr.net/gh/viarotel-org/escrcpy@main/src/assets/donate/viarotel-paypal.png" alt="viarotel-paypal" width="30%">
</a>
</div>

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cleants",
"type": "module",
"version": "0.0.1-9",
"version": "0.0.3",
"packageManager": "pnpm@9.12.1",
"description": "🧹 Convert TypeScript to a cleaner JavaScript project",
"author": "viarotel",
@@ -36,9 +36,9 @@
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"dev": "unbuild && npx .",
"dev": "cross-env CLEANTS_CONFIG_DIR=../ unbuild && npx .",
"build": "unbuild",
"release": "unbuild && changelogen --release --prerelease && npm publish && git push --follow-tags",
"release": "changelogen --release --push && unbuild && npm publish",
"prepare": "husky install"
},
"dependencies": {
@@ -53,6 +53,7 @@
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
"changelogen": "^0.5.7",
"cross-env": "^7.0.3",
"eslint": "^9.12.0",
"husky": "^9.1.6",
"unbuild": "latest"
Loading