Skip to content

Commit

Permalink
yaml mode (Azure#34)
Browse files Browse the repository at this point in the history
* yaml mode

* regen script

* regen
  • Loading branch information
olydis authored Nov 13, 2017
1 parent aad38dd commit c2a8d42
Show file tree
Hide file tree
Showing 54 changed files with 203,081 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gulp/common.iced
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ Import
github_apikey: argv.github_apikey or process.env.GITHUB_APIKEY or null
nuget_apikey: argv.nuget_apikey or process.env.NUGET_APIKEY or null
npm_apikey: argv.npm_apikey or process.env.NPM_APIKEY or null
autorest_home: process.env["autorest.home"]
today: moment().format('YYYYMMDD')
now: moment().format('YYYYMMDD-HHmm')
force: argv.force or false
Expand Down
1 change: 1 addition & 0 deletions .gulp/regeneration.iced
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ regenExpected = (opts,done) ->
"--standalone-modeler",
"--clear-output-folder",
"--output-artifact=code-model-v1.yaml",
"--output-artifact=code-model-v1-yaml.yaml",
"--output-folder=#{opts.outputDir}/#{key}"
]

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/Azure/autorest.modeler/blob/master/README.md",
"devDependencies": {
"@microsoft.azure/autorest.testserver": "2.3.1",
"autorest": "^2.0.4194",
"autorest": "^2.0.4198",
"coffee-script": "^1.11.1",
"dotnet-sdk-2.0.0": "^1.4.4",
"gulp": "^3.9.1",
Expand All @@ -49,4 +49,4 @@
"dependencies": {
"dotnet-2.0.0": "^1.4.4"
}
}
}
23 changes: 23 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio

# AutoRest extension configuration

Emitter configuration:

``` yaml
scope-cm/emitter:
input-artifact: code-model-v1
is-object: true
output-uri-expr: |
"code-model-v1"
scope-cm-yaml/emitter:
input-artifact: code-model-v1-yaml
is-object: true
output-uri-expr: |
"code-model-v1-yaml"
```
## Run it as a standalone (good for testing)
``` yaml $(standalone-modeler)
Expand All @@ -32,6 +48,13 @@ pipeline:
standalone/cm/emitter:
input: transform
scope: scope-cm/emitter

standalone/cm/jsonx2yaml:
input: transform
output-artifact: code-model-v1-yaml
standalone/cm-yaml/emitter:
input: cm/jsonx2yaml
scope: scope-cm-yaml/emitter
```
## Run it before generator
Expand Down
Loading

0 comments on commit c2a8d42

Please sign in to comment.