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

[node] Create vercel-plugin-node #6874

Merged
merged 31 commits into from Nov 8, 2021
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e536f76
[node] Refactor to Vercel CLI Plugin
TooTallNate Oct 21, 2021
9792aca
Enforce "index" suffix on output Serverless Functions
TooTallNate Oct 22, 2021
7c1b820
Some cleanup
TooTallNate Oct 22, 2021
cb6e795
Add version
TooTallNate Oct 23, 2021
202ef5e
Use `@vercel/static-config`
TooTallNate Oct 24, 2021
239407e
.
TooTallNate Oct 24, 2021
15a29c9
Add support for wildcard routes
TooTallNate Oct 25, 2021
41bcdac
Don't compile dotfiles, underscore prefixed files, files within `node…
TooTallNate Oct 26, 2021
86929d4
Bump version
TooTallNate Oct 26, 2021
b4bc8f2
Merge branch 'main' of github.com:vercel/vercel into update/vercel-pl…
TooTallNate Oct 30, 2021
2b85a25
Introduce testing framework
TooTallNate Nov 3, 2021
0e1bb16
Debug
TooTallNate Nov 3, 2021
cc1b83e
Add test without any deps
TooTallNate Nov 3, 2021
198077a
Longer timeout to install Node.js for vercel/fun
TooTallNate Nov 3, 2021
b022a47
Install deps
TooTallNate Nov 3, 2021
e4da500
Add legacy Node.js server interface test
TooTallNate Nov 3, 2021
a47c6e9
More tests
TooTallNate Nov 3, 2021
a44fdbc
Test "assets" fixture
TooTallNate Nov 3, 2021
ce8f346
Test "helpers" fixture
TooTallNate Nov 3, 2021
dace4e4
fix
TooTallNate Nov 3, 2021
bc1b8c1
Support AWS native API
TooTallNate Nov 4, 2021
89c7415
Remove debugging `console.log()` calls
TooTallNate Nov 5, 2021
5d40273
Merge branch 'main' into update/vercel-plugin-node
AndyBitz Nov 5, 2021
f317b8c
Use plugin-node for new plugin instead
AndyBitz Nov 5, 2021
aa79775
Revert "Use plugin-node for new plugin instead"
AndyBitz Nov 5, 2021
877e11b
Move to `plugin-node` directory
AndyBitz Nov 8, 2021
67004de
Merge branch 'main' into update/vercel-plugin-node
AndyBitz Nov 8, 2021
64daf2d
Update plugin-node version in package.json
AndyBitz Nov 8, 2021
51e401f
Checkout node from main
AndyBitz Nov 8, 2021
2f6d62f
Add yarn.lock files for tests
AndyBitz Nov 8, 2021
f278f8d
Update node-bridge
AndyBitz Nov 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest": "24.3.6",
"husky": "6.0.0",
"jest": "27.0.6",
"jest": "27.3.1",
"json5": "2.1.1",
"lint-staged": "9.2.5",
"node-fetch": "2.6.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/node/.gitignore
@@ -1,3 +1,6 @@
/dist
/test/fixtures/**/.env
/test/fixtures/**/.gitignore
/test/fixtures/**/.output
/test/fixtures/**/types.d.ts
/test/fixtures/11-symlinks/symlink
6 changes: 0 additions & 6 deletions packages/node/build.js
Expand Up @@ -22,12 +22,6 @@ async function main() {
fs.copyFile(join(bridgeDir, 'launcher.js'), join(outDir, 'launcher.js')),
]);

// Copy type file for ts test
await fs.copyFile(
join(outDir, 'types.d.ts'),
join(__dirname, 'test/fixtures/15-helpers/ts/types.d.ts')
);

// Setup symlink for symlink test
const symlinkTarget = join(__dirname, 'test/fixtures/11-symlinks/symlink');
await fs.remove(symlinkTarget);
Expand Down
35 changes: 27 additions & 8 deletions packages/node/package.json
@@ -1,6 +1,6 @@
{
"name": "@vercel/node",
"version": "1.12.2-canary.4",
"name": "vercel-plugin-node",
AndyBitz marked this conversation as resolved.
Show resolved Hide resolved
"version": "1.12.2-canary.6",
"license": "MIT",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
Expand All @@ -11,8 +11,7 @@
},
"scripts": {
"build": "node build",
"test-unit": "jest --env node --verbose --runInBand --bail test/helpers.test.js",
"test-integration-once": "jest --env node --verbose --runInBand --bail test/integration.test.js",
"test-unit": "jest --env node --verbose --runInBand --bail",
"prepublishOnly": "node build"
},
"files": [
Expand All @@ -26,21 +25,41 @@
"devDependencies": {
"@babel/core": "7.5.0",
"@babel/plugin-transform-modules-commonjs": "7.5.0",
"@tootallnate/once": "1.1.2",
"@tootallnate/once": "2.0.0",
"@types/aws-lambda": "8.10.19",
"@types/content-type": "1.1.3",
"@types/cookie": "0.3.3",
"@types/etag": "1.8.0",
"@types/jest": "27.0.2",
"@types/node-fetch": "2",
"@types/test-listen": "1.1.0",
"@vercel/fun": "1.0.1",
"@vercel/ncc": "0.24.0",
"@vercel/nft": "0.14.0",
"@vercel/node-bridge": "2.1.1-canary.1",
"@vercel/static-config": "0.0.1-canary.0",
"abort-controller": "3.0.0",
"content-type": "1.0.4",
"cookie": "0.4.0",
"etag": "1.8.1",
"mkdirp-promise": "5.0.1",
"node-fetch": "2.6.1",
"json-schema-to-ts": "1.6.4",
"node-fetch": "2",
"source-map-support": "0.5.12",
"test-listen": "1.1.0"
"test-listen": "1.1.0",
"ts-morph": "12.0.0"
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"diagnostics": false,
"isolatedModules": true
}
},
"verbose": false,
"testEnvironment": "node",
"testMatch": [
"<rootDir>/test/**/*.test.[jt]s"
]
}
}