* launch config

* rel

* fix

* ci script
This commit is contained in:
Johannes Bader 2017-09-22 13:28:22 -07:00 коммит произвёл GitHub
Родитель cfabb171c3
Коммит 2ed83ace22
8 изменённых файлов: 41 добавлений и 8 удалений

3
.gitignore поставляемый
Просмотреть файл

@ -287,4 +287,5 @@ __pycache__/
*.odx.cs
*.xsd.cs
package-lock.json
package-lock.json
*.tgz

Просмотреть файл

@ -31,9 +31,9 @@ dotnet = (cmd) ->
# Tasks
task 'build','dotnet',['restore'], (done) ->
execute "dotnet build -c #{configuration} #{solution} /nologo /clp:NoSummary", (code, stdout, stderr) ->
execute "dotnet publish -c #{configuration} #{sourceFolder} --output #{sourceFolder}/bin/netcoreapp2.0 /nologo /clp:NoSummary ", (code, stdout, stderr) ->
task 'build','dotnet',['restore', 'version-number'], (done) ->
execute "dotnet build -c #{configuration} #{solution} /nologo /clp:NoSummary /p:VersionPrefix=#{version}", (code, stdout, stderr) ->
execute "dotnet publish -c #{configuration} #{sourceFolder} --output #{sourceFolder}/bin/netcoreapp2.0 /nologo /clp:NoSummary /p:VersionPrefix=#{version}", (code, stdout, stderr) ->
done()
task 'clear-cache-on-force', '', (done)->

Просмотреть файл

@ -3,6 +3,7 @@ require './common.iced'
# ==============================================================================
# tasks required for this build
Tasks "dotnet" # dotnet functions
Tasks "publishing"
# ==============================================================================
# Settings

15
.gulp/publishing.iced Normal file
Просмотреть файл

@ -0,0 +1,15 @@
task 'publish-preview', '', ['version-number'] , (done) ->
package_path = "#{basefolder}/package.json"
package_folder = "#{basefolder}"
# 1. update the patch number
package_json = require package_path
package_json.version = version
JSON.stringify(package_json,null,' ').to package_path
# 2. call npm publish --tag preview
# Note : this will call the npm prepare task, which will call
execute "npm publish --tag preview",{cwd:package_folder, silent:false }, (c,o,e) ->
echo "\n\nPublished: #{package_json.name}@#{info package_json.version} (tagged as @preview)\n\n"
done()

14
.vscode/launch.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,14 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}

Просмотреть файл

@ -1,12 +1,14 @@
{
"name": "@microsoft.azure/autorest.modeler",
"version": "1.9.8",
"version": "2.0.0",
"description": "The modeler extension for classic generators in AutoRest.",
"scripts": {
"start": "dotnet src/bin/netcoreapp2.0/autorest.modeler.dll --server",
"test": "gulp test",
"testci": "gulp test",
"build": "gulp build",
"prepare": "gulp build",
"publish-preview": "gulp publish-preview",
"clean": "gulp clean",
"nuke": "git clean -xdf"
},
@ -44,4 +46,4 @@
"dependencies": {
"dotnet-2.0.0": "^1.1.0"
}
}
}

Просмотреть файл

@ -4,7 +4,7 @@
<PropertyGroup>
<AssemblyName>autorest.modeler</AssemblyName>
<PackageTags>autorest.extension</PackageTags>
<VersionPrefix>1.2.2</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
<GenerateFullPaths>true</GenerateFullPaths>
<Common>$(MsBuildThisFileDirectory)</Common>

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" >
<PropertyGroup>
<VersionPrefix>1.2.2</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
<GenerateFullPaths>true</GenerateFullPaths>
<Common>$(MsBuildThisFileDirectory)</Common>
<SolutionDir>$(Common)../</SolutionDir>