Skip to content

Commit

Permalink
feat(core): add keepExistingVersions to all packages (#21169)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Jan 17, 2024
1 parent 544a2c4 commit 6141f44
Show file tree
Hide file tree
Showing 104 changed files with 527 additions and 74 deletions.
6 changes: 6 additions & 0 deletions docs/generated/packages/angular/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"additionalProperties": false,
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/cypress/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"presets": []
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/detox/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/esbuild/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
14 changes: 13 additions & 1 deletion docs/generated/packages/eslint/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,19 @@
"title": "Initialize ESLint Plugin",
"description": "Set up the ESLint plugin.",
"type": "object",
"properties": {},
"properties": {
"skipPackageJson": {
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
"presets": []
},
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/expo/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`."
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/express/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"type": "boolean",
"default": false,
"description": "Do not add dependencies to `package.json`."
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/jest/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/js/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"description": "Skip adding package.json dependencies",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
},
"tsConfigName": {
"type": "string",
"description": "Customize the generated tsconfig file name.",
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/nest/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"additionalProperties": false,
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/next/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/node/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/nuxt/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/playwright/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"default": false,
"description": "Do not add dependencies to `package.json`.",
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/react-native/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/react/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/remix/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/rollup/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/storybook/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"presets": []
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/vite/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"presets": []
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/vue/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/web/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"type": "boolean",
"default": false,
"x-priority": "internal"
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/packages/webpack/generators/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"description": "Do not add dependencies to `package.json`.",
"type": "boolean",
"default": false
},
"keepExistingVersions": {
"type": "boolean",
"x-priority": "internal",
"description": "Keep existing dependencies versions",
"default": false
}
},
"required": [],
Expand Down
31 changes: 30 additions & 1 deletion e2e/vite/src/vite-pcv3.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { cleanupProject, newProject, runCLI, uniq } from '@nx/e2e/utils';
import {
cleanupProject,
killProcessAndPorts,
newProject,
runCLI,
runCommandUntil,
uniq,
} from '@nx/e2e/utils';
import { ChildProcess } from 'child_process';

const myApp = uniq('my-app');
const myVueApp = uniq('my-vue-app');
Expand Down Expand Up @@ -46,4 +54,25 @@ describe('@nx/vite/plugin', () => {
expect(result).toContain('Successfully ran target test');
}, 200_000);
});

it('should run serve-static', async () => {
let process: ChildProcess;
const port = 8081;

try {
process = await runCommandUntil(
`serve-static ${myApp} --port=${port}`,
(output) => {
return output.includes(`http://localhost:${port}`);
}
);
} catch (err) {
console.error(err);
}

// port and process cleanup
if (process && process.pid) {
await killProcessAndPorts(process.pid, port);
}
});
});
Loading

1 comment on commit 6141f44

@vercel
Copy link

@vercel vercel bot commented on 6141f44 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.