Skip to content

Commit

Permalink
feat: working, Test locally npx-linked-lib-simple 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Apr 8, 2024
1 parent 9a1f376 commit cc5c3a0
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/npx-linked-lib-simple/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions examples/npx-linked-lib-simple/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
17 changes: 17 additions & 0 deletions examples/npx-linked-lib-simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# test-local `npx-linked-lib-simple` (dev and debug)

## Intialization
- do `nvm install` to add node 18
- do `npm i -g http-server` to add http-server (not mandatory)
- do `npm install -g puppeteer` to install last version of puppeteer
- do `npx puppeteer browsers install chrome` to install chrome puppeteer version
- do `sh init.sh` to install the dependencies and create the necessary link.
- reopen terminal

## Examples

- `npm run lhei:help`: "npx lighthouse-plugin-ecoindex --help",
- `npm run lhei:demo`: "npx lighthouse-plugin-ecoindex -d",
- `npm run lhei:print`: "npx lighthouse-plugin-ecoindex -u https://www.creastuces.com/des-styles-css-pour-optimiser-limpression-papier/ -o json -o html",
- `npm run lhei:file`: "npx lighthouse-plugin-ecoindex -f example-urls-list -o json -o html",
- `npm run lhei:file:header`: "npx lighthouse-plugin-ecoindex -f example-urls-list -h extra-headers.json -o json -o html"
1 change: 1 addition & 0 deletions examples/npx-linked-lib-simple/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm link lighthouse-plugin-ecoindex
13 changes: 13 additions & 0 deletions examples/npx-linked-lib-simple/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions examples/npx-linked-lib-simple/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "lighthouse-plugin-ecoindex-playground",
"version": "1.0.0",
"type": "module",
"description": "Test locally `npx-linked-lib-simple`",
"scripts": {
"lhei:help": "npx lighthouse-plugin-ecoindex --help",
"lhei:demo": "npx lighthouse-plugin-ecoindex -d",
"lhei:issue_12": "npx lighthouse-plugin-ecoindex collect -u https://www.spie.com/en/about-us/spie-around-world -o html",
"serve": "npx http-server -o reports --no-dotfiles",
"clean": "rm -rf reports/* && touch reports/.geetkeep"
},
"keywords": [],
"author": "",
"license": "ISC"
}

0 comments on commit cc5c3a0

Please sign in to comment.