Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/demo customer #509

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Use cli package

342a275
Select commit
Loading
Failed to load commit list.
Draft

Chore/demo customer #509

Use cli package
342a275
Select commit
Loading
Failed to load commit list.
VTEX Sites / Build succeeded Sep 13, 2024 in 2m 49s

Build

Build success! Check the logs bellow:

Details

[Fri Sep 13 12:10:59 UTC 2024] This is a development build. Skipping production deploy.
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@faststore/cli > @faststore/core > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning "@faststore/cli > @faststore/core > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @envelop/[email protected]" has incorrect peer dependency "@envelop/core@^3.0.6".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@^1.0.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@^1.0.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.4.0 <1.5.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api-logs@>=0.38.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.10.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0 || ^2.0.0".
warning "@faststore/cli > @oclif/plugin-help > @oclif/core > [email protected]" has unmet peer dependency "@types/node@*".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-logs-otlp-grpc > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.5.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-logs-otlp-grpc > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@^1.0.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-logs-otlp-grpc > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.3.0 <1.5.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-trace-otlp-grpc > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.5.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-trace-otlp-grpc > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.5.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/sdk-trace-base > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.10.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/sdk-trace-base > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.10.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-logs-otlp-grpc > @opentelemetry/otlp-grpc-exporter-base > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@^1.0.0".
warning "@faststore/cli > @faststore/core > @faststore/api > @opentelemetry/exporter-logs-otlp-grpc > @opentelemetry/otlp-transformer > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.3.0 <1.5.0".
warning " > @cypress/[email protected]" has unmet peer dependency "@babel/core@^7.0.1".
warning " > @cypress/[email protected]" has unmet peer dependency "@babel/preset-env@^7.0.0".
warning " > @cypress/[email protected]" has unmet peer dependency "babel-loader@^8.3 || ^9".
warning " > @cypress/[email protected]" has unmet peer dependency "webpack@^4 || ^5".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "@babel/core@^7.0.1".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "@babel/preset-env@^7.0.0".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "babel-loader@^8.3 || ^9".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "webpack@^4 || ^5".
warning " > [email protected]" has unmet peer dependency "axe-core@^3 || ^4".
[4/4] Building fresh packages...
Done in 41.10s.

yarn run v1.22.19
$ faststore build
success - Temporary folder .faststore created
success - Core files copied
success - Build time updated 2024-09-13T12:11:42.019Z
success - Starter files copied
success - custom-theme theme has been applied
success - CMS webhook URLs file created
$ na run partytown && na run generate
$ partytown copylib ./public/~partytown
Partytown lib copied to: /shared/project/.faststore/public/~partytown
$ na run generate:schema && na run generate:codegen && na run format:generated
$ tsx src/server/generator/generateGraphQLSchemaFile.ts
Schema GraphQL file generated successfully
$ graphql-codegen
[STARTED] Parse Configuration
[SUCCESS] Parse Configuration
[STARTED] Generate outputs
[STARTED] Generate to ./@generated/
[STARTED] Load GraphQL schemas
[SUCCESS] Load GraphQL schemas
[STARTED] Load GraphQL documents
[SUCCESS] Load GraphQL documents
[STARTED] Generate
[SUCCESS] Generate
[SUCCESS] Generate to ./@generated/
[SUCCESS] Generate outputs
Running lifecycle hook "afterStart" scripts...
[CLI] Loading Schemas
[CLI] Loading Documents
[CLI] Generating output
$ prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
$ next build
   Linting and checking validity of types ...
   Creating an optimized production build ...
   Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
   Using external babel configuration from /shared/project/.faststore/.babelrc.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/7) ...
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.

   Generating static pages (1/7) 

   Generating static pages (3/7) 

   Generating static pages (5/7) 

 ✓ Generating static pages (7/7) 
   Finalizing page optimization ...
   Collecting build traces ...

Route (pages)                              Size     First Load JS
┌ ● /                                      1.26 kB         151 kB
├   └ css/197e314c5a03eabd.css             740 B
├   /_app                                  0 B            93.6 kB
├ ● /[...slug]                             2.81 kB         163 kB
├   └ css/e47f1a002bdcf76f.css             2.38 kB
├ ● /[slug]/p                              11.3 kB         161 kB
├   └ css/fbd711b9f5abf105.css             9.57 kB
├ ○ /404                                   1.45 kB         133 kB
├ ● /500                                   1.45 kB         133 kB
├ ● /account                               676 B           132 kB
├ λ /api/graphql                           0 B            93.6 kB
├ λ /api/health/live                       0 B            93.6 kB
├ λ /api/health/ready                      0 B            93.6 kB
├ λ /api/preview                           0 B            93.6 kB
├ ● /checkout                              661 B           132 kB
├ ● /login                                 1.57 kB         133 kB
└ ● /s                                     2.26 kB         162 kB
+ First Load JS shared by all              96.7 kB
  ├ chunks/framework-a2a6c4de76e61924.js   45.4 kB
  ├ chunks/main-8a9b93bc5aeff730.js        33 kB
  ├ chunks/pages/_app-efec5aae52244401.js  12.8 kB
  ├ chunks/webpack-a26e83694a201f10.js     2.49 kB
  └ css/b074e3b140b1a561.css               3.08 kB

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)

success - /shared/project/.faststore/.next copied to /shared/project/.next
success - /shared/project/.faststore/lighthouserc.js copied to /shared/project/lighthouserc.js
success - /shared/project/.faststore/public copied to /shared/project/public
Done in 66.34s.

[Fri Sep 13 12:12:49 UTC 2024] NGINX image Dockerfile was created!
[Fri Sep 13 12:12:49 UTC 2024] Node image Dockerfile was created!
[Fri Sep 13 12:12:54 UTC 2024] Validating NGINX configuration file syntax.
[Fri Sep 13 12:12:54 UTC 2024] NGINX config file ok.
[Fri Sep 13 12:12:54 UTC 2024] Building NGINX image.
[Fri Sep 13 12:12:57 UTC 2024] NGINX image was generated.
[Fri Sep 13 12:12:57 UTC 2024] Building Node image.
[Fri Sep 13 12:13:04 UTC 2024] Node image was generated.
[Fri Sep 13 12:13:06 UTC 2024] NGINX image was tagged as preview.
[Fri Sep 13 12:13:07 UTC 2024] Node image was tagged as preview.
[Fri Sep 13 12:13:07 UTC 2024] Deploying development preview
[Fri Sep 13 12:13:07 UTC 2024] This is a development build. Skiping production deploy.
[Fri Sep 13 12:13:21 UTC 2024] Development preview deployed
[Fri Sep 13 12:13:21 UTC 2024] Deploy completed.