Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit d0a6300

Browse files
chore: Monorepo restructure (#534)
1 parent d6214a4 commit d0a6300

File tree

619 files changed

+11531
-12798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

619 files changed

+11531
-12798
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ jobs:
3232
#*/*/node_modules
3333
#key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
3434
- run: yarn --frozen-lockfile
35-
- run: cd integration/app-with-serverless-offline && yarn --frozen-lockfile && cd ../../
3635
- run: yarn test
3736
- run: yarn integration

documentation/yarn.lock

Lines changed: 0 additions & 9658 deletions
This file was deleted.

integration/__tests__/local-deploy.test.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

integration/app-with-serverless-offline/.serverless_plugins/serverless-nextjs-plugin.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

integration/app-with-serverless-offline/next.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

integration/app-with-serverless-offline/package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

integration/app-with-serverless-offline/pages/_error.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

integration/app-with-serverless-offline/pages/about.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

integration/app-with-serverless-offline/pages/categories/fridge/fridges.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

integration/app-with-serverless-offline/pages/index.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

integration/app-with-serverless-offline/pages/post.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

integration/app-with-serverless-offline/serverless.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

integration/app-with-serverless-offline/yarn.lock

Lines changed: 0 additions & 7 deletions
This file was deleted.

jest.integration.config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"testMatch": ["**/integration/**/*.test.[jt]s?(x)"],
3-
"watchPathIgnorePatterns": ["/fixture/"],
4-
"modulePathIgnorePatterns": ["<rootDir>/integration/basic-app"]
3+
"watchPathIgnorePatterns": ["/fixture/"]
54
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"npmClientArgs": ["--no-package-lock"]
1212
}
1313
},
14-
"packages": ["packages/*"]
14+
"packages": ["packages/compat-layers/*", "packages/serverless-components/*", "packages/libs/*", "packages/deprecated/*"]
1515
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"homepage": "https://github.com/danielcondemarin/serverless-next.js#readme",
4040
"devDependencies": {
4141
"@babel/preset-typescript": "^7.10.4",
42-
"@sls-next/lambda-at-edge": "link:./packages/lambda-at-edge",
43-
"@sls-next/next-aws-cloudfront": "link:./packages/lambda-at-edge-compat",
42+
"@sls-next/lambda-at-edge": "link:./packages/libs/lambda-at-edge",
43+
"@sls-next/next-aws-cloudfront": "link:./packages/compat-layers/lambda-at-edge-compat",
4444
"@types/fs-extra": "^9.0.1",
4545
"@types/jest": "^26.0.3",
4646
"@types/react": "^16.9.41",
@@ -78,8 +78,8 @@
7878
},
7979
"coverageDirectory": "<rootDir>/coverage/",
8080
"coveragePathIgnorePatterns": [
81-
"<rootDir>/packages/serverless-plugin/utils/yml/cfSchema.js",
82-
"<rootDir>/packages/serverless-plugin/utils/test",
81+
"<rootDir>/packages/deprecated/serverless-plugin/utils/yml/cfSchema.js",
82+
"<rootDir>/packages/deprecated/serverless-plugin/utils/test",
8383
"/.serverless_nextjs/",
8484
"/fixtures/",
8585
"/fixture/",
@@ -92,6 +92,7 @@
9292
"/fixtures/"
9393
],
9494
"testPathIgnorePatterns": [
95+
"<rootDir>/packages/deprecated/serverless-plugin/*",
9596
"/.next/",
9697
"/node_modules/",
9798
"/fixtures/",

packages/apigw-lambda-compat/package.json renamed to packages/compat-layers/apigw-lambda-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"repository": {
2121
"type": "git",
2222
"url": "git+https://github.com/danielcondemarin/serverless-next.js.git",
23-
"directory": "packages/next-aws-lambda"
23+
"directory": "packages/compat-layers/apigw-lambda-compat"
2424
},
2525
"author": "Daniel Conde Marin <[email protected]>",
2626
"license": "MIT"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+

packages/lambda-at-edge-compat/package.json renamed to packages/compat-layers/lambda-at-edge-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"repository": {
1111
"type": "git",
1212
"url": "git+https://github.com/danielcondemarin/serverless-next.js.git",
13-
"directory": "packages/lambda-at-edge-compat"
13+
"directory": "packages/compat-layers/lambda-at-edge-compat"
1414
},
1515
"keywords": [
1616
"AWS",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
"@types/aws-lambda@^8.10.50":
6+
version "8.10.59"
7+
resolved "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.59.tgz#64f602aef1cac9b21a74aad6705bf350c4a5173a"
8+
integrity sha512-X/JclTKqHvo3nMTkHzClHhRz0yxn/VAr7J7LO6jBqaksZlhcDAWuU4oT1Yrt3E9MvX5jyyVIZtrwAI7oPXzXIg==

packages/serverless-plugin/package.json renamed to packages/deprecated/serverless-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@mapbox/s3urls": "^1.5.3",
28-
"@sls-next/next-aws-lambda": "link:../apigw-lambda-compat",
28+
"@sls-next/next-aws-lambda": "link:../../compat-layers/apigw-lambda-compat",
2929
"chalk": "^2.4.2",
3030
"debug": "^4.1.1",
3131
"fs-extra": "^7.0.1",

0 commit comments

Comments
 (0)