-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/project initializer service (#158)
* fix: npm login previously the login on publish was broken with new versions of npm. Now it will launch a terminal window for the user to login, which will launch the login flow. Also it now distributes and installs npm as necessary so we no longer need npm in order to install it. next we can provide it as a full gui desktop app. * feat: added project initializer service * added prompt to select npm account * improved styling of npm account chooser dialog * Update integration_tests.yml Removed java 8 pipelines. Will no longer be supported * removed npm account management out of core and into the gui app * added jdk 8 back to integration tests * promptForNpmAccount now returns boolean. false indicates cancel publish
- Loading branch information
Showing
20 changed files
with
2,162 additions
and
434 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
SCRIPTPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
echo "Adding $SCRIPTPATH to PATH" | ||
export PATH=$SCRIPTPATH:$PATH |
File renamed without changes.
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
17 changes: 17 additions & 0 deletions
17
cli/src/main/java/ca/weblite/jdeploy/cli/controllers/NPMLoginController.java
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ca.weblite.jdeploy.cli.controllers; | ||
|
||
import ca.weblite.jdeploy.npm.NPM; | ||
|
||
import java.io.IOException; | ||
|
||
public class NPMLoginController { | ||
|
||
public void run() { | ||
NPM npm = new NPM(System.out, System.err, true); | ||
try { | ||
npm.startInteractiveLogin(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.