Skip to content

Commit

Permalink
feat: example to develop in
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Apr 8, 2024
1 parent 2017c16 commit fbe8bb2
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions examples/npx-emulated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# test-local `npx-emulated` (dev and debug)

Create symbolik link
```bash
ln -s ../../lighthouse-plugin-ecoindex lighthouse-plugin-ecoindex
```

## 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
- reopen terminal

## Examples

- `npm run direct:help`: "node lighthouse-plugin-ecoindex/cli/index.js --help",
- `npm run direct:demo`: "node lighthouse-plugin-ecoindex/cli/index.js collect -d",
1 change: 1 addition & 0 deletions examples/npx-emulated/lighthouse-plugin-ecoindex
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"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",
"direct:help": "node lighthouse-plugin-ecoindex/cli/index.js --help",
"direct:demo": "node lighthouse-plugin-ecoindex/cli/index.js collect -d",
"direct:issue_12": "node lighthouse-plugin-ecoindex/cli/index.js 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/.gitkeep"
},
Expand Down
File renamed without changes.
17 changes: 0 additions & 17 deletions examples/npx-linked-lib-simple/README.md

This file was deleted.

1 change: 0 additions & 1 deletion examples/npx-linked-lib-simple/init.sh

This file was deleted.

0 comments on commit fbe8bb2

Please sign in to comment.