Родитель
cfabb171c3
Коммит
2ed83ace22
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче