Skip to content
On this page

fresh-vite-app-preact

Fresh Preact app, automatically generated everyday with yarn create vite fresh-app --template=preact

Result

Time spent0m 23s
Disk usage31 MB
pwuser@factory:/workspace$ bash -exc 'yarn create vite fresh-app --template=preact && cd fresh-app && yarn && yarn build' < /dev/null; echo 'Finished running generator.'
+ yarn create vite fresh-app --template=preact
cd /workspace/fresh-app/dist
yarn create v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "create-vite@3.2.1" with binaries:
      - create-vite
      - cva
[##] 2/2
Scaffolding project in /workspace/fresh-app...

Done. Now run:

  cd fresh-app
  yarn
  yarn dev

Done in 0.62s.
+ cd fresh-app
+ yarn
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @preact/preset-vite@2.4.0" has unmet peer dependency "@babel/core@7.x".
warning "@preact/preset-vite > @babel/plugin-transform-react-jsx@7.19.0" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@preact/preset-vite > @babel/plugin-transform-react-jsx-development@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@preact/preset-vite > babel-plugin-transform-hook-names@1.0.2" has unmet peer dependency "@babel/core@^7.12.10".
warning "@preact/preset-vite > @babel/plugin-transform-react-jsx > @babel/plugin-syntax-jsx@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 9.17s.
+ yarn build
yarn run v1.22.19
$ vite build
/opt/factory/bin/screenshot 'http-server' 8080 || true; echo 'Finished taking screenshot.'
exit
vite v3.2.5 building for production...
✓ 10 modules transformed.
dist/assets/preact.48177e6f.svg   1.55 KiB
dist/index.html                   0.44 KiB
dist/assets/index.e6c16757.js     12.67 KiB / gzip: 5.17 KiB
dist/assets/index.b09fabce.css    1.17 KiB / gzip: 0.61 KiB
Done in 1.23s.
Finished running generator.
pwuser@factory:/workspace$ cd /workspace/fresh-app/dist
pwuser@factory:/workspace/fresh-app/dist$ /opt/factory/bin/screenshot 'http-server' 8080 || true; echo 'Finished taking screenshot.'
+ start-test http-server :8080 'cd /workspace && (playwright screenshot --viewport-size=1280,720 http://localhost:8080 /workspace/screenshot.png; playwright screenshot --viewport-size=1280,720 --wait-for-timeout=4096 http://localhost:8080 /workspace/screenshot.png)'
1: starting server using command "http-server"
and when url "[ 'http://localhost:8080' ]" is responding with HTTP status code 200
running tests using command "cd /workspace && (playwright screenshot --viewport-size=1280,720 http://localhost:8080 /workspace/screenshot.png; playwright screenshot --viewport-size=1280,720 --wait-for-timeout=4096 http://localhost:8080 /workspace/screenshot.png)"

Starting up http-server, serving ./

http-server version: 14.1.1

http-server settings: 
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://127.0.0.1:8080
  http://172.17.0.3:8080
Hit CTRL-C to stop the server

[2022-12-09T00:33:43.362Z]  "HEAD /" "axios/0.21.4"
(node:100) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Navigating to http://localhost:8080
[2022-12-09T00:33:44.044Z]  "GET /" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.065Z]  "GET /assets/index.e6c16757.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.073Z]  "GET /assets/index.b09fabce.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.090Z]  "GET /vite.svg" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.091Z]  "GET /assets/preact.48177e6f.svg" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
Capturing screenshot into /workspace/screenshot.png
Navigating to http://localhost:8080
[2022-12-09T00:33:44.878Z]  "GET /" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.889Z]  "GET /assets/index.e6c16757.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.895Z]  "GET /assets/index.b09fabce.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.912Z]  "GET /vite.svg" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
[2022-12-09T00:33:44.914Z]  "GET /assets/preact.48177e6f.svg" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/106.0.5249.30 Safari/537.36"
Waiting for timeout 4096...
Capturing screenshot into /workspace/screenshot.png
http-server stopped.
Finished taking screenshot.
pwuser@factory:/workspace/fresh-app/dist$ exit
exitBD

Screenshot

Screenshot