* switched to yarn for publishing

* WIP

* cleaned up
This commit is contained in:
Garrett Serack 2017-09-22 16:18:21 -07:00 коммит произвёл GitHub
Родитель 0d204ae64d
Коммит b8625a60d2
4 изменённых файлов: 29 добавлений и 8 удалений

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

@ -290,3 +290,9 @@ __pycache__/
package-lock.json package-lock.json
*.tgz *.tgz
yarn.lock yarn.lock
package/
*.tar
*.tgz
src/obj/
*.log

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

@ -1,8 +1,9 @@
task 'publish-preview', '', ['version-number'] , (done) -> task 'publish-preview', '', ['version-number','build'] , (done) ->
package_json = require "#{basefolder}/package.json" package_json = require "#{basefolder}/package.json"
# Note : this will call the npm prepare task, which will call # move .gitignore out of the way - yarn bug
rm "-f", "#{basefolder}/.gitignore"
execute "#{basefolder}/node_modules/.bin/yarn publish --tag preview --new-version #{version} --access public ",{cwd:basefolder, silent:false }, (c,o,e) -> execute "#{basefolder}/node_modules/.bin/yarn publish --tag preview --new-version #{version} --access public ",{cwd:basefolder, silent:false }, (c,o,e) ->
echo "\n\nPublished: #{package_json.name}@#{info version} (tagged as @preview)\n\n" echo "\n\nPublished: #{package_json.name}@#{info version} (tagged as @preview)\n\n"
done() # bring back .gitignore!
execute "git checkout #{basefolder}/.gitignore",{cwd:basefolder, silent:true }, done

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

@ -1,7 +1,21 @@
.gulp/ .gulp/
.vscode/ .vscode/
src/JsonConverters/
src/Model/
src/Properties/
test/ test/
package/
*.tar
*.tgz
gulpfile.js gulpfile.js
*.sln *.sln
*.cs
*.resx
src/obj/ src/obj/
yarn.lock
*.log
*.csproj
src/Model/License.cs

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

@ -41,8 +41,8 @@
"run-sequence": "*", "run-sequence": "*",
"shx": "^0.2.2", "shx": "^0.2.2",
"through2-parallel": "^0.1.3", "through2-parallel": "^0.1.3",
"yarn": "^1.0.2", "yargs": "^8.0.2",
"yargs": "^8.0.2" "yarn": "^1.0.2"
}, },
"dependencies": { "dependencies": {
"dotnet-2.0.0": "^1.1.0" "dotnet-2.0.0": "^1.1.0"