feat(commerce): daff.json specifies driver version for angular.json - #4452
joannalauu wants to merge 11 commits into
Conversation
b707f52 to
7ed69f3
Compare
7ed69f3 to
bba9b73
Compare
aaca7f3 to
13b3378
Compare
|
blocked by graycoreio/github-actions#19 |
dfcfab5 to
0a23f16
Compare
0a23f16 to
8dbd2c2
Compare
griest024
left a comment
There was a problem hiding this comment.
@damienwebdev I've implemented the builders
| "architect": { | ||
| "build": { | ||
| "builder": "@angular/build:application", | ||
| "builder": "./dist/commerce:application", |
| }, | ||
| "devDependencies": { | ||
| "@daffodil/branding": "0.0.0-PLACEHOLDER", | ||
| "@daffodil/commerce": "0.0.0-PLACEHOLDER", |
8dbd2c2 to
d076585
Compare
|
@damienwebdev hang on I'm fixing the schematic |
|
@damienwebdev ready |
|
|
||
| private inmemoryDriver = inject(DaffExternalRouterInMemoryDriver); | ||
| private magentoDriver = inject(DaffExternalRouterMagentoDriver); | ||
| private magentoDriver = inject<DaffExternalRouterDriverInterface>(DaffExternalRouterDriver); |
| { type: NodeDependencyType.Default, version: `^${version}`, name: '@daffodil/dev-tools' }, | ||
| { type: NodeDependencyType.Default, version: `^${version}`, name: '@daffodil/navigation' }, | ||
| { type: NodeDependencyType.Default, version: `^${version}`, name: '@daffodil/external-router' }, | ||
| { type: NodeDependencyType.Dev, version: `^${version}`, name: '@daffodil/cli' }, |
| return tree; | ||
| }; | ||
|
|
||
| export const addBuildCondition = (options: NgAddOptions, projectName_: string): Rule => { |
There was a problem hiding this comment.
This function is poorly named.
| } | ||
| }, | ||
| "else": { | ||
| "if": { |
There was a problem hiding this comment.
We don't target different shopify versions at the moment. Remove this until we do.
| writeFile, | ||
| } from 'fs/promises'; | ||
| import { join } from 'path'; | ||
| import type { PackageJson } from 'type-fest'; |
There was a problem hiding this comment.
Please remove this dep and just do a loose PackageJson type. Maybe one day node gets this on its own somehow.
| writeFile, | ||
| } from 'fs/promises'; | ||
| import { join } from 'path'; | ||
| import type { PackageJson } from 'type-fest'; |
There was a problem hiding this comment.
Move this to application build time as opposed to ahead of build time. We'll need an allowlist key on the options of the builder's to know what can be searched for. Obviously we can allowlist @daffodil by default.
| import { isSupportedPlatform } from '../../../versioning/public_api'; | ||
| import { NgAddOptions } from '../../schema'; | ||
|
|
||
| const shouldScaffoldDaffConfig = (options: NgAddOptions): boolean => |
There was a problem hiding this comment.
Let's extract the generator changes to another PR.
PR Checklist
PR Type
Current behavior
Fixes: #4437
New behavior
Breaking change?
Additional context
claude was using in the making of this PR.
no docs yet and needs to be pieced up for final merging but is ready for a review of the general idea and functionality