@shopify/cli-hydrogen 4.0.0-alpha.9 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/hydrogen/build.d.ts +20 -0
- package/dist/commands/hydrogen/build.js +36 -33
- package/dist/commands/hydrogen/check.d.ts +18 -0
- package/dist/commands/hydrogen/check.js +35 -0
- package/dist/commands/hydrogen/dev.d.ts +14 -0
- package/dist/commands/hydrogen/dev.js +56 -60
- package/dist/commands/hydrogen/generate/route.d.ts +34 -0
- package/dist/commands/hydrogen/generate/route.js +165 -0
- package/dist/commands/hydrogen/generate/route.test.d.ts +1 -0
- package/dist/commands/hydrogen/generate/route.test.js +126 -0
- package/dist/commands/hydrogen/generate/routes.d.ts +16 -0
- package/dist/commands/hydrogen/generate/routes.js +22 -0
- package/dist/commands/hydrogen/init.d.ts +22 -0
- package/dist/commands/hydrogen/init.js +169 -25
- package/dist/commands/hydrogen/preview.d.ts +17 -0
- package/dist/commands/hydrogen/preview.js +2 -2
- package/dist/create-app.d.ts +1 -0
- package/dist/create-app.js +4 -0
- package/dist/{templates/demo-store/app/routes/($lang) → generator-templates/routes}/[robots.txt].tsx +2 -1
- package/dist/{templates/demo-store/app/routes/($lang) → generator-templates/routes}/[sitemap.xml].tsx +8 -6
- package/dist/generator-templates/routes/account/login.tsx +74 -0
- package/dist/generator-templates/routes/account/register.tsx +74 -0
- package/dist/generator-templates/routes/cart.tsx +43 -0
- package/dist/generator-templates/routes/collections/$collectionHandle.tsx +65 -0
- package/dist/{templates/demo-store/app → generator-templates}/routes/graphiql.tsx +0 -0
- package/dist/{templates/hello-world/app → generator-templates}/routes/index.tsx +0 -0
- package/dist/generator-templates/routes/pages/$pageHandle.tsx +74 -0
- package/dist/{templates/demo-store/app/routes/($lang) → generator-templates/routes}/policies/$policyHandle.tsx +9 -38
- package/dist/generator-templates/routes/policies/index.tsx +65 -0
- package/dist/generator-templates/routes/products/$productHandle.tsx +57 -0
- package/dist/hooks/init.d.ts +5 -0
- package/dist/utils/check-lockfile.d.ts +3 -0
- package/dist/utils/check-lockfile.js +78 -0
- package/dist/utils/check-version.d.ts +3 -0
- package/dist/utils/check-version.js +50 -0
- package/dist/utils/config.d.ts +18 -0
- package/dist/utils/config.js +116 -43
- package/dist/utils/flags.d.ts +10 -0
- package/dist/utils/flags.js +15 -3
- package/dist/utils/flags.test.d.ts +1 -0
- package/dist/utils/flags.test.js +18 -0
- package/dist/utils/log.d.ts +5 -0
- package/dist/utils/mini-oxygen.d.ts +11 -0
- package/dist/utils/mini-oxygen.js +7 -4
- package/dist/utils/missing-routes.d.ts +6 -0
- package/dist/utils/missing-routes.js +71 -0
- package/dist/utils/template-downloader.d.ts +11 -0
- package/dist/utils/template-downloader.js +66 -0
- package/dist/utils/transpile-ts.d.ts +16 -0
- package/dist/utils/transpile-ts.js +169 -0
- package/dist/utils/virtual-routes.d.ts +7 -0
- package/dist/utils/virtual-routes.js +47 -0
- package/dist/utils/virtual-routes.test.d.ts +1 -0
- package/dist/utils/virtual-routes.test.js +46 -0
- package/dist/virtual-routes/assets/dummy.d.ts +1 -0
- package/dist/virtual-routes/assets/dummy.js +1 -0
- package/dist/virtual-routes/assets/dummy.ts +1 -0
- package/dist/{templates/demo-store/dist/client → virtual-routes/assets}/favicon.svg +0 -0
- package/dist/virtual-routes/assets/styles.css +207 -0
- package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +7 -0
- package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +13 -0
- package/dist/virtual-routes/components/IconBanner.jsx +47 -0
- package/dist/virtual-routes/components/IconDiscord.jsx +4 -0
- package/dist/virtual-routes/components/IconError.jsx +20 -0
- package/dist/virtual-routes/components/IconGithub.jsx +4 -0
- package/dist/virtual-routes/components/IconTwitter.jsx +4 -0
- package/dist/virtual-routes/components/Layout.jsx +6 -0
- package/dist/virtual-routes/routes/graphiql.jsx +5 -0
- package/dist/virtual-routes/routes/index.jsx +140 -0
- package/dist/virtual-routes/virtual-root.jsx +38 -0
- package/oclif.manifest.json +1 -131
- package/package.json +36 -7
- package/dist/templates/demo-store/.cache/content-v2/sha512/02/76/13bbea15bb42b81a204b0dc5f14726e0bfa8d012a7b284f887cc2e3c92195d6b07a78f199f990b311ca5fafa9079563503cdd81808cd9b7e496d86c72732 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/08/56/c9a478b8c5c2fbfb6eed219f0861db568eceecbb45155124491ca25125ca421aac7e1b10d29151e5294a776ae10e02e01dc2da3561da793d111c4f908502 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/0f/d5/950a1e0708f440217f567601ee2bfed73c56ada7491058d1ebb769f9a348484d29d4c3897d848d5f9123b0cfb8be69de4ebddc9d964a368e779e2927be5b +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/10/31/47b4061a63eaedea6368416dff9248ab2e51a4bea4004882a27c1437490c8150a4709438d28bbd8fd71a7516c9af612204f6116b0604e18902b5c6f69453 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/13/f6/b7f804d45a961ca1e392429e75ad80f23ba46cbba0e960c6a70f8de81f3f3763af59651474176798d1a1a4bd2a5109b1d441f6d1c8ba070b678b38378adf +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/28/7c/c71b0c6367bdf7307a8061fe1c4568c9f1e9603d835b6fc917fe8042535a867c37154e35376a01ad6bdb3c2d6f29b88b41902fd6f20b1227e02081682d01 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/29/62/a788055902cff8e9403b901ebd715b56541b0ee4dc9f13cb739cd906ae89ae1fa7199831d613ab21c3ee5d84c5456608dc8707d9199ae3d8ba5e9fd7ce95 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/2b/b2/d5a8e11c89553d08b26b4a7ba8b901de31c0b182f745f8c5d1c5aba44bf46d0d69e3d8042f5917728d0b69d5eba102e3de332f8141aef67a12d215a66843 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/34/dd/ec66f7075936ba94dd741485089904914960fd50a4886c31783c27c27ca08852be43dea712e8aaea6f5197b83ccf1949c8a24c27ff61f5280377917d722e +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/46/04/af285aee74d96b28b24f75d7911de65e6c7bb26475ab5219fe5308028fda55060cf45650dfa09c0731ec73ece453c1e24e0c38715e8d4c5c80fd6365a1f4 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/4e/ea/2fe739931285fa2839b54fe6c91470491475eac2d960e35ef0c6750313c08fbf2b2d784c0bb71c5fb2ef6c4a27f2202a4c29199b53bf7fd43c5721f90ecf +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/51/ab/e165384df6374c7b2d0ebebc8642ecb0e0c14f7c5b57970ec5d2e17f7d1643e0b01eda69e5ffbefde85ecba6d613bcc5175c5564e36bfb73d966c8ea4153 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/54/b2/a99146d18769ec698b6c61e4c3e63689a24110cca7c671d926fc1320f5a2ac5cdbf143db9074dcfb383359307c50ccbe2512f2d9ee992eb53f2ed98997af +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/57/7e/37b69b357be4c488e5fca37c009c908201ac2107ddaa589143bcb108e9c5f7e4ca91a36f068b3f88bb0da655d7832bd040dcbef25d807faf0804a7f93c9a +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/6d/d8/5ad2b238dcc09122c8977b26e2a2eb94e12b1cda5181a020ec77d9364ea2efdc2ddddaf2ba766ced871d8cc33e5862fb4ae0c6591080b7523e5e779dceb5 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/72/e4/3df1f2ae672aa3148b6afde9bd16b5371250464c301be7a4ca40e459768db712d39fb7039ce9710264f726b531b7dd346e43fe260b53789206a05f665393 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/73/40/c822831f11f08a9ceea944d0145b072ba6164a3e2e75f98fda5437cda6dfddf9ca9450445c1f3236228d6259ac95e4cde9bb6e5996490ed00b7b13b06121 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/73/ad/c5cb88faf344aa1be4c7f263610bbf4e5b4b4122a277e9f8adb20bdaabf46a65f647d902bf885172c5e17f16d63c69d9f0213938ad0648099d627bcdc7a3 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/79/6a/c7905d20904ce592cd04dabc941dcfb9ae88a2936f564c6ca21dba66c7b89f44c697504d1fef3427d5121f3ce0abfc72225a25a5985cc2f823c50cb1a4e0 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/7e/bd/739d3492efb96a9a5952538eee6f83dd7123c59a4b48538a5a554b8684ba84a1e65dd626b5aa9c6dc74c96734c46e3303ab93e6a5fcc56ecb4150c036aea +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/88/76/d18fdfbb05293909609d42368642fc6da4bd138c5864ec2f721212b52e595b84ae46f48021ed3e6240edf443f78bdea557d56d700e3da848459ea3077a80 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/88/d0/847cc94057b70b5352a6f097d172883a789eedabfe597475672bec5495d323bc41e185cd5a6477aa691befeb69bd6f19f77b4735ebd8f230d39491bdabae +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/93/6b/e60098157f6bff8ba570cab2ffd97a14983109006f7fa87e4432728366f96dfb19e957d28754daa45f1b6cb2421d26ab59bbd5ce5a448d6102e8e662403d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/bc/1c/74650cdfe58d3295c52501b3572b71ca4d0bcebe895291b39d63fc57d60b1924315d5b6292c825bec288196d39acf45d63688726fd77e85d99ce18e52f28 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/bc/33/6e26ece5ac53d9eac9ac8a192ef39faf2a587a5808253c659fb1d371c477fc8074d428c8d1929b0d85dd1fec66fc79ea6b9fcb01507e2efec75fb7fbc2cc +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/cb/63/324e426b4c93a3fa8db83dab506b9abbe2d7628897dfd1369642f19d66f140c090e1c3834728d5082f8cffe846f7c54d112e11f5d934d629ed996d177a1f +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/d6/bd/656ddf1b02384b21b4fb55c615f28bba616f85c0992a8555bfbc3b0cf0692e2b3f20a534b4c3baef86e7c9ccf36b8d3a9239747b3d8422ff4dbe7dd2d0a6 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/da/84/b6d27e02f9b109d7cff3095b08e2e2ed1802c8b6829c98f6e297d1c404059f8bacfdc278afd07e2f81cbc487318396a3775037b678ab6aff9a5231c94c0d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/e8/ae/9b467e1d23913d4584d9417875b3cdc25f6dfed8b228f3a0c818129010b778aae1af1eb200b015ab428e79afe0ef1061262392fbdb96ed7da95efbe7f758 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/f4/ba/e578b89fa1a4a0549fa2e68e0ba078fa8c9207c376189d1550a7ae0e54c4c0548d0a29a0cef532ca613e25832b9343e74f6a8bc7338fcc28d51e6e3d7898 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/fb/75/9195d7f913bc6ae5a345003e0863e0c38c00e744334e2ae61feba1a3099be8207599085a8264590dbd0fd9e1fff1d58037183d106cdbc750c7ad6f979d88 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/fd/ef/df6382410602f345da5bb420585629c22c350bc028c87eb6da71e611f381c5ccba09b435b9b5fb31d7c8beb5b8abfa87abdb874b189a3211efe61840fbac +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/fd/f3/986b7ee5ea5ad1d89af5c08de69d43c025b54381092e0a19fd7e7a1e0352552aa85c056315ce5e11a46ec75a252b1a44e2083abb73cd6df8407dfdb0ac48 +0 -1
- package/dist/templates/demo-store/.cache/index-v5/05/44/bebd201ef5e9e9a7c41bd789ff110691a32c7f7fbbbdd630f33d96667cd1 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/26/b5/113aeb17f9f4ef406a1f8b143895199ca545fd0cc1e7972435a092910963 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/2c/09/e60b5cd818510e0cbec908aae3b74175e35e446f4383e87c21489433a11e +0 -2
- package/dist/templates/demo-store/.cache/index-v5/38/21/c3fb7841590b85142018ba88a01045ef1249ac34211342579f0129eae294 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/3a/98/8858fe7de4bf85d37c71adc322cc95335b498bef9a4ae41db324bf5696cc +0 -2
- package/dist/templates/demo-store/.cache/index-v5/3e/40/7021422a7cae2c05484b491fb5b85edd82b325e598ac9e5c6afb858049da +0 -2
- package/dist/templates/demo-store/.cache/index-v5/47/2f/8e9ec62247eca3464d07de774855bb30a56145adc6525b907490e0c1bda0 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/5e/83/14bed234cd143eaf4043de721fcf4250a5adc7008e76d663365e8a322c88 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/5f/87/f79366b4aab5423acdda7930c6c989c49dd1c6607885df3afaa5e6873c9f +0 -2
- package/dist/templates/demo-store/.cache/index-v5/6e/9e/dc622ea9b5c66089a08f3e8b7a0e62a29e85bab337da0a3b28d6126185ec +0 -2
- package/dist/templates/demo-store/.cache/index-v5/71/4c/401eb7f3b2db5e56857a3ddd90e61181e636a5d01cc569ff8671ddf7f14b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/78/84/46021cf9ede94313b5bc2cbf2355909ae811d4879a7747f9e2341f6b5bfb +0 -2
- package/dist/templates/demo-store/.cache/index-v5/79/2e/b0dd8fcd37a11ecb71cfd33184651560cabda672e55e0b244fc6f825190c +0 -2
- package/dist/templates/demo-store/.cache/index-v5/7b/e1/807e64f6a84e568bf9163283e9d49b77b24ff24bd8eed751d9fd94ea404a +0 -2
- package/dist/templates/demo-store/.cache/index-v5/85/07/e0c4be5b8442583f11be2d0b6f09171d22721437456b745eb2c977294995 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/87/4d/89bc172664efe0dc7f86d8e67559073b2900ae079bd42ae9e3c015d38ab0 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/8c/0d/a633a8771437b330d83eef0fdd99a81c41356b2bdc81f80ec9277f92b060 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a3/fc/e2e503290d165b9b0e20c6880bc23ff8ec39a440482418b5103c36be66b9 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a5/bc/d87ab9468457cb872d6c360f8acecd05e0f88b7239b50754f120706fabd4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a5/c0/8e6e4f498a17b6198e54f204247ba544e6404b282d4ce3065d85fa69a8a4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/af/65/89b0c9eb41779c1658ace443604fea125c524bc95cfc71c9b6300da2dc81 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/b2/75/51549baf010c977c70017db497fd9bd20e1efa9b658a6d52761c559f9c0b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/b3/75/d3e7a4a5df68530007409daf1d2e66ab789c8b658d1819d7e5fd183f5f57 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/bb/db/9dc2cbdcdc6ff352f9a34463a02e198aa2123a4c2e4ef37fea8b8ccae413 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d0/c4/d960260ece228d28f70e317741b3f3f3df05c53956d870235837ae2b73b4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d3/ca/ff5860148f0bedafb91dab72b54462de81a32a21210324c45a051b197b48 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d4/55/296e80e87e2652f4cf1aebd5419fe73ef16c94ab20cd0400166d44ea1746 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/da/7a/4b6977be684885e550a0d8fd21c955d0195371ffc3a9535a5a7b950a5ac9 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/dd/aa/599a1cd855476ba058c63ae75a9c006ca11f7fbc2efc00b361d7f1b95cb4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/df/d2/bcfa3853e61309abab85dbd561dbc632ad0ea79b24f1b77c95f861eead5f +0 -2
- package/dist/templates/demo-store/.cache/index-v5/df/f5/cc3a1197c607eac768ab1b1cdb7b53a7f87b67c23c92da957d45a5bd0bda +0 -2
- package/dist/templates/demo-store/.cache/index-v5/e4/bd/743967c269ef70a14ba6b5dd223d26759eae9295d79f165c66f514b7d8d3 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/e5/d3/0de6bfbb93ef9271b53f0ded9696291312b19ff087c2826d679ee2c74c01 +0 -2
- package/dist/templates/demo-store/.editorconfig +0 -8
- package/dist/templates/demo-store/.eslintignore +0 -4
- package/dist/templates/demo-store/.eslintrc.js +0 -16
- package/dist/templates/demo-store/.graphqlrc.yml +0 -1
- package/dist/templates/demo-store/.prettierignore +0 -2
- package/dist/templates/demo-store/_env +0 -6
- package/dist/templates/demo-store/_gitignore +0 -13
- package/dist/templates/demo-store/app/components/AccountAddressBook.tsx +0 -97
- package/dist/templates/demo-store/app/components/AccountDetails.tsx +0 -41
- package/dist/templates/demo-store/app/components/AddToCartButton.tsx +0 -42
- package/dist/templates/demo-store/app/components/Breadcrumbs.tsx +0 -36
- package/dist/templates/demo-store/app/components/Button.tsx +0 -56
- package/dist/templates/demo-store/app/components/Cart.tsx +0 -431
- package/dist/templates/demo-store/app/components/CartLoading.tsx +0 -50
- package/dist/templates/demo-store/app/components/CountrySelector.tsx +0 -180
- package/dist/templates/demo-store/app/components/Drawer.tsx +0 -115
- package/dist/templates/demo-store/app/components/FeaturedCollections.tsx +0 -54
- package/dist/templates/demo-store/app/components/FeaturedProducts.tsx +0 -116
- package/dist/templates/demo-store/app/components/FeaturedSection.tsx +0 -39
- package/dist/templates/demo-store/app/components/GenericError.tsx +0 -58
- package/dist/templates/demo-store/app/components/Grid.tsx +0 -44
- package/dist/templates/demo-store/app/components/Hero.tsx +0 -129
- package/dist/templates/demo-store/app/components/Icon.tsx +0 -253
- package/dist/templates/demo-store/app/components/Input.tsx +0 -24
- package/dist/templates/demo-store/app/components/Layout.tsx +0 -492
- package/dist/templates/demo-store/app/components/Link.tsx +0 -46
- package/dist/templates/demo-store/app/components/Modal.tsx +0 -46
- package/dist/templates/demo-store/app/components/NotFound.tsx +0 -22
- package/dist/templates/demo-store/app/components/OrderCard.tsx +0 -82
- package/dist/templates/demo-store/app/components/Pagination.tsx +0 -277
- package/dist/templates/demo-store/app/components/ProductCard.tsx +0 -140
- package/dist/templates/demo-store/app/components/ProductGallery.tsx +0 -114
- package/dist/templates/demo-store/app/components/ProductGrid.tsx +0 -93
- package/dist/templates/demo-store/app/components/ProductSwimlane.tsx +0 -30
- package/dist/templates/demo-store/app/components/Skeleton.tsx +0 -24
- package/dist/templates/demo-store/app/components/SortFilter.tsx +0 -414
- package/dist/templates/demo-store/app/components/Text.tsx +0 -192
- package/dist/templates/demo-store/app/components/index.ts +0 -28
- package/dist/templates/demo-store/app/data/countries.ts +0 -194
- package/dist/templates/demo-store/app/data/index.ts +0 -1027
- package/dist/templates/demo-store/app/entry.client.tsx +0 -4
- package/dist/templates/demo-store/app/entry.server.tsx +0 -26
- package/dist/templates/demo-store/app/hooks/useCartFetchers.tsx +0 -14
- package/dist/templates/demo-store/app/hooks/useIsHydrated.tsx +0 -12
- package/dist/templates/demo-store/app/lib/const.ts +0 -10
- package/dist/templates/demo-store/app/lib/placeholders.ts +0 -244
- package/dist/templates/demo-store/app/lib/seo/common.tsx +0 -367
- package/dist/templates/demo-store/app/lib/seo/debugger.tsx +0 -175
- package/dist/templates/demo-store/app/lib/seo/image.tsx +0 -32
- package/dist/templates/demo-store/app/lib/seo/index.ts +0 -4
- package/dist/templates/demo-store/app/lib/seo/seo.tsx +0 -24
- package/dist/templates/demo-store/app/lib/seo/types.ts +0 -84
- package/dist/templates/demo-store/app/lib/session.server.ts +0 -57
- package/dist/templates/demo-store/app/lib/type.ts +0 -21
- package/dist/templates/demo-store/app/lib/utils.ts +0 -310
- package/dist/templates/demo-store/app/root.tsx +0 -279
- package/dist/templates/demo-store/app/routes/($lang)/$.tsx +0 -7
- package/dist/templates/demo-store/app/routes/($lang)/account/__private/address/$id.tsx +0 -320
- package/dist/templates/demo-store/app/routes/($lang)/account/__private/edit.tsx +0 -273
- package/dist/templates/demo-store/app/routes/($lang)/account/__private/logout.ts +0 -25
- package/dist/templates/demo-store/app/routes/($lang)/account/__private/orders.$id.tsx +0 -322
- package/dist/templates/demo-store/app/routes/($lang)/account/__public/activate.$id.$activationToken.tsx +0 -218
- package/dist/templates/demo-store/app/routes/($lang)/account/__public/login.tsx +0 -197
- package/dist/templates/demo-store/app/routes/($lang)/account/__public/recover.tsx +0 -144
- package/dist/templates/demo-store/app/routes/($lang)/account/__public/register.tsx +0 -184
- package/dist/templates/demo-store/app/routes/($lang)/account/__public/reset.$id.$resetToken.tsx +0 -214
- package/dist/templates/demo-store/app/routes/($lang)/account.tsx +0 -188
- package/dist/templates/demo-store/app/routes/($lang)/api/countries.tsx +0 -22
- package/dist/templates/demo-store/app/routes/($lang)/api/products.tsx +0 -116
- package/dist/templates/demo-store/app/routes/($lang)/cart.tsx +0 -510
- package/dist/templates/demo-store/app/routes/($lang)/collections/$collectionHandle.tsx +0 -300
- package/dist/templates/demo-store/app/routes/($lang)/collections/all.tsx +0 -5
- package/dist/templates/demo-store/app/routes/($lang)/collections/index.tsx +0 -188
- package/dist/templates/demo-store/app/routes/($lang)/discounts.$code.tsx +0 -60
- package/dist/templates/demo-store/app/routes/($lang)/featured-products.tsx +0 -58
- package/dist/templates/demo-store/app/routes/($lang)/index.tsx +0 -241
- package/dist/templates/demo-store/app/routes/($lang)/journal/$journalHandle.tsx +0 -141
- package/dist/templates/demo-store/app/routes/($lang)/journal/index.tsx +0 -152
- package/dist/templates/demo-store/app/routes/($lang)/og-image.tsx +0 -19
- package/dist/templates/demo-store/app/routes/($lang)/pages/$pageHandle.tsx +0 -75
- package/dist/templates/demo-store/app/routes/($lang)/policies/index.tsx +0 -97
- package/dist/templates/demo-store/app/routes/($lang)/products/$productHandle.tsx +0 -551
- package/dist/templates/demo-store/app/routes/($lang)/products/index.tsx +0 -148
- package/dist/templates/demo-store/app/routes/($lang)/search.tsx +0 -198
- package/dist/templates/demo-store/app/styles/app.css +0 -4203
- package/dist/templates/demo-store/app/styles/custom-font.css +0 -13
- package/dist/templates/demo-store/app/styles/fonts/IBMPlexSerif-Text.woff2 +0 -0
- package/dist/templates/demo-store/app/styles/fonts/IBMPlexSerif-TextItalic.woff2 +0 -0
- package/dist/templates/demo-store/dist/client/build/_assets/IBMPlexSerif-Text-YFMZNZW6.woff2 +0 -0
- package/dist/templates/demo-store/dist/client/build/_assets/IBMPlexSerif-TextItalic-CS6L5H7S.woff2 +0 -0
- package/dist/templates/demo-store/dist/client/build/_assets/app-PPSD2NK6.css +0 -1
- package/dist/templates/demo-store/dist/client/build/_assets/custom-font-WVPOFKHF.css +0 -1
- package/dist/templates/demo-store/dist/client/build/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-7CASD2US.js +0 -9
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-7CASD2US.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-7CKXJRLM.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-7CKXJRLM.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYHDHSL7.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYHDHSL7.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-EW52HEI6.js +0 -133
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-EW52HEI6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MEPKJ2VW.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MEPKJ2VW.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-NIVT6A2W.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-NIVT6A2W.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-SYP5DAMV.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-SYP5DAMV.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-SZCP6RSO.js +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-SZCP6RSO.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YCAWB56Y.js +0 -31
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YCAWB56Y.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/entry.client-3PUQSZFF.js +0 -2
- package/dist/templates/demo-store/dist/client/build/entry.client-3PUQSZFF.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/manifest-E4E22121.js +0 -1
- package/dist/templates/demo-store/dist/client/build/root-6BHVTOEY.js +0 -14
- package/dist/templates/demo-store/dist/client/build/root-6BHVTOEY.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/$-HDBACFGJ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/$-HDBACFGJ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/[robots.txt]-KDA3EX2G.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/[robots.txt]-KDA3EX2G.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/[sitemap.xml]-AAQRJL2R.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/[sitemap.xml]-AAQRJL2R.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/address/$id-3WQU2LQT.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/address/$id-3WQU2LQT.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/edit-3XQ4BLHS.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/edit-3XQ4BLHS.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/logout-7KXWFBCX.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/logout-7KXWFBCX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/orders.$id-7VQDCWO5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__private/orders.$id-7VQDCWO5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/activate.$id.$activationToken-Z5BQE6J5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/activate.$id.$activationToken-Z5BQE6J5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/login-K6QUN2VF.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/login-K6QUN2VF.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/recover-UV5PLPS5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/recover-UV5PLPS5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/register-SZW3ORRR.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/register-SZW3ORRR.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/reset.$id.$resetToken-WOUXQWZU.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account/__public/reset.$id.$resetToken-WOUXQWZU.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account-PRE5HSJE.js +0 -25
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/account-PRE5HSJE.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/api/countries-UD6BGYL2.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/api/countries-UD6BGYL2.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/api/products-KIFIWUFE.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/api/products-KIFIWUFE.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/cart-3AJ7UOZX.js +0 -55
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/cart-3AJ7UOZX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/$collectionHandle-ORDYEBM3.js +0 -83
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/$collectionHandle-ORDYEBM3.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/all-IXDFOKCK.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/all-IXDFOKCK.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/index-3AJFWRDR.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/collections/index-3AJFWRDR.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/discounts.$code-GYKQBNLQ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/discounts.$code-GYKQBNLQ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/featured-products-KNUST6DD.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/featured-products-KNUST6DD.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/index-4US2D5XK.js +0 -32
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/index-4US2D5XK.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/journal/$journalHandle-BCHHYOJX.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/journal/$journalHandle-BCHHYOJX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/journal/index-LZR4YNUM.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/journal/index-LZR4YNUM.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/og-image-KUOACO4J.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/og-image-KUOACO4J.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/pages/$pageHandle-5WR6PFRU.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/pages/$pageHandle-5WR6PFRU.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/policies/$policyHandle-C5ATUMN6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/policies/$policyHandle-C5ATUMN6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/policies/index-MJDYZG5P.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/policies/index-MJDYZG5P.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/products/$productHandle-IB2WTXB6.js +0 -68
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/products/$productHandle-IB2WTXB6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/products/index-266HKDAN.js +0 -24
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/products/index-266HKDAN.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/search-CH57YG7S.js +0 -54
- package/dist/templates/demo-store/dist/client/build/routes/($lang)/search-CH57YG7S.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/graphiql-ZHVT5SA7.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/graphiql-ZHVT5SA7.js.map +0 -7
- package/dist/templates/demo-store/dist/worker/_assets/IBMPlexSerif-Text-YFMZNZW6.woff2 +0 -0
- package/dist/templates/demo-store/dist/worker/_assets/IBMPlexSerif-TextItalic-CS6L5H7S.woff2 +0 -0
- package/dist/templates/demo-store/dist/worker/index.js +0 -1385
- package/dist/templates/demo-store/dist/worker/index.js.map +0 -7
- package/dist/templates/demo-store/package.json +0 -67
- package/dist/templates/demo-store/playwright.config.ts +0 -109
- package/dist/templates/demo-store/postcss.config.js +0 -10
- package/dist/templates/demo-store/public/favicon.svg +0 -28
- package/dist/templates/demo-store/remix.env.d.ts +0 -40
- package/dist/templates/demo-store/remix.init/index.js +0 -25
- package/dist/templates/demo-store/remix.init/package.json +0 -7
- package/dist/templates/demo-store/server.ts +0 -73
- package/dist/templates/demo-store/styles/app.css +0 -182
- package/dist/templates/demo-store/tailwind.config.js +0 -70
- package/dist/templates/demo-store/tests/cart.test.ts +0 -70
- package/dist/templates/demo-store/tests/seo.test.ts +0 -36
- package/dist/templates/demo-store/tests/utils.ts +0 -100
- package/dist/templates/demo-store/tsconfig.json +0 -25
- package/dist/templates/hello-world/.cache/content-v2/sha512/13/f6/b7f804d45a961ca1e392429e75ad80f23ba46cbba0e960c6a70f8de81f3f3763af59651474176798d1a1a4bd2a5109b1d441f6d1c8ba070b678b38378adf +0 -1
- package/dist/templates/hello-world/.cache/content-v2/sha512/4b/d3/aedf0c5a14c0f852936adb81a3bbd15ad1d5d9964ffe11a40d56bbdb2f2a4c7588ffa1d1ee657a3c3be4f6e6194465365f5d4213ef3b4e5086aa4bf0a5a4 +0 -1
- package/dist/templates/hello-world/.cache/content-v2/sha512/fa/dd/9bc10a1cb1f145eabd96bdba509178e20484197fefd8469ace9f53bf277e875751db3c4dddf229807c48cbe8db19494fe2a5aab7d2a4b7ae8bebbd67509c +0 -1
- package/dist/templates/hello-world/.cache/index-v5/09/f6/fe4b05c4157320b8b59b3f84116195be0437d87357d743d21acd638a4606 +0 -2
- package/dist/templates/hello-world/.cache/index-v5/b3/75/d3e7a4a5df68530007409daf1d2e66ab789c8b658d1819d7e5fd183f5f57 +0 -2
- package/dist/templates/hello-world/.cache/index-v5/d0/c4/d960260ece228d28f70e317741b3f3f3df05c53956d870235837ae2b73b4 +0 -2
- package/dist/templates/hello-world/.eslintignore +0 -4
- package/dist/templates/hello-world/.eslintrc.js +0 -6
- package/dist/templates/hello-world/.graphqlrc.yml +0 -1
- package/dist/templates/hello-world/README.md +0 -20
- package/dist/templates/hello-world/_env +0 -6
- package/dist/templates/hello-world/_gitignore +0 -8
- package/dist/templates/hello-world/app/components/Layout.tsx +0 -15
- package/dist/templates/hello-world/app/components/index.ts +0 -1
- package/dist/templates/hello-world/app/entry.client.tsx +0 -4
- package/dist/templates/hello-world/app/entry.server.tsx +0 -21
- package/dist/templates/hello-world/app/root.tsx +0 -212
- package/dist/templates/hello-world/app/routes/graphiql.tsx +0 -10
- package/dist/templates/hello-world/app/styles/app.css +0 -38
- package/dist/templates/hello-world/dist/client/build/_assets/app-NBPUE4H5.css +0 -1
- package/dist/templates/hello-world/dist/client/build/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-MEPKJ2VW.js +0 -2
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-MEPKJ2VW.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-SYP5DAMV.js +0 -2
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-SYP5DAMV.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-UWGFS4PS.js +0 -31
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-UWGFS4PS.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/entry.client-YKLPLTIJ.js +0 -9
- package/dist/templates/hello-world/dist/client/build/entry.client-YKLPLTIJ.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/manifest-5BEA23FF.js +0 -1
- package/dist/templates/hello-world/dist/client/build/root-YMCCM3GG.js +0 -2
- package/dist/templates/hello-world/dist/client/build/root-YMCCM3GG.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/routes/graphiql-ZHVT5SA7.js +0 -2
- package/dist/templates/hello-world/dist/client/build/routes/graphiql-ZHVT5SA7.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/routes/index-TH4MKESG.js +0 -2
- package/dist/templates/hello-world/dist/client/build/routes/index-TH4MKESG.js.map +0 -7
- package/dist/templates/hello-world/dist/client/favicon.svg +0 -28
- package/dist/templates/hello-world/dist/worker/index.js +0 -172
- package/dist/templates/hello-world/dist/worker/index.js.map +0 -7
- package/dist/templates/hello-world/package.json +0 -41
- package/dist/templates/hello-world/public/favicon.svg +0 -28
- package/dist/templates/hello-world/remix.env.d.ts +0 -35
- package/dist/templates/hello-world/remix.init/index.js +0 -25
- package/dist/templates/hello-world/remix.init/package.json +0 -7
- package/dist/templates/hello-world/server.ts +0 -129
- package/dist/templates/hello-world/tsconfig.json +0 -25
- package/dist/tmp-create-app.js +0 -33
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "demo-store",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "npm run build:css && shopify hydrogen build --entry ./server",
|
|
7
|
-
"build:css": "postcss styles --base styles --dir app/styles --env production",
|
|
8
|
-
"dev": "npm run build:css && concurrently -g -r npm:dev:css \"shopify hydrogen dev --entry ./server\"",
|
|
9
|
-
"dev:css": "postcss styles --base styles --dir app/styles -w",
|
|
10
|
-
"format": "prettier --write --ignore-unknown .",
|
|
11
|
-
"lint": "eslint --no-error-on-unmatched-pattern --ext .js,.ts,.jsx,.tsx .",
|
|
12
|
-
"preview": "npm run build && shopify hydrogen preview",
|
|
13
|
-
"typecheck": "tsc --noEmit"
|
|
14
|
-
},
|
|
15
|
-
"prettier": "@shopify/prettier-config",
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@headlessui/react": "^1.7.2",
|
|
18
|
-
"@remix-run/react": "1.11.0",
|
|
19
|
-
"@shopify/cli": "^3.23.0",
|
|
20
|
-
"@shopify/cli-hydrogen": "^4.0.0-alpha.9",
|
|
21
|
-
"@shopify/hydrogen": "^2.0.0-alpha.3",
|
|
22
|
-
"@shopify/remix-oxygen": "^1.0.0-alpha.3",
|
|
23
|
-
"@shopify/storefront-kit-react": "^2023.1.3",
|
|
24
|
-
"clsx": "^1.2.1",
|
|
25
|
-
"concurrently": "^7.5.0",
|
|
26
|
-
"cross-env": "^7.0.3",
|
|
27
|
-
"graphql": "^16.6.0",
|
|
28
|
-
"graphql-tag": "^2.12.6",
|
|
29
|
-
"isbot": "^3.6.5",
|
|
30
|
-
"react": "^18.2.0",
|
|
31
|
-
"react-dom": "^18.2.0",
|
|
32
|
-
"react-intersection-observer": "^9.4.1",
|
|
33
|
-
"react-use": "^17.4.0",
|
|
34
|
-
"schema-dts": "^1.1.0",
|
|
35
|
-
"tiny-invariant": "^1.2.0",
|
|
36
|
-
"typographic-base": "^1.0.4"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@playwright/test": "^1.27.1",
|
|
40
|
-
"@remix-run/dev": "1.11.0",
|
|
41
|
-
"@remix-run/eslint-config": "1.11.0",
|
|
42
|
-
"@shopify/eslint-plugin": "^42.0.1",
|
|
43
|
-
"@shopify/oxygen-workers-types": "^3.17.2",
|
|
44
|
-
"@shopify/prettier-config": "^1.1.2",
|
|
45
|
-
"@tailwindcss/forms": "^0.5.3",
|
|
46
|
-
"@tailwindcss/typography": "^0.5.7",
|
|
47
|
-
"@types/eslint": "^8.4.10",
|
|
48
|
-
"@types/react": "^18.0.20",
|
|
49
|
-
"@types/react-dom": "^18.0.6",
|
|
50
|
-
"concurrently": "^7.4.0",
|
|
51
|
-
"cross-env": "^7.0.3",
|
|
52
|
-
"esbuild": "^0.15.14",
|
|
53
|
-
"eslint": "^8.20.0",
|
|
54
|
-
"eslint-plugin-hydrogen": "0.12.2",
|
|
55
|
-
"postcss": "^8.4.16",
|
|
56
|
-
"postcss-cli": "^10.0.0",
|
|
57
|
-
"postcss-import": "^15.0.0",
|
|
58
|
-
"postcss-preset-env": "^7.8.2",
|
|
59
|
-
"prettier": "^2.7.1",
|
|
60
|
-
"rimraf": "^3.0.2",
|
|
61
|
-
"tailwindcss": "^3.1.8",
|
|
62
|
-
"typescript": "^4.8.3"
|
|
63
|
-
},
|
|
64
|
-
"engines": {
|
|
65
|
-
"node": ">=16.13"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type {PlaywrightTestConfig} from '@playwright/test';
|
|
2
|
-
import {devices} from '@playwright/test';
|
|
3
|
-
|
|
4
|
-
declare const process: {env: {CI: boolean}};
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Read environment variables from file.
|
|
8
|
-
* https://github.com/motdotla/dotenv
|
|
9
|
-
*/
|
|
10
|
-
// require('dotenv').config();
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* See https://playwright.dev/docs/test-configuration.
|
|
14
|
-
*/
|
|
15
|
-
const config: PlaywrightTestConfig = {
|
|
16
|
-
testDir: './tests',
|
|
17
|
-
/* Maximum time one test can run for. */
|
|
18
|
-
timeout: 30 * 1000,
|
|
19
|
-
expect: {
|
|
20
|
-
/**
|
|
21
|
-
* Maximum time expect() should wait for the condition to be met.
|
|
22
|
-
* For example in `await expect(locator).toHaveText();`
|
|
23
|
-
*/
|
|
24
|
-
timeout: 5000,
|
|
25
|
-
},
|
|
26
|
-
/* Run tests in files in parallel */
|
|
27
|
-
fullyParallel: true,
|
|
28
|
-
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
29
|
-
forbidOnly: !!process.env.CI,
|
|
30
|
-
/* Retry on CI only */
|
|
31
|
-
retries: process.env.CI ? 2 : 0,
|
|
32
|
-
/* Opt out of parallel tests on CI. */
|
|
33
|
-
workers: process.env.CI ? 1 : undefined,
|
|
34
|
-
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
35
|
-
reporter: 'html',
|
|
36
|
-
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
37
|
-
use: {
|
|
38
|
-
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
|
39
|
-
actionTimeout: 0,
|
|
40
|
-
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
41
|
-
baseURL: 'http://localhost:3000',
|
|
42
|
-
|
|
43
|
-
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
44
|
-
trace: 'on-first-retry',
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
/* Configure projects for major browsers */
|
|
48
|
-
projects: [
|
|
49
|
-
{
|
|
50
|
-
name: 'chromium',
|
|
51
|
-
use: {
|
|
52
|
-
...devices['Desktop Chrome'],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
// {
|
|
57
|
-
// name: 'firefox',
|
|
58
|
-
// use: {
|
|
59
|
-
// ...devices['Desktop Firefox'],
|
|
60
|
-
// },
|
|
61
|
-
// },
|
|
62
|
-
|
|
63
|
-
// {
|
|
64
|
-
// name: 'webkit',
|
|
65
|
-
// use: {
|
|
66
|
-
// ...devices['Desktop Safari'],
|
|
67
|
-
// },
|
|
68
|
-
// },
|
|
69
|
-
|
|
70
|
-
/* Test against mobile viewports. */
|
|
71
|
-
// {
|
|
72
|
-
// name: 'Mobile Chrome',
|
|
73
|
-
// use: {
|
|
74
|
-
// ...devices['Pixel 5'],
|
|
75
|
-
// },
|
|
76
|
-
// },
|
|
77
|
-
// {
|
|
78
|
-
// name: 'Mobile Safari',
|
|
79
|
-
// use: {
|
|
80
|
-
// ...devices['iPhone 12'],
|
|
81
|
-
// },
|
|
82
|
-
// },
|
|
83
|
-
|
|
84
|
-
/* Test against branded browsers. */
|
|
85
|
-
// {
|
|
86
|
-
// name: 'Microsoft Edge',
|
|
87
|
-
// use: {
|
|
88
|
-
// channel: 'msedge',
|
|
89
|
-
// },
|
|
90
|
-
// },
|
|
91
|
-
// {
|
|
92
|
-
// name: 'Google Chrome',
|
|
93
|
-
// use: {
|
|
94
|
-
// channel: 'chrome',
|
|
95
|
-
// },
|
|
96
|
-
// },
|
|
97
|
-
],
|
|
98
|
-
|
|
99
|
-
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
|
|
100
|
-
// outputDir: 'test-results/',
|
|
101
|
-
|
|
102
|
-
/* Run your local dev server before starting the tests */
|
|
103
|
-
webServer: {
|
|
104
|
-
command: 'npm run preview',
|
|
105
|
-
port: 3000,
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export default config;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none">
|
|
2
|
-
<style>
|
|
3
|
-
.stroke {
|
|
4
|
-
stroke: #000;
|
|
5
|
-
}
|
|
6
|
-
.fill {
|
|
7
|
-
fill: #000;
|
|
8
|
-
}
|
|
9
|
-
@media (prefers-color-scheme: dark) {
|
|
10
|
-
.stroke {
|
|
11
|
-
stroke: #fff;
|
|
12
|
-
}
|
|
13
|
-
.fill {
|
|
14
|
-
fill: #fff;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
<path
|
|
19
|
-
class="stroke"
|
|
20
|
-
fill-rule="evenodd"
|
|
21
|
-
d="M16.1 16.04 1 8.02 6.16 5.3l5.82 3.09 4.88-2.57-5.82-3.1L16.21 0l15.1 8.02-5.17 2.72-5.5-2.91-4.88 2.57 5.5 2.92-5.16 2.72Z"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
class="fill"
|
|
25
|
-
fill-rule="evenodd"
|
|
26
|
-
d="M16.1 32 1 23.98l5.16-2.72 5.82 3.08 4.88-2.57-5.82-3.08 5.17-2.73 15.1 8.02-5.17 2.72-5.5-2.92-4.88 2.58 5.5 2.92L16.1 32Z"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="@remix-run/dev" />
|
|
2
|
-
/// <reference types="@shopify/remix-oxygen" />
|
|
3
|
-
/// <reference types="@shopify/oxygen-workers-types" />
|
|
4
|
-
|
|
5
|
-
import type {StorefrontClient} from '@shopify/hydrogen';
|
|
6
|
-
import type {HydrogenSession} from '~/lib/session.server';
|
|
7
|
-
|
|
8
|
-
declare global {
|
|
9
|
-
/**
|
|
10
|
-
* A global `process` object is only available during build to access NODE_ENV.
|
|
11
|
-
*/
|
|
12
|
-
const process: {env: {NODE_ENV: 'production' | 'development'}};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Declare expected Env parameter in fetch handler.
|
|
16
|
-
*/
|
|
17
|
-
interface Env {
|
|
18
|
-
SESSION_SECRET: string;
|
|
19
|
-
PUBLIC_STOREFRONT_API_TOKEN: string;
|
|
20
|
-
PRIVATE_STOREFRONT_API_TOKEN: string;
|
|
21
|
-
PUBLIC_STOREFRONT_API_VERSION: string;
|
|
22
|
-
PUBLIC_STORE_DOMAIN: string;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Declare local additions to `AppLoadContext` to include the session utilities we injected in `server.ts`.
|
|
28
|
-
*/
|
|
29
|
-
declare module '@shopify/remix-oxygen' {
|
|
30
|
-
export interface AppLoadContext {
|
|
31
|
-
waitUntil: ExecutionContext['waitUntil'];
|
|
32
|
-
session: HydrogenSession;
|
|
33
|
-
storefront: StorefrontClient['storefront'];
|
|
34
|
-
cache: Cache;
|
|
35
|
-
env: Env;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Needed to make this file a module.
|
|
40
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
|
|
4
|
-
const run = ({rootDirectory}) => {
|
|
5
|
-
// TEMPORARY during dev preview:
|
|
6
|
-
// If _env and _gitignore exist, rename them as .env and .gitignore
|
|
7
|
-
if (fs.existsSync(`${rootDirectory}/_env`)) {
|
|
8
|
-
fs.renameSync(`${rootDirectory}/_env`, `${rootDirectory}/.env`);
|
|
9
|
-
}
|
|
10
|
-
if (fs.existsSync(`${rootDirectory}/_gitignore`)) {
|
|
11
|
-
fs.renameSync(`${rootDirectory}/_gitignore`, `${rootDirectory}/.gitignore`);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
console.log();
|
|
15
|
-
console.log(`Finished creating your Hydrogen storefront in ${rootDirectory}`);
|
|
16
|
-
console.log(`📚 Docs: https://shopify.dev/custom-storefronts/hydrogen`);
|
|
17
|
-
console.log(
|
|
18
|
-
`👋 Note: your project will display inventory from the Hydrogen Demo Store.`,
|
|
19
|
-
);
|
|
20
|
-
console.log();
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
module.exports = run;
|
|
24
|
-
|
|
25
|
-
/* eslint-enable no-console */
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// Virtual entry point for the app
|
|
2
|
-
import * as remixBuild from '@remix-run/dev/server-build';
|
|
3
|
-
import {createRequestHandler, getBuyerIp} from '@shopify/remix-oxygen';
|
|
4
|
-
import {createStorefrontClient, storefrontRedirect} from '@shopify/hydrogen';
|
|
5
|
-
import {HydrogenSession} from '~/lib/session.server';
|
|
6
|
-
import {getLocaleFromRequest} from '~/lib/utils';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Export a fetch handler in module format.
|
|
10
|
-
*/
|
|
11
|
-
export default {
|
|
12
|
-
async fetch(
|
|
13
|
-
request: Request,
|
|
14
|
-
env: Env,
|
|
15
|
-
executionContext: ExecutionContext,
|
|
16
|
-
): Promise<Response> {
|
|
17
|
-
try {
|
|
18
|
-
/**
|
|
19
|
-
* Open a cache instance in the worker and a custom session instance.
|
|
20
|
-
*/
|
|
21
|
-
if (!env?.SESSION_SECRET) {
|
|
22
|
-
throw new Error('SESSION_SECRET environment variable is not set');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const waitUntil = (p: Promise<any>) => executionContext.waitUntil(p);
|
|
26
|
-
const [cache, session] = await Promise.all([
|
|
27
|
-
caches.open('hydrogen'),
|
|
28
|
-
HydrogenSession.init(request, [env.SESSION_SECRET]),
|
|
29
|
-
]);
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Create Hydrogen's Storefront client.
|
|
33
|
-
*/
|
|
34
|
-
const {storefront} = createStorefrontClient({
|
|
35
|
-
cache,
|
|
36
|
-
waitUntil,
|
|
37
|
-
buyerIp: getBuyerIp(request),
|
|
38
|
-
i18n: getLocaleFromRequest(request),
|
|
39
|
-
publicStorefrontToken: env.PUBLIC_STOREFRONT_API_TOKEN,
|
|
40
|
-
privateStorefrontToken: env.PRIVATE_STOREFRONT_API_TOKEN,
|
|
41
|
-
storeDomain: `https://${env.PUBLIC_STORE_DOMAIN}`,
|
|
42
|
-
storefrontApiVersion: env.PUBLIC_STOREFRONT_API_VERSION || '2023-01',
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Create a Remix request handler and pass
|
|
47
|
-
* Hydrogen's Storefront client to the loader context.
|
|
48
|
-
*/
|
|
49
|
-
const handleRequest = createRequestHandler({
|
|
50
|
-
build: remixBuild,
|
|
51
|
-
mode: process.env.NODE_ENV,
|
|
52
|
-
getLoadContext: () => ({cache, session, waitUntil, storefront, env}),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const response = await handleRequest(request);
|
|
56
|
-
|
|
57
|
-
if (response.status === 404) {
|
|
58
|
-
/**
|
|
59
|
-
* Check for redirects only when there's a 404 from the app.
|
|
60
|
-
* If the redirect doesn't exist, then `storefrontRedirect`
|
|
61
|
-
* will pass through the 404 response.
|
|
62
|
-
*/
|
|
63
|
-
return storefrontRedirect({request, response, storefront});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return response;
|
|
67
|
-
} catch (error) {
|
|
68
|
-
// eslint-disable-next-line no-console
|
|
69
|
-
console.error(error);
|
|
70
|
-
return new Response('An unexpected error occurred', {status: 500});
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
/* Tokens */
|
|
6
|
-
:root {
|
|
7
|
-
--color-primary: 20 20 20; /* Text, buttons, etc. */
|
|
8
|
-
--color-contrast: 250 250 249; /* Backgrounds, borders, etc. */
|
|
9
|
-
--color-accent: 191 72 0; /* Labels like "On sale" */
|
|
10
|
-
--font-size-fine: 0.75rem; /* text-xs */
|
|
11
|
-
--font-size-copy: 1rem; /* text-base */
|
|
12
|
-
--font-size-lead: 1.125rem; /* text-lg */
|
|
13
|
-
--font-size-heading: 2rem; /* text-2xl */
|
|
14
|
-
--font-size-display: 3rem; /* text-4xl */
|
|
15
|
-
--color-shop-pay: #5a31f4;
|
|
16
|
-
--shop-pay-button--width: 100%; /* Sets the width for the shop-pay-button web component */
|
|
17
|
-
--height-nav: 3rem;
|
|
18
|
-
--screen-height: 100vh;
|
|
19
|
-
--screen-height-dynamic: 100vh;
|
|
20
|
-
|
|
21
|
-
@media (min-width: 32em) {
|
|
22
|
-
--height-nav: 4rem;
|
|
23
|
-
}
|
|
24
|
-
@media (min-width: 48em) {
|
|
25
|
-
--height-nav: 6rem;
|
|
26
|
-
--font-size-heading: 2.25rem; /* text-4xl */
|
|
27
|
-
--font-size-display: 3.75rem; /* text-6xl */
|
|
28
|
-
}
|
|
29
|
-
@supports (height: 100svh) {
|
|
30
|
-
--screen-height: 100svh;
|
|
31
|
-
}
|
|
32
|
-
@supports (height: 100dvh) {
|
|
33
|
-
--screen-height-dynamic: 100dvh;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (prefers-color-scheme: dark) {
|
|
38
|
-
:root {
|
|
39
|
-
--color-primary: 250 250 250;
|
|
40
|
-
--color-contrast: 32 33 36;
|
|
41
|
-
--color-accent: 235 86 40;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@keyframes fadeInAnimation {
|
|
46
|
-
0% {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
100% {
|
|
50
|
-
opacity: 1;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
shop-pay-button {
|
|
55
|
-
width: 100%;
|
|
56
|
-
height: 3rem;
|
|
57
|
-
display: table;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@layer base {
|
|
61
|
-
* {
|
|
62
|
-
font-variant-ligatures: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
body {
|
|
66
|
-
@apply border-primary/10 bg-contrast text-primary/90 antialiased;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
html {
|
|
70
|
-
scroll-padding-top: 10rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
model-viewer::part(default-progress-mask) {
|
|
74
|
-
display: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
model-viewer::part(default-progress-bar) {
|
|
78
|
-
display: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
input[type='search']::-webkit-search-decoration,
|
|
82
|
-
input[type='search']::-webkit-search-cancel-button,
|
|
83
|
-
input[type='search']::-webkit-search-results-button,
|
|
84
|
-
input[type='search']::-webkit-search-results-decoration {
|
|
85
|
-
-webkit-appearance: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
a.active {
|
|
89
|
-
@apply border-b;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.prose {
|
|
93
|
-
h1,
|
|
94
|
-
h2,
|
|
95
|
-
h3,
|
|
96
|
-
h4,
|
|
97
|
-
h5,
|
|
98
|
-
h6 {
|
|
99
|
-
&:first-child {
|
|
100
|
-
@apply mt-0;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@layer components {
|
|
107
|
-
.article {
|
|
108
|
-
h2,
|
|
109
|
-
h3,
|
|
110
|
-
h4,
|
|
111
|
-
h5,
|
|
112
|
-
h6 {
|
|
113
|
-
@apply font-sans text-primary;
|
|
114
|
-
}
|
|
115
|
-
@apply prose mx-auto mb-12 grid justify-center font-serif text-primary;
|
|
116
|
-
p,
|
|
117
|
-
ul,
|
|
118
|
-
li {
|
|
119
|
-
@apply mb-4 text-lg;
|
|
120
|
-
}
|
|
121
|
-
img {
|
|
122
|
-
@apply md:-mx-8 lg:-mx-16;
|
|
123
|
-
|
|
124
|
-
@media (min-width: 48em) {
|
|
125
|
-
width: calc(100% + 4rem);
|
|
126
|
-
max-width: 100vw;
|
|
127
|
-
}
|
|
128
|
-
@media (min-width: 64em) {
|
|
129
|
-
width: calc(100% + 8rem);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.swimlane {
|
|
135
|
-
@apply grid w-full snap-x snap-mandatory scroll-px-6 grid-flow-col justify-start gap-4 overflow-x-scroll px-6 pb-4;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@layer utilities {
|
|
140
|
-
.fadeIn {
|
|
141
|
-
opacity: 0;
|
|
142
|
-
animation: fadeInAnimation ease 500ms forwards;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.hiddenScroll {
|
|
146
|
-
scrollbar-width: none;
|
|
147
|
-
&::-webkit-scrollbar {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.absolute-center {
|
|
153
|
-
@apply absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.strike {
|
|
157
|
-
position: relative;
|
|
158
|
-
&::before {
|
|
159
|
-
content: '';
|
|
160
|
-
display: block;
|
|
161
|
-
position: absolute;
|
|
162
|
-
width: 108%;
|
|
163
|
-
height: 1.5px;
|
|
164
|
-
left: -4%;
|
|
165
|
-
top: 50%;
|
|
166
|
-
transform: translateY(-50%);
|
|
167
|
-
background: rgb(var(--color-primary));
|
|
168
|
-
box-shadow: 0.5px 0.5px 0px 0.5px rgb(var(--color-contrast));
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.card-image {
|
|
173
|
-
@apply relative flex items-center justify-center overflow-clip rounded;
|
|
174
|
-
&::before {
|
|
175
|
-
content: ' ';
|
|
176
|
-
@apply absolute top-0 left-0 z-10 block h-full w-full rounded shadow-border;
|
|
177
|
-
}
|
|
178
|
-
img {
|
|
179
|
-
@apply aspect-[inherit] w-full object-cover;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
function withOpacityValue(variable) {
|
|
3
|
-
return ({opacityValue}) => {
|
|
4
|
-
if (opacityValue === undefined) {
|
|
5
|
-
return `rgb(var(${variable}))`;
|
|
6
|
-
}
|
|
7
|
-
return `rgb(var(${variable}) / ${opacityValue})`;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
module.exports = {
|
|
12
|
-
content: ['./app/**/*.{js,ts,jsx,tsx}'],
|
|
13
|
-
theme: {
|
|
14
|
-
extend: {
|
|
15
|
-
colors: {
|
|
16
|
-
primary: withOpacityValue('--color-primary'),
|
|
17
|
-
contrast: withOpacityValue('--color-contrast'),
|
|
18
|
-
notice: withOpacityValue('--color-accent'),
|
|
19
|
-
shopPay: 'var(--color-shop-pay)',
|
|
20
|
-
},
|
|
21
|
-
screens: {
|
|
22
|
-
sm: '32em',
|
|
23
|
-
md: '48em',
|
|
24
|
-
lg: '64em',
|
|
25
|
-
xl: '80em',
|
|
26
|
-
'2xl': '96em',
|
|
27
|
-
'sm-max': {max: '48em'},
|
|
28
|
-
'sm-only': {min: '32em', max: '48em'},
|
|
29
|
-
'md-only': {min: '48em', max: '64em'},
|
|
30
|
-
'lg-only': {min: '64em', max: '80em'},
|
|
31
|
-
'xl-only': {min: '80em', max: '96em'},
|
|
32
|
-
'2xl-only': {min: '96em'},
|
|
33
|
-
},
|
|
34
|
-
spacing: {
|
|
35
|
-
nav: 'var(--height-nav)',
|
|
36
|
-
screen: 'var(--screen-height, 100vh)',
|
|
37
|
-
},
|
|
38
|
-
height: {
|
|
39
|
-
screen: 'var(--screen-height, 100vh)',
|
|
40
|
-
'screen-no-nav':
|
|
41
|
-
'calc(var(--screen-height, 100vh) - var(--height-nav))',
|
|
42
|
-
'screen-dynamic': 'var(--screen-height-dynamic, 100vh)',
|
|
43
|
-
},
|
|
44
|
-
width: {
|
|
45
|
-
mobileGallery: 'calc(100vw - 3rem)',
|
|
46
|
-
},
|
|
47
|
-
fontFamily: {
|
|
48
|
-
sans: ['Helvetica Neue', 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
|
49
|
-
serif: ['"IBMPlexSerif"', 'Palatino', 'ui-serif'],
|
|
50
|
-
},
|
|
51
|
-
fontSize: {
|
|
52
|
-
display: ['var(--font-size-display)', '1.1'],
|
|
53
|
-
heading: ['var(--font-size-heading)', '1.25'],
|
|
54
|
-
lead: ['var(--font-size-lead)', '1.333'],
|
|
55
|
-
copy: ['var(--font-size-copy)', '1.5'],
|
|
56
|
-
fine: ['var(--font-size-fine)', '1.333'],
|
|
57
|
-
},
|
|
58
|
-
maxWidth: {
|
|
59
|
-
'prose-narrow': '45ch',
|
|
60
|
-
'prose-wide': '80ch',
|
|
61
|
-
},
|
|
62
|
-
boxShadow: {
|
|
63
|
-
border: 'inset 0px 0px 0px 1px rgb(var(--color-primary) / 0.08)',
|
|
64
|
-
darkHeader: 'inset 0px -1px 0px 0px rgba(21, 21, 21, 0.4)',
|
|
65
|
-
lightHeader: 'inset 0px -1px 0px 0px rgba(21, 21, 21, 0.05)',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
|
|
70
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {test, expect} from '@playwright/test';
|
|
2
|
-
import {waitForLoaders} from './utils';
|
|
3
|
-
|
|
4
|
-
test.describe('Cart', () => {
|
|
5
|
-
test('From home to checkout flow', async ({page}) => {
|
|
6
|
-
// Home => Collections => First collection => First product
|
|
7
|
-
await page.goto(`/`);
|
|
8
|
-
await page.locator(`header nav a:text-is("Collections")`).click();
|
|
9
|
-
await page.locator(`[data-test=collection-grid] a >> nth=0`).click();
|
|
10
|
-
await page.locator(`[data-test=product-grid] a >> nth=0`).click();
|
|
11
|
-
await page.locator(`[data-test=add-to-cart]`).click();
|
|
12
|
-
|
|
13
|
-
await waitForLoaders(page, () =>
|
|
14
|
-
page.locator(`button :text-is("+")`).click({clickCount: 1, delay: 600}),
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
await expect(
|
|
18
|
-
page.locator('[data-test=item-quantity]'),
|
|
19
|
-
'should increase quantity',
|
|
20
|
-
).toContainText('2');
|
|
21
|
-
|
|
22
|
-
// Close cart drawer => Products => First product
|
|
23
|
-
await page.locator('[data-test=close-cart]').click();
|
|
24
|
-
await page.locator(`header nav a:text-is("Products")`).click();
|
|
25
|
-
await page.locator(`[data-test=product-grid] a >> nth=0`).click();
|
|
26
|
-
|
|
27
|
-
await waitForLoaders(page, () =>
|
|
28
|
-
page.locator(`[data-test=add-to-cart]`).click(),
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const quantities = await page
|
|
32
|
-
.locator('[data-test=item-quantity]')
|
|
33
|
-
.allTextContents();
|
|
34
|
-
|
|
35
|
-
await expect(
|
|
36
|
-
quantities.reduce((a, b) => a + Number(b), 0),
|
|
37
|
-
'should have the correct item quantities',
|
|
38
|
-
).toEqual(3);
|
|
39
|
-
|
|
40
|
-
const priceInStore = await page
|
|
41
|
-
.locator('[data-test=subtotal]')
|
|
42
|
-
.textContent();
|
|
43
|
-
|
|
44
|
-
await page.locator('a :text("Checkout")').click();
|
|
45
|
-
|
|
46
|
-
await expect(page.url(), 'should navigate to checkout').toMatch(
|
|
47
|
-
/[\w\d-]+\.myshopify\.com\/\d+\/checkouts\/[\d\w]+/,
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
const priceInCheckout = await page
|
|
51
|
-
.locator('[data-checkout-subtotal-price-target]')
|
|
52
|
-
.textContent();
|
|
53
|
-
|
|
54
|
-
await expect(
|
|
55
|
-
normalizePrice(priceInCheckout),
|
|
56
|
-
'should show the same price in checkout',
|
|
57
|
-
).toEqual(normalizePrice(priceInStore));
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
function normalizePrice(price: string | null) {
|
|
62
|
-
if (!price) throw new Error('Price was not found');
|
|
63
|
-
|
|
64
|
-
return price
|
|
65
|
-
.replace('$', '')
|
|
66
|
-
.trim()
|
|
67
|
-
.replace(/[.,](\d\d)$/, '-$1')
|
|
68
|
-
.replace(/[.,]/g, '')
|
|
69
|
-
.replace('-', '.');
|
|
70
|
-
}
|