Yarn round 2 (#16)
* switched to yarn for publishing * WIP * cleaned up
This commit is contained in:
Родитель
0d204ae64d
Коммит
b8625a60d2
|
@ -289,4 +289,10 @@ __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
|
||||||
|
|
16
.npmignore
16
.npmignore
|
@ -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/
|
||||||
|
yarn.lock
|
||||||
|
|
||||||
src/obj/
|
*.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"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче