diff --git a/.changeset/smart-buses-rescue.md b/.changeset/smart-buses-rescue.md new file mode 100644 index 00000000..c4d10741 --- /dev/null +++ b/.changeset/smart-buses-rescue.md @@ -0,0 +1,5 @@ +--- +"@elasticpath/d2c-schematics": patch +--- + +Changed the name and scope of schematics package. diff --git a/package.json b/package.json index ea31ab81..55fdf9a0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test": "turbo run test", "test:watch": "turbo run test:watch", "examples": "turbo run build --filter=@field123/epcc-schematics-cli... && yarn run scaffold:local:simple", - "scaffold:local:simple": "mkdir -p examples && cd ./examples && rimraf ./* && node ../packages/epcc-schematics-cli/dist/bin/schematics.js ../packages/schematics/dist:ep-new --dry-run=false --skip-install=true --skip-git=true --interactive=false --epcc-client-id=abc123 --epcc-client-secret=def456 --epcc-endpoint-url=api.moltin.com basic" + "scaffold:local:simple": "mkdir -p examples && cd ./examples && rimraf ./* && node ../packages/epcc-schematics-cli/dist/bin/schematics.js ../packages/d2c-schematics/dist:ep-new --dry-run=false --skip-install=true --skip-git=true --interactive=false --epcc-client-id=abc123 --epcc-client-secret=def456 --epcc-endpoint-url=api.moltin.com basic" }, "devDependencies": { "@changesets/cli": "^2.24.1", diff --git a/packages/schematics/CHANGELOG.md b/packages/d2c-schematics/CHANGELOG.md similarity index 97% rename from packages/schematics/CHANGELOG.md rename to packages/d2c-schematics/CHANGELOG.md index b1d51dd0..f0edcbbf 100644 --- a/packages/schematics/CHANGELOG.md +++ b/packages/d2c-schematics/CHANGELOG.md @@ -1,4 +1,4 @@ -# @field123/schematics +# @elasticpath/d2c-schematics ## 0.4.2 diff --git a/packages/schematics/README.md b/packages/d2c-schematics/README.md similarity index 100% rename from packages/schematics/README.md rename to packages/d2c-schematics/README.md diff --git a/packages/schematics/__tests__/application.test.ts b/packages/d2c-schematics/__tests__/application.test.ts similarity index 100% rename from packages/schematics/__tests__/application.test.ts rename to packages/d2c-schematics/__tests__/application.test.ts diff --git a/packages/schematics/__tests__/cart.test.ts b/packages/d2c-schematics/__tests__/cart.test.ts similarity index 100% rename from packages/schematics/__tests__/cart.test.ts rename to packages/d2c-schematics/__tests__/cart.test.ts diff --git a/packages/schematics/__tests__/ep-new.test.ts b/packages/d2c-schematics/__tests__/ep-new.test.ts similarity index 100% rename from packages/schematics/__tests__/ep-new.test.ts rename to packages/d2c-schematics/__tests__/ep-new.test.ts diff --git a/packages/schematics/__tests__/featured-product.test.ts b/packages/d2c-schematics/__tests__/featured-product.test.ts similarity index 100% rename from packages/schematics/__tests__/featured-product.test.ts rename to packages/d2c-schematics/__tests__/featured-product.test.ts diff --git a/packages/schematics/__tests__/footer.test.ts b/packages/d2c-schematics/__tests__/footer.test.ts similarity index 100% rename from packages/schematics/__tests__/footer.test.ts rename to packages/d2c-schematics/__tests__/footer.test.ts diff --git a/packages/schematics/__tests__/header.test.ts b/packages/d2c-schematics/__tests__/header.test.ts similarity index 100% rename from packages/schematics/__tests__/header.test.ts rename to packages/d2c-schematics/__tests__/header.test.ts diff --git a/packages/schematics/__tests__/home.test.ts b/packages/d2c-schematics/__tests__/home.test.ts similarity index 100% rename from packages/schematics/__tests__/home.test.ts rename to packages/d2c-schematics/__tests__/home.test.ts diff --git a/packages/schematics/__tests__/product-details-page.test.ts b/packages/d2c-schematics/__tests__/product-details-page.test.ts similarity index 100% rename from packages/schematics/__tests__/product-details-page.test.ts rename to packages/d2c-schematics/__tests__/product-details-page.test.ts diff --git a/packages/schematics/__tests__/promotion-banner.test.ts b/packages/d2c-schematics/__tests__/promotion-banner.test.ts similarity index 100% rename from packages/schematics/__tests__/promotion-banner.test.ts rename to packages/d2c-schematics/__tests__/promotion-banner.test.ts diff --git a/packages/schematics/__tests__/workspace.test.ts b/packages/d2c-schematics/__tests__/workspace.test.ts similarity index 100% rename from packages/schematics/__tests__/workspace.test.ts rename to packages/d2c-schematics/__tests__/workspace.test.ts diff --git a/packages/schematics/application/files/public/favicon.ico b/packages/d2c-schematics/application/files/public/favicon.ico similarity index 100% rename from packages/schematics/application/files/public/favicon.ico rename to packages/d2c-schematics/application/files/public/favicon.ico diff --git a/packages/schematics/application/files/public/icons/empty.svg b/packages/d2c-schematics/application/files/public/icons/empty.svg similarity index 100% rename from packages/schematics/application/files/public/icons/empty.svg rename to packages/d2c-schematics/application/files/public/icons/empty.svg diff --git a/packages/schematics/application/files/public/icons/ep-icon.svg b/packages/d2c-schematics/application/files/public/icons/ep-icon.svg similarity index 100% rename from packages/schematics/application/files/public/icons/ep-icon.svg rename to packages/d2c-schematics/application/files/public/icons/ep-icon.svg diff --git a/packages/schematics/application/files/public/icons/ep-logo.svg b/packages/d2c-schematics/application/files/public/icons/ep-logo.svg similarity index 100% rename from packages/schematics/application/files/public/icons/ep-logo.svg rename to packages/d2c-schematics/application/files/public/icons/ep-logo.svg diff --git a/packages/schematics/application/files/public/icons/github.svg b/packages/d2c-schematics/application/files/public/icons/github.svg similarity index 100% rename from packages/schematics/application/files/public/icons/github.svg rename to packages/d2c-schematics/application/files/public/icons/github.svg diff --git a/packages/schematics/application/files/src/components/ChakraNextImage.tsx.template b/packages/d2c-schematics/application/files/src/components/ChakraNextImage.tsx.template similarity index 100% rename from packages/schematics/application/files/src/components/ChakraNextImage.tsx.template rename to packages/d2c-schematics/application/files/src/components/ChakraNextImage.tsx.template diff --git a/packages/schematics/application/files/src/components/layouts/MainLayout.tsx.template b/packages/d2c-schematics/application/files/src/components/layouts/MainLayout.tsx.template similarity index 100% rename from packages/schematics/application/files/src/components/layouts/MainLayout.tsx.template rename to packages/d2c-schematics/application/files/src/components/layouts/MainLayout.tsx.template diff --git a/packages/schematics/application/files/src/components/shimmer.tsx.template b/packages/d2c-schematics/application/files/src/components/shimmer.tsx.template similarity index 100% rename from packages/schematics/application/files/src/components/shimmer.tsx.template rename to packages/d2c-schematics/application/files/src/components/shimmer.tsx.template diff --git a/packages/schematics/application/files/src/components/toast/toaster.tsx.template b/packages/d2c-schematics/application/files/src/components/toast/toaster.tsx.template similarity index 100% rename from packages/schematics/application/files/src/components/toast/toaster.tsx.template rename to packages/d2c-schematics/application/files/src/components/toast/toaster.tsx.template diff --git a/packages/schematics/application/files/src/lib/build-site-navigation.ts.template b/packages/d2c-schematics/application/files/src/lib/build-site-navigation.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/build-site-navigation.ts.template rename to packages/d2c-schematics/application/files/src/lib/build-site-navigation.ts.template diff --git a/packages/schematics/application/files/src/lib/custom-rule-headers.ts.template b/packages/d2c-schematics/application/files/src/lib/custom-rule-headers.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/custom-rule-headers.ts.template rename to packages/d2c-schematics/application/files/src/lib/custom-rule-headers.ts.template diff --git a/packages/schematics/application/files/src/lib/ep-client-store.ts.template b/packages/d2c-schematics/application/files/src/lib/ep-client-store.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/ep-client-store.ts.template rename to packages/d2c-schematics/application/files/src/lib/ep-client-store.ts.template diff --git a/packages/schematics/application/files/src/lib/epcc-implicit-client.ts.template b/packages/d2c-schematics/application/files/src/lib/epcc-implicit-client.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/epcc-implicit-client.ts.template rename to packages/d2c-schematics/application/files/src/lib/epcc-implicit-client.ts.template diff --git a/packages/schematics/application/files/src/lib/epcc-server-client.ts.template b/packages/d2c-schematics/application/files/src/lib/epcc-server-client.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/epcc-server-client.ts.template rename to packages/d2c-schematics/application/files/src/lib/epcc-server-client.ts.template diff --git a/packages/schematics/application/files/src/lib/form-url-encode-body.ts.template b/packages/d2c-schematics/application/files/src/lib/form-url-encode-body.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/form-url-encode-body.ts.template rename to packages/d2c-schematics/application/files/src/lib/form-url-encode-body.ts.template diff --git a/packages/schematics/application/files/src/lib/get-main-layout.tsx.template b/packages/d2c-schematics/application/files/src/lib/get-main-layout.tsx.template similarity index 100% rename from packages/schematics/application/files/src/lib/get-main-layout.tsx.template rename to packages/d2c-schematics/application/files/src/lib/get-main-layout.tsx.template diff --git a/packages/schematics/application/files/src/lib/is-empty-object.ts.template b/packages/d2c-schematics/application/files/src/lib/is-empty-object.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/is-empty-object.ts.template rename to packages/d2c-schematics/application/files/src/lib/is-empty-object.ts.template diff --git a/packages/schematics/application/files/src/lib/menu-style.ts.template b/packages/d2c-schematics/application/files/src/lib/menu-style.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/menu-style.ts.template rename to packages/d2c-schematics/application/files/src/lib/menu-style.ts.template diff --git a/packages/schematics/application/files/src/lib/middleware/cart-cookie-middleware.ts.template b/packages/d2c-schematics/application/files/src/lib/middleware/cart-cookie-middleware.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/middleware/cart-cookie-middleware.ts.template rename to packages/d2c-schematics/application/files/src/lib/middleware/cart-cookie-middleware.ts.template diff --git a/packages/schematics/application/files/src/lib/middleware/create-missing-environment-variable-url.ts.template b/packages/d2c-schematics/application/files/src/lib/middleware/create-missing-environment-variable-url.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/middleware/create-missing-environment-variable-url.ts.template rename to packages/d2c-schematics/application/files/src/lib/middleware/create-missing-environment-variable-url.ts.template diff --git a/packages/schematics/application/files/src/lib/middleware/implicit-auth-middleware.ts.template b/packages/d2c-schematics/application/files/src/lib/middleware/implicit-auth-middleware.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/middleware/implicit-auth-middleware.ts.template rename to packages/d2c-schematics/application/files/src/lib/middleware/implicit-auth-middleware.ts.template diff --git a/packages/schematics/application/files/src/lib/middleware/middleware-runner.ts.template b/packages/d2c-schematics/application/files/src/lib/middleware/middleware-runner.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/middleware/middleware-runner.ts.template rename to packages/d2c-schematics/application/files/src/lib/middleware/middleware-runner.ts.template diff --git a/packages/schematics/application/files/src/lib/parse-cookie.ts.template b/packages/d2c-schematics/application/files/src/lib/parse-cookie.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/parse-cookie.ts.template rename to packages/d2c-schematics/application/files/src/lib/parse-cookie.ts.template diff --git a/packages/schematics/application/files/src/lib/providers/store-provider.tsx.template b/packages/d2c-schematics/application/files/src/lib/providers/store-provider.tsx.template similarity index 100% rename from packages/schematics/application/files/src/lib/providers/store-provider.tsx.template rename to packages/d2c-schematics/application/files/src/lib/providers/store-provider.tsx.template diff --git a/packages/schematics/application/files/src/lib/resolve-cart-env.ts.template b/packages/d2c-schematics/application/files/src/lib/resolve-cart-env.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/resolve-cart-env.ts.template rename to packages/d2c-schematics/application/files/src/lib/resolve-cart-env.ts.template diff --git a/packages/schematics/application/files/src/lib/resolve-epcc-env.ts.template b/packages/d2c-schematics/application/files/src/lib/resolve-epcc-env.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/resolve-epcc-env.ts.template rename to packages/d2c-schematics/application/files/src/lib/resolve-epcc-env.ts.template diff --git a/packages/schematics/application/files/src/lib/sort-alphabetically.ts.template b/packages/d2c-schematics/application/files/src/lib/sort-alphabetically.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/sort-alphabetically.ts.template rename to packages/d2c-schematics/application/files/src/lib/sort-alphabetically.ts.template diff --git a/packages/schematics/application/files/src/lib/store-wrapper-ssg.ts.template b/packages/d2c-schematics/application/files/src/lib/store-wrapper-ssg.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/store-wrapper-ssg.ts.template rename to packages/d2c-schematics/application/files/src/lib/store-wrapper-ssg.ts.template diff --git a/packages/schematics/application/files/src/lib/to-base-64.ts.template b/packages/d2c-schematics/application/files/src/lib/to-base-64.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/to-base-64.ts.template rename to packages/d2c-schematics/application/files/src/lib/to-base-64.ts.template diff --git a/packages/schematics/application/files/src/lib/token-expired.ts.template b/packages/d2c-schematics/application/files/src/lib/token-expired.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/token-expired.ts.template rename to packages/d2c-schematics/application/files/src/lib/token-expired.ts.template diff --git a/packages/schematics/application/files/src/lib/types/non-empty-array.ts.template b/packages/d2c-schematics/application/files/src/lib/types/non-empty-array.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/types/non-empty-array.ts.template rename to packages/d2c-schematics/application/files/src/lib/types/non-empty-array.ts.template diff --git a/packages/schematics/application/files/src/lib/types/read-only-non-empty-array.ts.template b/packages/d2c-schematics/application/files/src/lib/types/read-only-non-empty-array.ts.template similarity index 100% rename from packages/schematics/application/files/src/lib/types/read-only-non-empty-array.ts.template rename to packages/d2c-schematics/application/files/src/lib/types/read-only-non-empty-array.ts.template diff --git a/packages/schematics/application/files/src/middleware.ts.template b/packages/d2c-schematics/application/files/src/middleware.ts.template similarity index 100% rename from packages/schematics/application/files/src/middleware.ts.template rename to packages/d2c-schematics/application/files/src/middleware.ts.template diff --git a/packages/schematics/application/files/src/pages/404.tsx.template b/packages/d2c-schematics/application/files/src/pages/404.tsx.template similarity index 100% rename from packages/schematics/application/files/src/pages/404.tsx.template rename to packages/d2c-schematics/application/files/src/pages/404.tsx.template diff --git a/packages/schematics/application/files/src/pages/500.tsx.template b/packages/d2c-schematics/application/files/src/pages/500.tsx.template similarity index 100% rename from packages/schematics/application/files/src/pages/500.tsx.template rename to packages/d2c-schematics/application/files/src/pages/500.tsx.template diff --git a/packages/schematics/application/files/src/pages/_app.tsx.template b/packages/d2c-schematics/application/files/src/pages/_app.tsx.template similarity index 100% rename from packages/schematics/application/files/src/pages/_app.tsx.template rename to packages/d2c-schematics/application/files/src/pages/_app.tsx.template diff --git a/packages/schematics/application/files/src/pages/configuration-error.tsx.template b/packages/d2c-schematics/application/files/src/pages/configuration-error.tsx.template similarity index 100% rename from packages/schematics/application/files/src/pages/configuration-error.tsx.template rename to packages/d2c-schematics/application/files/src/pages/configuration-error.tsx.template diff --git a/packages/schematics/application/files/src/services/hierarchy.ts.template b/packages/d2c-schematics/application/files/src/services/hierarchy.ts.template similarity index 100% rename from packages/schematics/application/files/src/services/hierarchy.ts.template rename to packages/d2c-schematics/application/files/src/services/hierarchy.ts.template diff --git a/packages/schematics/application/files/src/styles/globals.css.template b/packages/d2c-schematics/application/files/src/styles/globals.css.template similarity index 100% rename from packages/schematics/application/files/src/styles/globals.css.template rename to packages/d2c-schematics/application/files/src/styles/globals.css.template diff --git a/packages/schematics/application/files/src/styles/theme.ts.template b/packages/d2c-schematics/application/files/src/styles/theme.ts.template similarity index 100% rename from packages/schematics/application/files/src/styles/theme.ts.template rename to packages/d2c-schematics/application/files/src/styles/theme.ts.template diff --git a/packages/schematics/application/index.ts b/packages/d2c-schematics/application/index.ts similarity index 100% rename from packages/schematics/application/index.ts rename to packages/d2c-schematics/application/index.ts diff --git a/packages/schematics/application/schema.json b/packages/d2c-schematics/application/schema.json similarity index 100% rename from packages/schematics/application/schema.json rename to packages/d2c-schematics/application/schema.json diff --git a/packages/schematics/blank/factory.ts b/packages/d2c-schematics/blank/factory.ts similarity index 100% rename from packages/schematics/blank/factory.ts rename to packages/d2c-schematics/blank/factory.ts diff --git a/packages/schematics/blank/project-files/README.md b/packages/d2c-schematics/blank/project-files/README.md similarity index 100% rename from packages/schematics/blank/project-files/README.md rename to packages/d2c-schematics/blank/project-files/README.md diff --git a/packages/schematics/blank/project-files/__dot__gitignore b/packages/d2c-schematics/blank/project-files/__dot__gitignore similarity index 100% rename from packages/schematics/blank/project-files/__dot__gitignore rename to packages/d2c-schematics/blank/project-files/__dot__gitignore diff --git a/packages/schematics/blank/project-files/__dot__npmignore b/packages/d2c-schematics/blank/project-files/__dot__npmignore similarity index 100% rename from packages/schematics/blank/project-files/__dot__npmignore rename to packages/d2c-schematics/blank/project-files/__dot__npmignore diff --git a/packages/schematics/blank/project-files/package.json b/packages/d2c-schematics/blank/project-files/package.json similarity index 100% rename from packages/schematics/blank/project-files/package.json rename to packages/d2c-schematics/blank/project-files/package.json diff --git a/packages/schematics/blank/project-files/src/collection.json b/packages/d2c-schematics/blank/project-files/src/collection.json similarity index 100% rename from packages/schematics/blank/project-files/src/collection.json rename to packages/d2c-schematics/blank/project-files/src/collection.json diff --git a/packages/schematics/blank/project-files/tsconfig.json b/packages/d2c-schematics/blank/project-files/tsconfig.json similarity index 100% rename from packages/schematics/blank/project-files/tsconfig.json rename to packages/d2c-schematics/blank/project-files/tsconfig.json diff --git a/packages/schematics/blank/schema.json b/packages/d2c-schematics/blank/schema.json similarity index 100% rename from packages/schematics/blank/schema.json rename to packages/d2c-schematics/blank/schema.json diff --git a/packages/schematics/blank/schematic-files/src/__name@dasherize__/index.ts b/packages/d2c-schematics/blank/schematic-files/src/__name@dasherize__/index.ts similarity index 100% rename from packages/schematics/blank/schematic-files/src/__name@dasherize__/index.ts rename to packages/d2c-schematics/blank/schematic-files/src/__name@dasherize__/index.ts diff --git a/packages/schematics/blank/schematic-files/src/__name@dasherize__/index_spec.ts b/packages/d2c-schematics/blank/schematic-files/src/__name@dasherize__/index_spec.ts similarity index 100% rename from packages/schematics/blank/schematic-files/src/__name@dasherize__/index_spec.ts rename to packages/d2c-schematics/blank/schematic-files/src/__name@dasherize__/index_spec.ts diff --git a/packages/schematics/cart/files/src/components/cart/Cart.tsx.template b/packages/d2c-schematics/cart/files/src/components/cart/Cart.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/components/cart/Cart.tsx.template rename to packages/d2c-schematics/cart/files/src/components/cart/Cart.tsx.template diff --git a/packages/schematics/cart/files/src/components/cart/CartItemList.tsx.template b/packages/d2c-schematics/cart/files/src/components/cart/CartItemList.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/components/cart/CartItemList.tsx.template rename to packages/d2c-schematics/cart/files/src/components/cart/CartItemList.tsx.template diff --git a/packages/schematics/cart/files/src/components/cart/CartOrderSummary.tsx.template b/packages/d2c-schematics/cart/files/src/components/cart/CartOrderSummary.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/components/cart/CartOrderSummary.tsx.template rename to packages/d2c-schematics/cart/files/src/components/cart/CartOrderSummary.tsx.template diff --git a/packages/schematics/cart/files/src/components/cart/Promotion.tsx.template b/packages/d2c-schematics/cart/files/src/components/cart/Promotion.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/components/cart/Promotion.tsx.template rename to packages/d2c-schematics/cart/files/src/components/cart/Promotion.tsx.template diff --git a/packages/schematics/cart/files/src/components/quantity-handler/QuantityHandler.tsx.template b/packages/d2c-schematics/cart/files/src/components/quantity-handler/QuantityHandler.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/components/quantity-handler/QuantityHandler.tsx.template rename to packages/d2c-schematics/cart/files/src/components/quantity-handler/QuantityHandler.tsx.template diff --git a/packages/schematics/cart/files/src/lib/cart-cookie.ts.template b/packages/d2c-schematics/cart/files/src/lib/cart-cookie.ts.template similarity index 100% rename from packages/schematics/cart/files/src/lib/cart-cookie.ts.template rename to packages/d2c-schematics/cart/files/src/lib/cart-cookie.ts.template diff --git a/packages/schematics/cart/files/src/lib/resolve-shopping-cart-props.ts.template b/packages/d2c-schematics/cart/files/src/lib/resolve-shopping-cart-props.ts.template similarity index 100% rename from packages/schematics/cart/files/src/lib/resolve-shopping-cart-props.ts.template rename to packages/d2c-schematics/cart/files/src/lib/resolve-shopping-cart-props.ts.template diff --git a/packages/schematics/cart/files/src/lib/store-wrapper-ssr.ts.template b/packages/d2c-schematics/cart/files/src/lib/store-wrapper-ssr.ts.template similarity index 100% rename from packages/schematics/cart/files/src/lib/store-wrapper-ssr.ts.template rename to packages/d2c-schematics/cart/files/src/lib/store-wrapper-ssr.ts.template diff --git a/packages/schematics/cart/files/src/lib/types/store-context.ts.template b/packages/d2c-schematics/cart/files/src/lib/types/store-context.ts.template similarity index 100% rename from packages/schematics/cart/files/src/lib/types/store-context.ts.template rename to packages/d2c-schematics/cart/files/src/lib/types/store-context.ts.template diff --git a/packages/schematics/cart/files/src/pages/cart.tsx.template b/packages/d2c-schematics/cart/files/src/pages/cart.tsx.template similarity index 100% rename from packages/schematics/cart/files/src/pages/cart.tsx.template rename to packages/d2c-schematics/cart/files/src/pages/cart.tsx.template diff --git a/packages/schematics/cart/files/src/services/cart.ts.template b/packages/d2c-schematics/cart/files/src/services/cart.ts.template similarity index 100% rename from packages/schematics/cart/files/src/services/cart.ts.template rename to packages/d2c-schematics/cart/files/src/services/cart.ts.template diff --git a/packages/schematics/cart/index.ts b/packages/d2c-schematics/cart/index.ts similarity index 100% rename from packages/schematics/cart/index.ts rename to packages/d2c-schematics/cart/index.ts diff --git a/packages/schematics/cart/schema.json b/packages/d2c-schematics/cart/schema.json similarity index 100% rename from packages/schematics/cart/schema.json rename to packages/d2c-schematics/cart/schema.json diff --git a/packages/schematics/collection.json b/packages/d2c-schematics/collection.json similarity index 100% rename from packages/schematics/collection.json rename to packages/d2c-schematics/collection.json diff --git a/packages/schematics/ep-new/index.ts b/packages/d2c-schematics/ep-new/index.ts similarity index 100% rename from packages/schematics/ep-new/index.ts rename to packages/d2c-schematics/ep-new/index.ts diff --git a/packages/schematics/ep-new/schema.json b/packages/d2c-schematics/ep-new/schema.json similarity index 100% rename from packages/schematics/ep-new/schema.json rename to packages/d2c-schematics/ep-new/schema.json diff --git a/packages/schematics/featured-products/files/src/components/featured-products/FeaturedProducts.tsx.template b/packages/d2c-schematics/featured-products/files/src/components/featured-products/FeaturedProducts.tsx.template similarity index 100% rename from packages/schematics/featured-products/files/src/components/featured-products/FeaturedProducts.tsx.template rename to packages/d2c-schematics/featured-products/files/src/components/featured-products/FeaturedProducts.tsx.template diff --git a/packages/schematics/featured-products/files/src/components/featured-products/fetchFeaturedProducts.ts.template b/packages/d2c-schematics/featured-products/files/src/components/featured-products/fetchFeaturedProducts.ts.template similarity index 100% rename from packages/schematics/featured-products/files/src/components/featured-products/fetchFeaturedProducts.ts.template rename to packages/d2c-schematics/featured-products/files/src/components/featured-products/fetchFeaturedProducts.ts.template diff --git a/packages/schematics/featured-products/index.ts b/packages/d2c-schematics/featured-products/index.ts similarity index 100% rename from packages/schematics/featured-products/index.ts rename to packages/d2c-schematics/featured-products/index.ts diff --git a/packages/schematics/featured-products/schema.json b/packages/d2c-schematics/featured-products/schema.json similarity index 100% rename from packages/schematics/featured-products/schema.json rename to packages/d2c-schematics/featured-products/schema.json diff --git a/packages/schematics/footer/files/src/components/footer/Footer.tsx.template b/packages/d2c-schematics/footer/files/src/components/footer/Footer.tsx.template similarity index 100% rename from packages/schematics/footer/files/src/components/footer/Footer.tsx.template rename to packages/d2c-schematics/footer/files/src/components/footer/Footer.tsx.template diff --git a/packages/schematics/footer/index.ts b/packages/d2c-schematics/footer/index.ts similarity index 100% rename from packages/schematics/footer/index.ts rename to packages/d2c-schematics/footer/index.ts diff --git a/packages/schematics/footer/schema.json b/packages/d2c-schematics/footer/schema.json similarity index 100% rename from packages/schematics/footer/schema.json rename to packages/d2c-schematics/footer/schema.json diff --git a/packages/schematics/header/files/src/components/header/Header.tsx.template b/packages/d2c-schematics/header/files/src/components/header/Header.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/Header.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/Header.tsx.template diff --git a/packages/schematics/header/files/src/components/header/cart/CartItemNumTag.tsx.template b/packages/d2c-schematics/header/files/src/components/header/cart/CartItemNumTag.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/cart/CartItemNumTag.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/cart/CartItemNumTag.tsx.template diff --git a/packages/schematics/header/files/src/components/header/cart/CartMenu.tsx.template b/packages/d2c-schematics/header/files/src/components/header/cart/CartMenu.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/cart/CartMenu.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/cart/CartMenu.tsx.template diff --git a/packages/schematics/header/files/src/components/header/cart/CartUpdatingSpinner.tsx.template b/packages/d2c-schematics/header/files/src/components/header/cart/CartUpdatingSpinner.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/cart/CartUpdatingSpinner.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/cart/CartUpdatingSpinner.tsx.template diff --git a/packages/schematics/header/files/src/components/header/cart/ModalCartItem.tsx.template b/packages/d2c-schematics/header/files/src/components/header/cart/ModalCartItem.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/cart/ModalCartItem.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/cart/ModalCartItem.tsx.template diff --git a/packages/schematics/header/files/src/components/header/navigation/MobileNavBar.tsx.template b/packages/d2c-schematics/header/files/src/components/header/navigation/MobileNavBar.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/navigation/MobileNavBar.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/navigation/MobileNavBar.tsx.template diff --git a/packages/schematics/header/files/src/components/header/navigation/NavBar.tsx.template b/packages/d2c-schematics/header/files/src/components/header/navigation/NavBar.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/navigation/NavBar.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/navigation/NavBar.tsx.template diff --git a/packages/schematics/header/files/src/components/header/navigation/NavItem.tsx.template b/packages/d2c-schematics/header/files/src/components/header/navigation/NavItem.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/navigation/NavItem.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/navigation/NavItem.tsx.template diff --git a/packages/schematics/header/files/src/components/header/navigation/NavItemContent.tsx.template b/packages/d2c-schematics/header/files/src/components/header/navigation/NavItemContent.tsx.template similarity index 100% rename from packages/schematics/header/files/src/components/header/navigation/NavItemContent.tsx.template rename to packages/d2c-schematics/header/files/src/components/header/navigation/NavItemContent.tsx.template diff --git a/packages/schematics/header/index.ts b/packages/d2c-schematics/header/index.ts similarity index 100% rename from packages/schematics/header/index.ts rename to packages/d2c-schematics/header/index.ts diff --git a/packages/schematics/header/schema.json b/packages/d2c-schematics/header/schema.json similarity index 100% rename from packages/schematics/header/schema.json rename to packages/d2c-schematics/header/schema.json diff --git a/packages/schematics/home/files/src/pages/index.tsx.template b/packages/d2c-schematics/home/files/src/pages/index.tsx.template similarity index 100% rename from packages/schematics/home/files/src/pages/index.tsx.template rename to packages/d2c-schematics/home/files/src/pages/index.tsx.template diff --git a/packages/schematics/home/index.ts b/packages/d2c-schematics/home/index.ts similarity index 100% rename from packages/schematics/home/index.ts rename to packages/d2c-schematics/home/index.ts diff --git a/packages/schematics/home/schema.json b/packages/d2c-schematics/home/schema.json similarity index 100% rename from packages/schematics/home/schema.json rename to packages/d2c-schematics/home/schema.json diff --git a/packages/schematics/jest.config.js b/packages/d2c-schematics/jest.config.js similarity index 100% rename from packages/schematics/jest.config.js rename to packages/d2c-schematics/jest.config.js diff --git a/packages/schematics/package.json b/packages/d2c-schematics/package.json similarity index 92% rename from packages/schematics/package.json rename to packages/d2c-schematics/package.json index 8581b315..12e91ee5 100644 --- a/packages/schematics/package.json +++ b/packages/d2c-schematics/package.json @@ -1,7 +1,7 @@ { - "name": "@field123/schematics", + "name": "@elasticpath/d2c-schematics", "version": "0.4.2", - "description": "Elastic Path Commerce Cloud Schematics", + "description": "D2C Storefront Schematics for Elastic Path Commerce Cloud", "repository": { "type": "git", "directory": "packages/schematics" diff --git a/packages/schematics/product-details-page/files/src/components/product/BaseProduct.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/BaseProduct.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/BaseProduct.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/BaseProduct.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/CartActions.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/CartActions.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/CartActions.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/CartActions.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ChildProduct.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ChildProduct.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ChildProduct.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ChildProduct.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/Price.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/Price.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/Price.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/Price.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductComponents.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductComponents.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductComponents.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductComponents.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductContainer.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductContainer.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductContainer.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductContainer.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductDetails.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductDetails.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductDetails.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductDetails.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductExtensions.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductExtensions.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductExtensions.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductExtensions.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductSummary.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductSummary.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductSummary.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductSummary.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/ProductVariations.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/ProductVariations.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/ProductVariations.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/ProductVariations.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/SimpleProduct.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/SimpleProduct.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/SimpleProduct.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/SimpleProduct.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/StrikePrice.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/StrikePrice.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/StrikePrice.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/StrikePrice.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/CarouselListener.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/CarouselListener.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/CarouselListener.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/CarouselListener.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/HorizontalCarousel.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/HorizontalCarousel.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/HorizontalCarousel.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/HorizontalCarousel.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.module.css.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.module.css.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.module.css.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.module.css.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductCarousel.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/ProductHighlightCarousel.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductHighlightCarousel.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/ProductHighlightCarousel.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/ProductHighlightCarousel.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/carousel/carousel-wrapped.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/carousel/carousel-wrapped.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/carousel/carousel-wrapped.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/carousel/carousel-wrapped.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/variations/ProductVariationColor.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/variations/ProductVariationColor.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/variations/ProductVariationColor.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/variations/ProductVariationColor.tsx.template diff --git a/packages/schematics/product-details-page/files/src/components/product/variations/ProductVariationStandard.tsx.template b/packages/d2c-schematics/product-details-page/files/src/components/product/variations/ProductVariationStandard.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/components/product/variations/ProductVariationStandard.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/components/product/variations/ProductVariationStandard.tsx.template diff --git a/packages/schematics/product-details-page/files/src/lib/color-lookup.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/color-lookup.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/color-lookup.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/color-lookup.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/product-helper.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/product-helper.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/product-helper.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/product-helper.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/product-util.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/product-util.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/product-util.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/product-util.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/retrieve-product-props.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/retrieve-product-props.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/retrieve-product-props.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/retrieve-product-props.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/sort-alphabetically.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/sort-alphabetically.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/sort-alphabetically.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/sort-alphabetically.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/types/matrix-object-entry.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/types/matrix-object-entry.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/types/matrix-object-entry.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/types/matrix-object-entry.ts.template diff --git a/packages/schematics/product-details-page/files/src/lib/types/product-types.ts.template b/packages/d2c-schematics/product-details-page/files/src/lib/types/product-types.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/lib/types/product-types.ts.template rename to packages/d2c-schematics/product-details-page/files/src/lib/types/product-types.ts.template diff --git a/packages/schematics/product-details-page/files/src/pages/404.tsx.template b/packages/d2c-schematics/product-details-page/files/src/pages/404.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/pages/404.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/pages/404.tsx.template diff --git a/packages/schematics/product-details-page/files/src/pages/500.tsx.template b/packages/d2c-schematics/product-details-page/files/src/pages/500.tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/pages/500.tsx.template rename to packages/d2c-schematics/product-details-page/files/src/pages/500.tsx.template diff --git a/packages/schematics/product-details-page/files/src/pages/products/[productId].tsx.template b/packages/d2c-schematics/product-details-page/files/src/pages/products/[productId].tsx.template similarity index 100% rename from packages/schematics/product-details-page/files/src/pages/products/[productId].tsx.template rename to packages/d2c-schematics/product-details-page/files/src/pages/products/[productId].tsx.template diff --git a/packages/schematics/product-details-page/files/src/services/products.ts.template b/packages/d2c-schematics/product-details-page/files/src/services/products.ts.template similarity index 100% rename from packages/schematics/product-details-page/files/src/services/products.ts.template rename to packages/d2c-schematics/product-details-page/files/src/services/products.ts.template diff --git a/packages/schematics/product-details-page/index.ts b/packages/d2c-schematics/product-details-page/index.ts similarity index 100% rename from packages/schematics/product-details-page/index.ts rename to packages/d2c-schematics/product-details-page/index.ts diff --git a/packages/schematics/product-details-page/schema.json b/packages/d2c-schematics/product-details-page/schema.json similarity index 100% rename from packages/schematics/product-details-page/schema.json rename to packages/d2c-schematics/product-details-page/schema.json diff --git a/packages/schematics/promotion-banner/files/src/components/promotion-banner/PromotionBanner.tsx.template b/packages/d2c-schematics/promotion-banner/files/src/components/promotion-banner/PromotionBanner.tsx.template similarity index 100% rename from packages/schematics/promotion-banner/files/src/components/promotion-banner/PromotionBanner.tsx.template rename to packages/d2c-schematics/promotion-banner/files/src/components/promotion-banner/PromotionBanner.tsx.template diff --git a/packages/schematics/promotion-banner/files/src/components/promotion-banner/fetchFeaturedPromotion.ts.template b/packages/d2c-schematics/promotion-banner/files/src/components/promotion-banner/fetchFeaturedPromotion.ts.template similarity index 100% rename from packages/schematics/promotion-banner/files/src/components/promotion-banner/fetchFeaturedPromotion.ts.template rename to packages/d2c-schematics/promotion-banner/files/src/components/promotion-banner/fetchFeaturedPromotion.ts.template diff --git a/packages/schematics/promotion-banner/files/src/services/promotions.ts.template b/packages/d2c-schematics/promotion-banner/files/src/services/promotions.ts.template similarity index 100% rename from packages/schematics/promotion-banner/files/src/services/promotions.ts.template rename to packages/d2c-schematics/promotion-banner/files/src/services/promotions.ts.template diff --git a/packages/schematics/promotion-banner/index.ts b/packages/d2c-schematics/promotion-banner/index.ts similarity index 100% rename from packages/schematics/promotion-banner/index.ts rename to packages/d2c-schematics/promotion-banner/index.ts diff --git a/packages/schematics/promotion-banner/schema.json b/packages/d2c-schematics/promotion-banner/schema.json similarity index 100% rename from packages/schematics/promotion-banner/schema.json rename to packages/d2c-schematics/promotion-banner/schema.json diff --git a/packages/schematics/schematic/factory.ts b/packages/d2c-schematics/schematic/factory.ts similarity index 100% rename from packages/schematics/schematic/factory.ts rename to packages/d2c-schematics/schematic/factory.ts diff --git a/packages/schematics/schematic/files/README.md b/packages/d2c-schematics/schematic/files/README.md similarity index 100% rename from packages/schematics/schematic/files/README.md rename to packages/d2c-schematics/schematic/files/README.md diff --git a/packages/schematics/schematic/files/__dot__gitignore b/packages/d2c-schematics/schematic/files/__dot__gitignore similarity index 100% rename from packages/schematics/schematic/files/__dot__gitignore rename to packages/d2c-schematics/schematic/files/__dot__gitignore diff --git a/packages/schematics/schematic/files/__dot__npmignore b/packages/d2c-schematics/schematic/files/__dot__npmignore similarity index 100% rename from packages/schematics/schematic/files/__dot__npmignore rename to packages/d2c-schematics/schematic/files/__dot__npmignore diff --git a/packages/schematics/schematic/files/package.json b/packages/d2c-schematics/schematic/files/package.json similarity index 100% rename from packages/schematics/schematic/files/package.json rename to packages/d2c-schematics/schematic/files/package.json diff --git a/packages/schematics/schematic/files/src/collection.json b/packages/d2c-schematics/schematic/files/src/collection.json similarity index 100% rename from packages/schematics/schematic/files/src/collection.json rename to packages/d2c-schematics/schematic/files/src/collection.json diff --git a/packages/schematics/schematic/files/src/my-full-schematic/files/test2 b/packages/d2c-schematics/schematic/files/src/my-full-schematic/files/test2 similarity index 100% rename from packages/schematics/schematic/files/src/my-full-schematic/files/test2 rename to packages/d2c-schematics/schematic/files/src/my-full-schematic/files/test2 diff --git a/packages/schematics/schematic/files/src/my-full-schematic/files/test__INDEX__ b/packages/d2c-schematics/schematic/files/src/my-full-schematic/files/test__INDEX__ similarity index 100% rename from packages/schematics/schematic/files/src/my-full-schematic/files/test__INDEX__ rename to packages/d2c-schematics/schematic/files/src/my-full-schematic/files/test__INDEX__ diff --git a/packages/schematics/schematic/files/src/my-full-schematic/index.ts b/packages/d2c-schematics/schematic/files/src/my-full-schematic/index.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-full-schematic/index.ts rename to packages/d2c-schematics/schematic/files/src/my-full-schematic/index.ts diff --git a/packages/schematics/schematic/files/src/my-full-schematic/index_spec.ts b/packages/d2c-schematics/schematic/files/src/my-full-schematic/index_spec.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-full-schematic/index_spec.ts rename to packages/d2c-schematics/schematic/files/src/my-full-schematic/index_spec.ts diff --git a/packages/schematics/schematic/files/src/my-full-schematic/schema.json b/packages/d2c-schematics/schematic/files/src/my-full-schematic/schema.json similarity index 100% rename from packages/schematics/schematic/files/src/my-full-schematic/schema.json rename to packages/d2c-schematics/schematic/files/src/my-full-schematic/schema.json diff --git a/packages/schematics/schematic/files/src/my-other-schematic/index.ts b/packages/d2c-schematics/schematic/files/src/my-other-schematic/index.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-other-schematic/index.ts rename to packages/d2c-schematics/schematic/files/src/my-other-schematic/index.ts diff --git a/packages/schematics/schematic/files/src/my-other-schematic/index_spec.ts b/packages/d2c-schematics/schematic/files/src/my-other-schematic/index_spec.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-other-schematic/index_spec.ts rename to packages/d2c-schematics/schematic/files/src/my-other-schematic/index_spec.ts diff --git a/packages/schematics/schematic/files/src/my-schematic/index.ts b/packages/d2c-schematics/schematic/files/src/my-schematic/index.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-schematic/index.ts rename to packages/d2c-schematics/schematic/files/src/my-schematic/index.ts diff --git a/packages/schematics/schematic/files/src/my-schematic/index_spec.ts b/packages/d2c-schematics/schematic/files/src/my-schematic/index_spec.ts similarity index 100% rename from packages/schematics/schematic/files/src/my-schematic/index_spec.ts rename to packages/d2c-schematics/schematic/files/src/my-schematic/index_spec.ts diff --git a/packages/schematics/schematic/files/tsconfig.json b/packages/d2c-schematics/schematic/files/tsconfig.json similarity index 100% rename from packages/schematics/schematic/files/tsconfig.json rename to packages/d2c-schematics/schematic/files/tsconfig.json diff --git a/packages/schematics/schematic/schema.json b/packages/d2c-schematics/schematic/schema.json similarity index 100% rename from packages/schematics/schematic/schema.json rename to packages/d2c-schematics/schematic/schema.json diff --git a/packages/schematics/tsup.config.ts b/packages/d2c-schematics/tsup.config.ts similarity index 100% rename from packages/schematics/tsup.config.ts rename to packages/d2c-schematics/tsup.config.ts diff --git a/packages/schematics/utility/add-env-variable.ts b/packages/d2c-schematics/utility/add-env-variable.ts similarity index 100% rename from packages/schematics/utility/add-env-variable.ts rename to packages/d2c-schematics/utility/add-env-variable.ts diff --git a/packages/schematics/utility/ast-utils.ts b/packages/d2c-schematics/utility/ast-utils.ts similarity index 100% rename from packages/schematics/utility/ast-utils.ts rename to packages/d2c-schematics/utility/ast-utils.ts diff --git a/packages/schematics/utility/change.ts b/packages/d2c-schematics/utility/change.ts similarity index 100% rename from packages/schematics/utility/change.ts rename to packages/d2c-schematics/utility/change.ts diff --git a/packages/schematics/utility/dependencies.ts b/packages/d2c-schematics/utility/dependencies.ts similarity index 100% rename from packages/schematics/utility/dependencies.ts rename to packages/d2c-schematics/utility/dependencies.ts diff --git a/packages/schematics/utility/dependency.ts b/packages/d2c-schematics/utility/dependency.ts similarity index 100% rename from packages/schematics/utility/dependency.ts rename to packages/d2c-schematics/utility/dependency.ts diff --git a/packages/schematics/utility/find-module.ts b/packages/d2c-schematics/utility/find-module.ts similarity index 100% rename from packages/schematics/utility/find-module.ts rename to packages/d2c-schematics/utility/find-module.ts diff --git a/packages/schematics/utility/generate-from-files.ts b/packages/d2c-schematics/utility/generate-from-files.ts similarity index 100% rename from packages/schematics/utility/generate-from-files.ts rename to packages/d2c-schematics/utility/generate-from-files.ts diff --git a/packages/schematics/utility/index.ts b/packages/d2c-schematics/utility/index.ts similarity index 100% rename from packages/schematics/utility/index.ts rename to packages/d2c-schematics/utility/index.ts diff --git a/packages/schematics/utility/json-file.ts b/packages/d2c-schematics/utility/json-file.ts similarity index 100% rename from packages/schematics/utility/json-file.ts rename to packages/d2c-schematics/utility/json-file.ts diff --git a/packages/schematics/utility/latest-versions.ts b/packages/d2c-schematics/utility/latest-versions.ts similarity index 100% rename from packages/schematics/utility/latest-versions.ts rename to packages/d2c-schematics/utility/latest-versions.ts diff --git a/packages/schematics/utility/latest-versions/package.json b/packages/d2c-schematics/utility/latest-versions/package.json similarity index 93% rename from packages/schematics/utility/latest-versions/package.json rename to packages/d2c-schematics/utility/latest-versions/package.json index 42b3f943..56c43c4d 100644 --- a/packages/schematics/utility/latest-versions/package.json +++ b/packages/d2c-schematics/utility/latest-versions/package.json @@ -1,5 +1,5 @@ { - "description": "Package versions used by schematics in @field123/schematics.", + "description": "Package versions used by schematics in @elasticpath/d2c-schematics.", "comment": "This file is needed so that dependencies are synced by Renovate.", "private": true, "dependencies": { diff --git a/packages/schematics/utility/match-all.ts b/packages/d2c-schematics/utility/match-all.ts similarity index 100% rename from packages/schematics/utility/match-all.ts rename to packages/d2c-schematics/utility/match-all.ts diff --git a/packages/schematics/utility/ng-ast-utils.ts b/packages/d2c-schematics/utility/ng-ast-utils.ts similarity index 100% rename from packages/schematics/utility/ng-ast-utils.ts rename to packages/d2c-schematics/utility/ng-ast-utils.ts diff --git a/packages/schematics/utility/parse-name.ts b/packages/d2c-schematics/utility/parse-name.ts similarity index 100% rename from packages/schematics/utility/parse-name.ts rename to packages/d2c-schematics/utility/parse-name.ts diff --git a/packages/schematics/utility/paths.ts b/packages/d2c-schematics/utility/paths.ts similarity index 100% rename from packages/schematics/utility/paths.ts rename to packages/d2c-schematics/utility/paths.ts diff --git a/packages/schematics/utility/project-targets.ts b/packages/d2c-schematics/utility/project-targets.ts similarity index 100% rename from packages/schematics/utility/project-targets.ts rename to packages/d2c-schematics/utility/project-targets.ts diff --git a/packages/schematics/utility/validation.ts b/packages/d2c-schematics/utility/validation.ts similarity index 100% rename from packages/schematics/utility/validation.ts rename to packages/d2c-schematics/utility/validation.ts diff --git a/packages/schematics/utility/workspace-models.ts b/packages/d2c-schematics/utility/workspace-models.ts similarity index 100% rename from packages/schematics/utility/workspace-models.ts rename to packages/d2c-schematics/utility/workspace-models.ts diff --git a/packages/schematics/utility/workspace.ts b/packages/d2c-schematics/utility/workspace.ts similarity index 100% rename from packages/schematics/utility/workspace.ts rename to packages/d2c-schematics/utility/workspace.ts diff --git a/packages/schematics/workspace/files/README.md.template b/packages/d2c-schematics/workspace/files/README.md.template similarity index 100% rename from packages/schematics/workspace/files/README.md.template rename to packages/d2c-schematics/workspace/files/README.md.template diff --git a/packages/schematics/workspace/files/__dot__env.example.template b/packages/d2c-schematics/workspace/files/__dot__env.example.template similarity index 100% rename from packages/schematics/workspace/files/__dot__env.example.template rename to packages/d2c-schematics/workspace/files/__dot__env.example.template diff --git a/packages/schematics/workspace/files/__dot__env.local.template b/packages/d2c-schematics/workspace/files/__dot__env.local.template similarity index 100% rename from packages/schematics/workspace/files/__dot__env.local.template rename to packages/d2c-schematics/workspace/files/__dot__env.local.template diff --git a/packages/schematics/workspace/files/__dot__eslintrc.json.template b/packages/d2c-schematics/workspace/files/__dot__eslintrc.json.template similarity index 100% rename from packages/schematics/workspace/files/__dot__eslintrc.json.template rename to packages/d2c-schematics/workspace/files/__dot__eslintrc.json.template diff --git a/packages/schematics/workspace/files/__dot__gitignore.template b/packages/d2c-schematics/workspace/files/__dot__gitignore.template similarity index 100% rename from packages/schematics/workspace/files/__dot__gitignore.template rename to packages/d2c-schematics/workspace/files/__dot__gitignore.template diff --git a/packages/schematics/workspace/files/__dot__husky/__dot__gitignore.template b/packages/d2c-schematics/workspace/files/__dot__husky/__dot__gitignore.template similarity index 100% rename from packages/schematics/workspace/files/__dot__husky/__dot__gitignore.template rename to packages/d2c-schematics/workspace/files/__dot__husky/__dot__gitignore.template diff --git a/packages/schematics/workspace/files/__dot__husky/pre-commit.template b/packages/d2c-schematics/workspace/files/__dot__husky/pre-commit.template similarity index 100% rename from packages/schematics/workspace/files/__dot__husky/pre-commit.template rename to packages/d2c-schematics/workspace/files/__dot__husky/pre-commit.template diff --git a/packages/schematics/workspace/files/__dot__lintstagedrc.js.template b/packages/d2c-schematics/workspace/files/__dot__lintstagedrc.js.template similarity index 100% rename from packages/schematics/workspace/files/__dot__lintstagedrc.js.template rename to packages/d2c-schematics/workspace/files/__dot__lintstagedrc.js.template diff --git a/packages/schematics/workspace/files/__dot__prettierignore.template b/packages/d2c-schematics/workspace/files/__dot__prettierignore.template similarity index 100% rename from packages/schematics/workspace/files/__dot__prettierignore.template rename to packages/d2c-schematics/workspace/files/__dot__prettierignore.template diff --git a/packages/schematics/workspace/files/__dot__prettierrc.template b/packages/d2c-schematics/workspace/files/__dot__prettierrc.template similarity index 100% rename from packages/schematics/workspace/files/__dot__prettierrc.template rename to packages/d2c-schematics/workspace/files/__dot__prettierrc.template diff --git a/packages/schematics/workspace/files/license.md.template b/packages/d2c-schematics/workspace/files/license.md.template similarity index 100% rename from packages/schematics/workspace/files/license.md.template rename to packages/d2c-schematics/workspace/files/license.md.template diff --git a/packages/schematics/workspace/files/next-env.d.ts.template b/packages/d2c-schematics/workspace/files/next-env.d.ts.template similarity index 100% rename from packages/schematics/workspace/files/next-env.d.ts.template rename to packages/d2c-schematics/workspace/files/next-env.d.ts.template diff --git a/packages/schematics/workspace/files/next.config.js.template b/packages/d2c-schematics/workspace/files/next.config.js.template similarity index 100% rename from packages/schematics/workspace/files/next.config.js.template rename to packages/d2c-schematics/workspace/files/next.config.js.template diff --git a/packages/schematics/workspace/files/package.json.template b/packages/d2c-schematics/workspace/files/package.json.template similarity index 100% rename from packages/schematics/workspace/files/package.json.template rename to packages/d2c-schematics/workspace/files/package.json.template diff --git a/packages/schematics/workspace/files/tsconfig.json.template b/packages/d2c-schematics/workspace/files/tsconfig.json.template similarity index 100% rename from packages/schematics/workspace/files/tsconfig.json.template rename to packages/d2c-schematics/workspace/files/tsconfig.json.template diff --git a/packages/schematics/workspace/index.ts b/packages/d2c-schematics/workspace/index.ts similarity index 100% rename from packages/schematics/workspace/index.ts rename to packages/d2c-schematics/workspace/index.ts diff --git a/packages/schematics/workspace/schema.json b/packages/d2c-schematics/workspace/schema.json similarity index 100% rename from packages/schematics/workspace/schema.json rename to packages/d2c-schematics/workspace/schema.json diff --git a/packages/epcc-schematics-cli/CHANGELOG.md b/packages/epcc-schematics-cli/CHANGELOG.md index 31fe037d..8cff0cec 100644 --- a/packages/epcc-schematics-cli/CHANGELOG.md +++ b/packages/epcc-schematics-cli/CHANGELOG.md @@ -9,7 +9,7 @@ ### Patch Changes - Updated dependencies [4d6bfa4] - - @field123/schematics@0.4.0 + - @elasticpath/d2c-schematics@0.4.0 ## 0.3.2 diff --git a/packages/epcc-schematics-cli/package.json b/packages/epcc-schematics-cli/package.json index 802a6957..79b3e03b 100644 --- a/packages/epcc-schematics-cli/package.json +++ b/packages/epcc-schematics-cli/package.json @@ -23,7 +23,7 @@ "dependencies": { "@angular-devkit/core": "^14.1.0", "@angular-devkit/schematics": "^14.1.0", - "@field123/schematics": "^0.4.0", + "@elasticpath/d2c-schematics": "^0.4.0", "ansi-colors": "4.1.3", "inquirer": "8.2.4", "symbol-observable": "4.0.0", diff --git a/packages/epcc-schematics-cli/src/schematics.ts b/packages/epcc-schematics-cli/src/schematics.ts index 3063a362..ed72d29b 100644 --- a/packages/epcc-schematics-cli/src/schematics.ts +++ b/packages/epcc-schematics-cli/src/schematics.ts @@ -31,18 +31,20 @@ import yargsParser, { camelCase, decamelize } from "yargs-parser" * @param str The argument to parse. * @return {{collection: string, schematic: (string)}} */ -function parseSchematicName(str: string | null): { +function parseSchematicName( + str: string | null +): { collection: string schematic: string | null } { - let collection = "@field123/schematics" + let collection = "@elasticpath/d2c-schematics" let schematic = str if (schematic?.includes(":")) { const lastIndexOfColon = schematic.lastIndexOf(":") ;[collection, schematic] = [ schematic.slice(0, lastIndexOfColon), - schematic.substring(lastIndexOfColon + 1), + schematic.substring(lastIndexOfColon + 1) ] } @@ -74,18 +76,18 @@ function _listSchematics( } function _createPromptProvider(): schema.PromptProvider { - return (definitions) => { + return definitions => { const questions: inquirer.QuestionCollection = definitions.map( - (definition) => { + definition => { const question: inquirer.Question = { name: definition.id, message: definition.message, - default: definition.default, + default: definition.default } const validator = definition.validator if (validator) { - question.validate = (input) => validator(input) + question.validate = input => validator(input) } switch (definition.type) { @@ -97,16 +99,16 @@ function _createPromptProvider(): schema.PromptProvider { type: definition.multiselect ? "checkbox" : "list", choices: definition.items && - definition.items.map((item) => { + definition.items.map(item => { if (typeof item == "string") { return item } else { return { name: item.label, - value: item.value, + value: item.value } } - }), + }) } default: return { ...question, type: definition.type } @@ -122,7 +124,7 @@ function _createPromptProvider(): schema.PromptProvider { export async function main({ args, stdout = process.stdout, - stderr = process.stderr, + stderr = process.stderr }: MainOptions): Promise<0 | 1> { const { cliOptions, schematicOptions, _ } = parseArgs(args) console.log("schematic options: ", schematicOptions, cliOptions) @@ -131,11 +133,11 @@ export async function main({ /** Create the DevKit Logger used through the CLI. */ const logger = createConsoleLogger(!!cliOptions.verbose, stdout, stderr, { - info: (s) => s, - debug: (s) => s, - warn: (s) => colors.bold.yellow(s), - error: (s) => colors.bold.red(s), - fatal: (s) => colors.bold.red(s), + info: s => s, + debug: s => s, + warn: s => colors.bold.yellow(s), + error: s => colors.bold.red(s), + fatal: s => colors.bold.red(s) }) if (cliOptions.help) { @@ -145,8 +147,10 @@ export async function main({ } /** Get the collection an schematic name from the first argument. */ - const { collection: collectionName, schematic: schematicName } = - parseSchematicName(_.shift() || null) + const { + collection: collectionName, + schematic: schematicName + } = parseSchematicName(_.shift() || null) console.log("collection and scehamtic: ", collectionName, schematicName) @@ -174,7 +178,7 @@ export async function main({ force, dryRun, resolvePaths: [process.cwd(), __dirname], - schemaValidation: true, + schemaValidation: true }) /** If the user wants to list schematics, we simply show all the schematic names. */ @@ -215,7 +219,7 @@ export async function main({ * * This is a simple way to only show errors when an error occur. */ - workflow.reporter.subscribe((event) => { + workflow.reporter.subscribe(event => { nothingDone = false // Strip leading slash to prevent confusion. const eventPath = event.path.startsWith("/") @@ -263,11 +267,11 @@ export async function main({ /** * Listen to lifecycle events of the workflow to flush the logs between each phases. */ - workflow.lifeCycle.subscribe((event) => { + workflow.lifeCycle.subscribe(event => { if (event.kind == "workflow-end" || event.kind == "post-tasks-start") { if (!error) { // Flush the log queue and clean the error state. - loggingQueue.forEach((log) => logger.info(log)) + loggingQueue.forEach(log => logger.info(log)) } loggingQueue = [] @@ -276,10 +280,10 @@ export async function main({ }) // Show usage of deprecated options - workflow.registry.useXDeprecatedProvider((msg) => logger.warn(msg)) + workflow.registry.useXDeprecatedProvider(msg => logger.warn(msg)) // Pass the rest of the arguments as the smart default "argv". Then delete it. - workflow.registry.addSmartDefaultProvider("argv", (schema) => + workflow.registry.addSmartDefaultProvider("argv", schema => "index" in schema ? _[Number(schema["index"])] : _ ) @@ -304,7 +308,7 @@ export async function main({ options: { ...schematicOptions, skipGit, skipInstall }, allowPrivate: allowPrivate, debug: debug, - logger: logger, + logger: logger }) .toPromise() @@ -380,7 +384,7 @@ const booleanArgs = [ "verbose", "interactive", "skip-install", - "skip-git", + "skip-git" ] as const type ElementType> = T extends ReadonlyArray< @@ -398,18 +402,18 @@ interface Options { /** Parse the command line. */ function parseArgs(args: string[]): Options { const { _, ...options } = yargsParser(args, { - boolean: booleanArgs as unknown as string[], + boolean: (booleanArgs as unknown) as string[], default: { interactive: true, debug: null, - "dry-run": null, + "dry-run": null }, configuration: { "dot-notation": false, "boolean-negation": true, "strip-aliased": true, - "camel-case-expansion": false, - }, + "camel-case-expansion": false + } }) console.log("options inside parseArgs: ", options, args) @@ -440,9 +444,9 @@ function parseArgs(args: string[]): Options { } return { - _: _.map((v) => v.toString()), + _: _.map(v => v.toString()), schematicOptions, - cliOptions, + cliOptions } } @@ -466,8 +470,8 @@ function isTTY(): boolean { if (require.main === module) { const args = process.argv.slice(2) main({ args }) - .then((exitCode) => (process.exitCode = exitCode)) - .catch((e) => { + .then(exitCode => (process.exitCode = exitCode)) + .catch(e => { throw e }) } diff --git a/tsconfig.json b/tsconfig.json index 21424e0d..03b322ee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,7 +29,7 @@ "./*/other-files/**/*", "./*/project-files/**/*", "./*/schematic-files/**/*", - "packages/schematics/node_modules", + "packages/d2c-schematics/node_modules", "dist", "**/node_modules/**/*", "**/dist/**/*",