Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Test webpack memory alloc #1735

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ jobs:
# uses: mxschmitt/action-tmate@v3
- name: task package
id: package
run: task package ${{ matrix.env.TASKFILE_ARGS }}
run: |
export NODE_OPTIONS="--max-old-space-size=8192"
task package ${{ matrix.env.TASKFILE_ARGS }}

- name: task ${{ matrix.task-name }}
if: "${{ !contains(matrix.name, 'test') }}"
Expand Down
2 changes: 2 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ sonar.cpd.exclusions=\
src/features/lightspeed/roleGeneration.ts, \
src/features/contentCreator/createSampleExecutionEnvPage.ts, \
src/webview/apps/contentCreator/createSampleExecutionEnvPageApp.ts, \
src/features/contentCreator/addPluginPage.ts, \
src/webview/apps/contentCreator/addPluginPageApp.ts, \
test/ui-test/*.ts
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
!media/contentCreator/createAnsibleProjectPageStyle.css
!media/contentCreator/createDevfilePageStyle.css
!media/contentCreator/createSampleExecutionEnvPageStyle.css
!media/contentCreator/addPluginPageStyle.css
!media/contentCreator/welcomePageStyle.css
!media/lightspeedExplorerView/style.css
!media/quickLinks/lightspeed.png
Expand All @@ -46,6 +47,7 @@
!out/client/webview/apps/contentCreator/createAnsibleProjectPageApp.js
!out/client/webview/apps/contentCreator/createDevfilePageApp.js
!out/client/webview/apps/contentCreator/createSampleExecutionEnvPageApp.js
!out/client/webview/apps/contentCreator/addPluginPageApp.js
!out/client/webview/apps/quickLinks/quickLinksApp.js
!out/client/webview/apps/welcomePage/welcomePageApp.js
!out/server/src/server.js
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ tasks:
generates:
- "*.vsix"
cmds:
- echo $NODE_OPTIONS
- export NODE_OPTIONS="--max-old-space-size=8192"
- task: build
# while not a real dependency, we want to build both all the time:
- task: als:package
Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ ignore:
- src/webview/apps/contentCreator/createAnsibleProjectPageApp.ts
- src/webview/apps/contentCreator/createDevfilePageApp.ts
- src/webview/apps/contentCreator/createSampleExecutionEnvPageApp.ts
- src/webview/apps/contentCreator/addPluginPageApp.ts
- src/webview/apps/welcomePage/welcomePageApp.ts
- src/webview/apps/quickLinks/quickLinksApp.ts
111 changes: 111 additions & 0 deletions media/contentCreator/addPluginPageStyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
@import url(../baseStyles/baseFormStyle.css);

.container {
display: flex;
flex-direction: column;
}

.element {
margin-bottom: 14px;
}

vscode-text-field {
margin-top: 6px;
margin-bottom: 6px;
}

vscode-text-area {
margin-top: 6px;
margin-bottom: 6px;
}

.plugin-name-div {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}

#plugin-name {
width:49%;
display:inline-block;
}

.plugin-type-div {
display: flex; /* Use flexbox */
flex-direction: row; /* Arrange child elements vertically */
margin-top: 12px;
margin-bottom: 30px;
width: 100%;
}

.checkbox-div {
display: flex; /* Use flexbox */
flex-direction: column; /* Arrange child elements vertically */
margin-top: 22px;
margin-bottom: 10px;
width: 100%;
}

.verbose-div {
display: flex; /* Use flexbox */
flex-direction: row; /* Arrange child elements vertically */
margin-top: 12px;
margin-bottom: 30px;
width: 100%;
}

vscode-dropdown {
width: 200px;
}

.full-collection-path {
display: flex; /* Use flexbox */
flex-direction: row; /* Arrange child elements vertically */
color: var(--vscode-descriptionForeground);
}

.required-fields {
margin-top: 10px;
color: var(--vscode-descriptionForeground);
}

.group-buttons {
display: flex; /* Use flexbox */
flex-direction: row; /* Arrange child elements vertically */
}

.p-collection-name {
font-style: italic;
}

vscode-button {
margin: 0px 3px;
}

vscode-checkbox i {
color: var(--vscode-descriptionForeground);
font-size: small;
}

#ade-docs-link {
margin-left: 30px;
font-style: italic;
}

.dropdown-container {
box-sizing: border-box;
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
justify-content: flex-start;
}

.dropdown-container label {
display: block;
color: var(--vscode-foreground);
cursor: pointer;
font-size: var(--vscode-font-size);
line-height: normal;
margin-bottom: 2px;
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@
"command": "ansible.content-creator.create-sample-execution-env-file",
"title": "Ansible: Create a Sample Execution Environment file"
},
{
"command": "ansible.content-creator.add-plugin",
"title": "Ansible: Add a Plugin"
},
{
"command": "ansible.content-creator.create",
"title": "Ansible Content Creator: Create"
Expand Down
11 changes: 11 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { showPlaybookGenerationPage } from "./features/lightspeed/playbookGenera
import { showRoleGenerationPage } from "./features/lightspeed/roleGeneration";
import { ExecException, execSync } from "child_process";
import { CreateAnsibleProject } from "./features/contentCreator/createAnsibleProjectPage";
import { AddPlugin } from "./features/contentCreator/addPluginPage";
// import { LightspeedExplorerWebviewViewProvider } from "./features/lightspeed/explorerWebviewViewProvider";
import {
LightspeedUser,
Expand Down Expand Up @@ -561,6 +562,16 @@ export async function activate(context: ExtensionContext): Promise<void> {
),
);

// open web-view for adding a plugin in an ansible collection
context.subscriptions.push(
vscode.commands.registerCommand(
"ansible.content-creator.add-plugin",
() => {
AddPlugin.render(context.extensionUri);
},
),
);

// open ansible-creator create
context.subscriptions.push(
vscode.commands.registerCommand("ansible.content-creator.create", () => {
Expand Down
Loading
Loading