Skip to content

Commit

Permalink
Add extension build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Nov 25, 2019
1 parent 9dbb30e commit 24e826a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions extensions/search-result/extension.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

//@ts-check

'use strict';

const withDefaults = require('../shared.webpack.config');

module.exports = withDefaults({
context: __dirname,
resolve: {
mainFields: ['module', 'main']
},
entry: {
extension: './src/extension.ts',
}
});
3 changes: 3 additions & 0 deletions extensions/search-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"activationEvents": [
"*"
],
"scripts": {
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:search-result ./tsconfig.json"
},
"contributes": {
"commands": [
{
Expand Down

0 comments on commit 24e826a

Please sign in to comment.