You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ls -g --depth=0
/Users/splaktar/.nvm/versions/node/v10.11.0/lib
├── @angular-devkit/schematics-cli@0.9.0-rc.3
├── @angular/cli@7.0.0-rc.3
Repro steps
Create a new schematics project using schematics schematic --name=test-schematic.
cd test-schematic
npm i
npm run build
schematics .:my-full-schematic --name=test
The log given by the failure
schematics .:my-full-schematic --name=test
My Full Schematic: {"name":"test","index":1}
My Other Schematic: {"option":true}
My Schematic: {"option":true}
CREATE /hola (5 bytes)
CREATE /allo (5 bytes)
CREATE /test2 (34 bytes)
CREATE /test1 (18 bytes)
You can see above that is at least outputs the --dryRun results, but since I didn't specify --dryRun, it should commit them to disk. I also tried with --dryRun=false but the behavior was the same.
devintent:test-schematic splaktar$ ls
README.md node_modules package-lock.json package.json src tsconfig.json
devintent:test-schematic splaktar$ ls /
Applications System Volumes dev installer.failurerequests private usr
Library User Information bin etc net sbin var
Network Users cores home opt tmp
You can see above that there are no files named hola, allo, etc.
Desired functionality
I should be able to run a schematic locally when authoring/testing a schematic and see the output get committed to disk if there are no errors.
Mention any other details that might be useful
I also saw this with @angular-devkit/schematics-cli@0.9.0-rc.2.
The text was updated successfully, but these errors were encountered:
@Splaktar I have looked into this, and since the you are running the schematic locally, by default it will be running in a dry run To disable this you need to use --dry-run=false.
I noticed that at the moment only kebab case args are available, I'll do a PR to address this.
…ents
At the moment, only kebab case args works, and this might be misleading if you come from the Angular CLI. As for instance `--dryRun` will have no effect.
Fixes#12599
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
schematics schematic --name=test-schematic
.cd test-schematic
npm i
npm run build
schematics .:my-full-schematic --name=test
The log given by the failure
You can see above that is at least outputs the
--dryRun
results, but since I didn't specify--dryRun
, it should commit them to disk. I also tried with--dryRun=false
but the behavior was the same.You can see above that there are no files named
hola
,allo
, etc.Desired functionality
I should be able to run a schematic locally when authoring/testing a schematic and see the output get committed to disk if there are no errors.
Mention any other details that might be useful
I also saw this with
@angular-devkit/schematics-cli@0.9.0-rc.2
.The text was updated successfully, but these errors were encountered: