Skip to content

Commit

Permalink
Add prepublish script for vsce
Browse files Browse the repository at this point in the history
Also removed "build" dependency from "release" task since "vsce:prepublish" script will do build
  • Loading branch information
Vladimir Kotikov committed Sep 11, 2017
1 parent b430280 commit 06b5a5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,8 +1,9 @@
.DS_Store
.idea
*.vsix
node_modules/
out/
test/testProject/.vscode/
test/testProject/platforms/
test/testProject/plugins/
test/testProject/typings/
test/testProject/typings/
2 changes: 1 addition & 1 deletion gulpfile.js
Expand Up @@ -125,7 +125,7 @@ gulp.task('watch-build-test', ['build', 'build-test'], function() {
return gulp.watch(sources, ['build', 'build-test']);
});

gulp.task('release', ['build'], function () {
gulp.task('release', function () {
var licenseFiles = ["LICENSE.txt", "ThirdPartyNotices.txt"];
var backupFolder = path.resolve(path.join(os.tmpdir(), 'vscode-cordova'));
if (!fs.existsSync(backupFolder)) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -439,7 +439,8 @@
"scripts": {
"compile": "node ./node_modules/gulp/bin/gulp",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/mocha/bin/mocha --recursive -u bdd ./out/test/debugger"
"test": "node ./node_modules/mocha/bin/mocha --recursive -u bdd ./out/test/debugger",
"vscode:prepublish": "gulp"
},
"dependencies": {
"cordova-simulate": "^0.3.0",
Expand Down

0 comments on commit 06b5a5a

Please sign in to comment.