Skip to content

Commit

Permalink
Remove HTML minification feature
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed May 14, 2024
1 parent bed9ed4 commit 611ea4c
Show file tree
Hide file tree
Showing 14 changed files with 900 additions and 3,523 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

201 changes: 0 additions & 201 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/.prettierrc.json
/LICENSE*
/.eslintrc.json
/.github/workflows/ci.yml
/package-lock.json
/tsconfig.base.json
/tsconfig.json
/lib
/tsconfig.emit.json
/tsconfig.eslint.json
/.vscode/extensions.json
/.vscode/settings.json
8 changes: 3 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.addMissingImports": true,
"source.fixAll.eslint": true
"source.addMissingImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"editor.rulers": [
100
],
"eslint.experimental.useFlatConfig": true,
"files.exclude": {
".editorconfig": true,
".eslintignore": true,
".eslintrc.json": true,
".github": true,
".github/workflows/ci.yml": true,
".gitignore": true,
Expand All @@ -50,7 +49,6 @@
"ci.sh": true,
"tsconfig.base.json": true,
"tsconfig.emit.json": true,
"tsconfig.eslint.json": true,
"tsconfig.json": true
},
"json.schemaDownload.enable": true,
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
> An esbuild plugin that generates an HTML file.
This esbuild plugin allows the creation of an HTML file featuring output URLs of bundled assets,
while supporting customization of head and body elements. The esbuild's `minify` option handles
minification.
while supporting customization of head and body elements.

## Installation

Expand All @@ -20,7 +19,6 @@ import * as esbuild from 'esbuild';
await esbuild.build({
entryPoints: [`app.ts`],
bundle: true,
minify: true,
outdir: `dist`,
publicPath: `/static`,
plugins: [
Expand Down
Empty file modified ci.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createConfigs } from 'onecfg-lib-eslint';

export default [{ ignores: [`lib/`] }, ...createConfigs({ node: true })];
7 changes: 3 additions & 4 deletions onecfg.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-prettier.json",
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-typescript.json",
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-typescript-emit.json",
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-typescript-eslint.json",
"https://raw.githubusercontent.com/clebert/onecfg-lib/main/lib/onecfg-vscode.json"
],
"patches": {
"ci.sh": [
{
"value": [
"npm run format:check",
"npm run lint",
"npm run compile:check",
"npm run compile:emit"
"npm run compile:emit",
"npm run format:check",
"npm run lint"
]
}
]
Expand Down
Loading

0 comments on commit 611ea4c

Please # to comment.