Skip to content

Commit

Permalink
fix: allow npx unlighthouse-ci global usage
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed May 22, 2024
1 parent cd2550a commit 0c6a0eb
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/unlighthouse-ci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# unlighthouse

Alias package for [Unlighthouse](https://github.com/harlan-zw/unlighthouse). Includes two binaries: `unlighthouse` and `unlighthouse-ci`.

## License

MIT License © 2021-PRESENT [Harlan Wilton](https://github.com/harlan-zw)
2 changes: 2 additions & 0 deletions packages/unlighthouse-ci/bin/unlighthouse-ci.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import('@unlighthouse/cli/ci')
2 changes: 2 additions & 0 deletions packages/unlighthouse-ci/bin/unlighthouse.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import('@unlighthouse/cli')
12 changes: 12 additions & 0 deletions packages/unlighthouse-ci/build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/index',
],
rollup: {
emitCJS: true,
},
clean: true,
declaration: true,
})
2 changes: 2 additions & 0 deletions packages/unlighthouse-ci/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './dist/index'
export { default } from './dist/index'
60 changes: 60 additions & 0 deletions packages/unlighthouse-ci/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "unlighthouse-ci",
"version": "0.12.1",
"description": "Delightfully scan your entire website with Google Lighthouse. Navigate your performance, accessibility and SEO.",
"license": "MIT",
"homepage": "https://github.com/harlan-zw/unlighthouse#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/harlan-zw/unlighthouse.git"
},
"bugs": {
"url": "https://github.com/harlan-zw/unlighthouse/issues"
},
"keywords": [
"lighthouse",
"audit",
"seo",
"performance",
"speed"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "index.d.ts",
"bin": {
"unlighthouse": "bin/unlighthouse.cjs",
"unlighthouse-ci": "bin/unlighthouse-ci.cjs"
},
"files": [
"*.d.ts",
"dist"
],
"engines": {
"node": ">=18"
},
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"peerDependenciesMeta": {
"puppeteer": {
"optional": true
},
"vue": {
"optional": true
}
},
"dependencies": {
"@unlighthouse/cli": "workspace:../cli",
"@unlighthouse/client": "workspace:../client",
"@unlighthouse/core": "workspace:../core"
}
}
1 change: 1 addition & 0 deletions packages/unlighthouse-ci/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@unlighthouse/core'

0 comments on commit 0c6a0eb

Please sign in to comment.