mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 14:42:31 +00:00
* commercejs: Initial commit with basic product list * ui: Handle no variants on product * commercejs: Support individual product pages * commercejs: Use separate sdkFetch function * commercejs: Show option hex colors based on option name * commercejs: Support product search and filter * commercejs: Enable carts feature * commercejs: Remove unused API endpoints * commercejs: Fix adding variants to cart * commercejs: Fix types for update cart hook * commercejs: Update README * commercejs: Add sorting to product search * commercejs: Add generic types to cart actions * commercejs: Better cart normalization * commercejs: Provide typing for sdkFetch function * commercejs: Refactor product search logic * commercejs: Update commercejs types package and export types from local directory * commercejs: Remove unused checkout hooks * commercejs: Enhance fetcher to allow custom API routes * commercejs: Fix product types * commercejs: Add checkout functionality * commercejs: Add commercejs to README list of providers * commercejs: Add login/logout auth hooks * commercejs: Adds comment to sdkFetch function * commercejs: Bring back empty useSignup hook to fix build * commercejs: Refactor useCheckout hook logic * commercejs: Add errors to fetcher function if using invalid resource/method * commercejs: Remove use of hex colors for color variants * ui: Fix undefined error when no variants * commercejs: Handle add to cart when no variants * commercejs: Enable customer auth feature * commercejs: Rename public key env variable as commercejs * commercejs: Remove duplicate customer fields * commercejs: Use variants API to generate product variants * commercejs: Fetch all products using sort order * commercejs: Fix use of normalizeProduct function * commercejs: Disable customer auth * commercejs: Show selected variant details in cart view * commercejs: Update to latest commercejs types * commercejs: Fix login email * commercejs: Remove unnecessary ts-ignore * api: Allow parameter to be passed to login API * api: Allow login handler to accept GET requests * commercejs: Add login API for login callback email link * commercejs: Remove unused argument to API * commercejs: Add hook to fetch logged in customer * commercejs: Rename token to match SDK name * commercejs: Enable logout * commercejs: Fix VERCEL_URL env variable * commercejs: Fix using vercel deployment url * commercejs: Add deployment url env vars to templates * Replace yarn with npm * commercejs: Allow checkout submit even without card/address details * ui: Add loading and cart refresh to checkout * commercejs: Leave link to issue on TODO comment * Update docs/README/env.template for commercejs provider * ui: Prevent toggle loading after component unmount * commercejs: Handle product without images * ui: Explicity set loading to false after checkout * Revert "api: Allow parameter to be passed to login API" This reverts commit c3713ec6e23f1b423a071a31221069995d419486. * commercejs: Handle login using API redirect * commercejs: Adds shipping and billing details to checkout data * commercejs: Fix types for fetcher and submit checkout * commercejs: Update README with demo url * commercejs: Update checkout hooks to use checkout context * commercejs: Update checkout logic to use customer fields * ui: Clear checkout fields context after checkout * commercejs: Remove unused clear checkout function * commercejs: Import constants directly
129 lines
3.4 KiB
JSON
129 lines
3.4 KiB
JSON
{
|
|
"name": "nextjs-commerce",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "NODE_OPTIONS='--inspect' next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"analyze": "BUNDLE_ANALYZE=both next build",
|
|
"lint": "next lint",
|
|
"prettier-fix": "prettier --write .",
|
|
"find:unused": "npx next-unused",
|
|
"generate": "graphql-codegen",
|
|
"generate:shopify": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config --config framework/shopify/codegen.json",
|
|
"generate:vendure": "graphql-codegen --config framework/vendure/codegen.json",
|
|
"generate:definitions": "node framework/bigcommerce/scripts/generate-definitions.js",
|
|
"generate:kibocommerce": "graphql-codegen --config framework/kibocommerce/codegen.json"
|
|
},
|
|
"sideEffects": false,
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=14.x"
|
|
},
|
|
"dependencies": {
|
|
"@chec/commerce.js": "^2.8.0",
|
|
"@react-spring/web": "^9.2.1",
|
|
"@spree/storefront-api-v2-sdk": "^5.0.1",
|
|
"@vercel/fetch": "^6.1.1",
|
|
"autoprefixer": "^10.2.6",
|
|
"body-scroll-lock": "^3.1.5",
|
|
"classnames": "^2.3.1",
|
|
"cookie": "^0.4.1",
|
|
"email-validator": "^2.0.4",
|
|
"immutability-helper": "^3.1.1",
|
|
"js-cookie": "^2.2.1",
|
|
"keen-slider": "^6.3.2",
|
|
"lodash.debounce": "^4.0.8",
|
|
"lodash.random": "^3.2.0",
|
|
"lodash.throttle": "^4.1.1",
|
|
"next": "^12.0.3",
|
|
"next-seo": "^4.26.0",
|
|
"next-themes": "^0.0.14",
|
|
"postcss": "^8.3.5",
|
|
"postcss-nesting": "^8.0.1",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-fast-marquee": "^1.1.4",
|
|
"react-merge-refs": "^1.1.0",
|
|
"react-use-measure": "^2.0.4",
|
|
"stripe": "^8.176.0",
|
|
"swell-js": "^4.0.0-next.0",
|
|
"swr": "^0.5.6",
|
|
"tabbable": "^5.2.0",
|
|
"tailwindcss": "^2.2.2",
|
|
"uuidv4": "^6.2.10"
|
|
},
|
|
"devDependencies": {
|
|
"@graphql-codegen/cli": "^1.21.5",
|
|
"@graphql-codegen/schema-ast": "^1.18.3",
|
|
"@graphql-codegen/typescript": "^1.22.2",
|
|
"@graphql-codegen/typescript-operations": "^1.18.1",
|
|
"@next/bundle-analyzer": "^10.2.3",
|
|
"@types/body-scroll-lock": "^2.6.1",
|
|
"@types/chec__commerce.js": "^2.8.4",
|
|
"@types/cookie": "^0.4.0",
|
|
"@types/js-cookie": "^2.2.6",
|
|
"@types/lodash.debounce": "^4.0.6",
|
|
"@types/lodash.random": "^3.2.6",
|
|
"@types/lodash.throttle": "^4.1.6",
|
|
"@types/node": "^15.12.4",
|
|
"@types/react": "^17.0.8",
|
|
"deepmerge": "^4.2.2",
|
|
"eslint": "^7.31.0",
|
|
"eslint-config-next": "^11.0.1",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"graphql": "^15.5.1",
|
|
"husky": "^6.0.0",
|
|
"lint-staged": "^11.0.0",
|
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
"postcss-preset-env": "^6.7.0",
|
|
"prettier": "^2.3.0",
|
|
"typescript": "4.3.4"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,jsx,ts,tsx}": [
|
|
"eslint",
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"**/*.{md,mdx,json}": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"next-unused": {
|
|
"alias": {
|
|
"@lib/*": [
|
|
"lib/*"
|
|
],
|
|
"@assets/*": [
|
|
"assets/*"
|
|
],
|
|
"@config/*": [
|
|
"config/*"
|
|
],
|
|
"@components/*": [
|
|
"components/*"
|
|
],
|
|
"@utils/*": [
|
|
"utils/*"
|
|
]
|
|
},
|
|
"debug": true,
|
|
"include": [
|
|
"components",
|
|
"lib",
|
|
"pages"
|
|
],
|
|
"exclude": [],
|
|
"entrypoints": [
|
|
"pages"
|
|
]
|
|
}
|
|
}
|