-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the packaging scripts to support extensions
- Loading branch information
1 parent
7d22571
commit ae81aea
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2014-2016 Simon Edwards <[email protected]> | ||
* Copyright 2014-2017 Simon Edwards <[email protected]> | ||
* | ||
* This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. | ||
*/ | ||
|
@@ -33,7 +33,9 @@ function main() { | |
|
||
echo("Fetching a clean copy of the source code from " + gitUrl); | ||
cd(BUILD_TMP); | ||
const buildTmpPath = pwd(); | ||
|
||
// For some reason pwd() is returning "not quite strings" which path.join() doesn't like. Thus "" + ... | ||
const buildTmpPath = "" + pwd(); | ||
|
||
exec("git clone --depth 1 " + gitUrl); | ||
|
||
|
@@ -42,12 +44,15 @@ function main() { | |
cd("extraterm"); | ||
echo("Downloading dependencies."); | ||
exec("npm install"); | ||
exec("npm run npm-install-extensions"); | ||
|
||
echo("Building"); | ||
exec("npm run build"); | ||
|
||
exec("npm run build-extensions"); | ||
|
||
echo("Removing development dependencies"); | ||
exec("npm prune --production"); | ||
exec("npm run npm-prune-extensions"); | ||
|
||
// Create the commands zip | ||
echo("Creating commands.zip"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters