Skip to content

Commit 2b6a805

Browse files
committed
Connectors for version v7.7.4
1 parent e34aa21 commit 2b6a805

File tree

115 files changed

+14168
-345
lines changed

Some content is hidden

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

115 files changed

+14168
-345
lines changed

edgio-angular-connector/package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
{
22
"name": "@edgio/angular",
3-
"version": "7.3.1",
3+
"version": "7.7.4",
44
"license": "Apache-2.0",
55
"edgio-publish-to-repo": "edgio-docs/edgio-connectors",
66
"devDependencies": {
7-
"@edgio/core": "^7.3.1",
7+
"@edgio/core": "^7.7.4",
88
"@types/cross-spawn": "^6.0.2"
99
},
10+
"dependencies": {
11+
"@edgio/connectors": "^7.7.4"
12+
},
1013
"scripts": {
11-
"build": "rm -rf ./dist; mkdir ./dist; cp -r package.json README.md default-app ./dist; tsc; cp -r stage/angular/src/* dist;",
14+
"build": "rm -rf ./dist; mkdir ./dist; cp -r package.json README.md ./dist; tsc; cp -r stage/angular/src/* dist;",
1215
"watch": "npm-watch",
1316
"push-build": "npm run build && cd dist && yalc push && cd ..",
14-
"release": "npm run build; cd ./dist; npm publish --access public",
15-
"test": "jest --watchAll=false --collectCoverage=false --runInBand --forceExit"
17+
"release": "npm run build; cd ./dist; npm publish --access public"
1618
},
1719
"watch": {
1820
"push-build": {
1921
"patterns": [
2022
"src",
21-
"package.json",
22-
"default-app"
23+
"package.json"
2324
],
2425
"extensions": "*",
2526
"quiet": false
@@ -45,7 +46,7 @@
4546
"!**/index.ts"
4647
],
4748
"moduleNameMapper": {
48-
"^@edgio/core(.*)$": "<rootDir>/../core/dist/$1",
49+
"^@edgio/core(.*)$": "<rootDir>/../core/src/$1",
4950
"^@edgio/angular(.*)$": "<rootDir>/../angular/src/$1"
5051
}
5152
},

edgio-angular-connector/src/index.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
export * from './router'
1+
import { connectorRoutes } from '@edgio/connectors'
2+
3+
/**
4+
* Adds all routes from your Node.js app to Edgio router
5+
*
6+
* @deprecated
7+
* Package '@edgio/angular' is deprecated!
8+
* Please replace the 'angularRoutes' with 'connectorRoutes' from '@edgio/connectors' package.
9+
*/
10+
export const angularRoutes = connectorRoutes

edgio-angular-connector/tsconfig.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
"esModuleInterop": true,
1010
"downlevelIteration": true,
1111
"skipLibCheck": true,
12-
"lib": ["dom", "es2019", "scriptHost", "dom.iterable"],
12+
"lib": ["dom", "es2020", "scriptHost", "dom.iterable"],
1313
"baseUrl": "..",
1414
"paths": {
1515
"@edgio/core": ["core/src"],
16-
"@edgio/core/*": ["core/src/*"]
16+
"@edgio/core/*": ["core/src/*"],
17+
"@edgio/connectors": ["connectors/src"],
18+
"@edgio/connectors/*": ["connectors/src/*"]
1719
}
1820
},
1921
"include": ["src"],

edgio-astro-connector/package.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@edgio/astro",
3-
"version": "7.3.1",
3+
"version": "7.7.4",
44
"description": "Deploy Astro apps to Edgio",
55
"license": "Apache-2.0",
66
"edgio-publish-to-repo": "edgio-docs/edgio-connectors",
77
"scripts": {
8-
"build": "rm -rf ./dist; mkdir ./dist; cp -r package.json README.md default-app ./dist; tsc; cp -r stage/astro/src/* dist; webpack;",
8+
"build": "rm -rf ./dist; mkdir ./dist; cp -r package.json README.md default-app ./dist; tsc; cp -r stage/astro/src/* dist;",
99
"watch": "npm-watch",
1010
"push-build": "npm run build && cd dist && yalc push && cd ..",
1111
"link": "npm run build; cd dist; npm unlink; npm link",
@@ -16,8 +16,7 @@
1616
"push-build": {
1717
"patterns": [
1818
"src",
19-
"package.json",
20-
"default-app"
19+
"package.json"
2120
],
2221
"extensions": "*",
2322
"quiet": false
@@ -27,11 +26,9 @@
2726
"directory": "dist"
2827
},
2928
"devDependencies": {
30-
"@edgio/core": "^7.3.1",
31-
"@types/node": "^14.0.9"
29+
"@edgio/core": "^7.7.4"
3230
},
3331
"dependencies": {
34-
"@vercel/nft": "^0.22.1",
35-
"webpack": "^5.74.0"
32+
"@edgio/connectors": "^7.7.4"
3633
}
3734
}

edgio-astro-connector/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import AstroRoutes from './AstroRoutes'
1+
import { connectorRoutes } from '@edgio/connectors'
22

33
/**
44
* Adds all routes from your Astro app to Edgio router
@@ -12,4 +12,4 @@ import AstroRoutes from './AstroRoutes'
1212
* export default new Router().use(astroRoutes)
1313
* ```
1414
*/
15-
export const astroRoutes = new AstroRoutes()
15+
export const astroRoutes = connectorRoutes

edgio-astro-connector/tsconfig.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
"strict": true,
99
"esModuleInterop": true,
1010
"downlevelIteration": true,
11-
"lib": ["dom", "es2019", "scriptHost", "dom.iterable"],
11+
"lib": ["dom", "es2020", "scriptHost", "dom.iterable"],
1212
"baseUrl": "..",
1313
"skipLibCheck": true,
1414
"paths": {
1515
"@edgio/core": ["core/src"],
16-
"@edgio/core/*": ["core/src/*"]
16+
"@edgio/core/*": ["core/src/*"],
17+
"@edgio/connectors": ["connectors/src"],
18+
"@edgio/connectors/*": ["connectors/src/*"]
1719
}
1820
},
1921
"include": ["src"],

edgio-connectors-connector/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/stage

edgio-connectors-connector/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Edgio Connectors
2+
3+
This package contains Edgio connectors.
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: {
7+
node: '16', // NODE_VERSION
8+
},
9+
},
10+
],
11+
],
12+
}

0 commit comments

Comments
 (0)