mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
* Adding multiple initial files * Updated the default cart endpoint * Fixes * Updated CommerceAPI class for better usage * Adding more migration changes * Taking multiple steps into better API types * Adding more experimental types * Removed many testing types * Adding types, fixes and other updates * Updated commerce types * Updated types for hooks now using the API * Updated mutation types * Simplified cart types for the provider * Updated cart hooks * Remove normalizers from the hooks * Updated cart endpoint * Removed cart handlers * bug fixes * Improve quantity input behavior in cart item * Removed endpoints folder * Making progress on api operations * Moved method * Moved types * Changed the way ops are created * Added customer endpoint * Login endpoint * Added logout endpoint * Add missing logout files * Added signup endpoint * Removed customers old endpoints * Moved endpoints to nested folder * Removed old customer endpoint builders * Updated login operation * Updated login operation * Added getAllPages operation * Renamed endpoint operations to handlers * Changed import * Renamed operations to handlers in usage * Moved getAllPages everywhere * Moved getPage * Updated getPage usage * Moved getSiteInfo * Added def types for product * Updated type * moved products catalog endpoint * removed old catalog endpoint * Moved wishlist * Removed commerce.endpoint * Replaced references to commerce.endpoint * Updated catalog products * Moved checkout api * Added the get customer wishlist operation * Removed old wishlist stuff * Added getAllProductPaths operation * updated reference to operation * Moved getAllProducts * Updated getProduct operation * Removed old getConfig and references * Removed is-allowed-method from BC * Updated types for auth hooks * Updated useCustomer and core types * Updated useData and util hooks * Updated useSearch hook * Updated types for useWishlist * Added index for types * Fixes * Updated urls to the API * Renamed fetchInput to fetcherInput * Updated fetch type * Fixes in search hook * Updated Shopify Provider Structure (#340) * Add codegen, update fragments & schemas * Update checkout-create.ts * Update checkout-create.ts * Update README.md * Update product mutations & queries * Uptate customer fetch types * Update schemas * Start updates * Moved Page, AllPages & Site Info * Moved product, all products (paths) * Add translations, update operations & fixes * Update api endpoints, types & fixes * Add api checkout endpoint * Updates * Fixes * Update commerce.config.json Co-authored-by: B <curciobelen@gmail.com> * Added category type and normalizer * updated init script to exclude other providers * Excluded swell and venture temporarily * Fix category & color normalization * Fixed category normalizer in shopify * Don't use getSlug for category on /search * Update colors.ts Co-authored-by: cond0r <pinte_catalin@yahoo.com> Co-authored-by: B <curciobelen@gmail.com>
125 lines
3.2 KiB
JSON
125 lines
3.2 KiB
JSON
{
|
|
"name": "nextjs-commerce",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"analyze": "BUNDLE_ANALYZE=both yarn build",
|
|
"prettier-fix": "prettier --write .",
|
|
"find:unused": "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"
|
|
},
|
|
"sideEffects": false,
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "14.x"
|
|
},
|
|
"dependencies": {
|
|
"@reach/portal": "^0.11.2",
|
|
"@vercel/fetch": "^6.1.0",
|
|
"autoprefixer": "^10.2.4",
|
|
"body-scroll-lock": "^3.1.5",
|
|
"bowser": "^2.11.0",
|
|
"classnames": "^2.2.6",
|
|
"cookie": "^0.4.1",
|
|
"dot-object": "^2.1.4",
|
|
"email-validator": "^2.0.4",
|
|
"immutability-helper": "^3.1.1",
|
|
"js-cookie": "^2.2.1",
|
|
"keen-slider": "^5.2.4",
|
|
"lodash.debounce": "^4.0.8",
|
|
"lodash.random": "^3.2.0",
|
|
"lodash.throttle": "^4.1.1",
|
|
"next": "^10.0.9-canary.5",
|
|
"next-seo": "^4.11.0",
|
|
"next-themes": "^0.0.4",
|
|
"postcss": "^8.2.8",
|
|
"postcss-nesting": "^7.0.1",
|
|
"react": "^17.0.1",
|
|
"react-dom": "^17.0.1",
|
|
"react-merge-refs": "^1.1.0",
|
|
"react-ticker": "^1.2.2",
|
|
"shopify-buy": "^2.11.0",
|
|
"swell-js": "^4.0.0-next.0",
|
|
"swr": "^0.4.0",
|
|
"tabbable": "^5.1.5",
|
|
"tailwindcss": "^2.0.4"
|
|
},
|
|
"devDependencies": {
|
|
"@graphql-codegen/cli": "^1.20.0",
|
|
"@graphql-codegen/schema-ast": "^1.18.1",
|
|
"@graphql-codegen/typescript": "^1.19.0",
|
|
"@graphql-codegen/typescript-operations": "^1.17.13",
|
|
"@manifoldco/swagger-to-ts": "^2.1.0",
|
|
"@next/bundle-analyzer": "^10.0.1",
|
|
"@tailwindcss/jit": "^0.1.3",
|
|
"@types/body-scroll-lock": "^2.6.1",
|
|
"@types/classnames": "^2.2.10",
|
|
"@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": "^14.14.16",
|
|
"@types/react": "^17.0.0",
|
|
"@types/shopify-buy": "^2.10.5",
|
|
"deepmerge": "^4.2.2",
|
|
"graphql": "^15.4.0",
|
|
"husky": "^4.3.8",
|
|
"lint-staged": "^10.5.3",
|
|
"next-unused": "^0.0.3",
|
|
"postcss-flexbugs-fixes": "^4.2.1",
|
|
"postcss-preset-env": "^6.7.0",
|
|
"prettier": "^2.2.1",
|
|
"typescript": "^4.0.3"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,jsx,ts,tsx}": [
|
|
"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"
|
|
]
|
|
}
|
|
}
|