-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create placeholders for relocating Source NPM packages to DCR (#11496)
* add placeholders for relocating Source NPM packages to dcr * aw jest you’re so cute provide commonjs versions of placeholder packages for Jest * permit `workspace` deps in `package.json` * package names don’t need a scope it’s not a real scope anyway, it’s not adding anything
- Loading branch information
Showing
18 changed files
with
167 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @guardian/source-development-kitchen | ||
|
||
This is temporary placeholder for the real source code that we hope to move here from CSNX. | ||
|
||
For now, it simply re-exports the NPM package, which is still published from CSNX. | ||
|
||
The actual source code still lives in https://github.com/guardian/csnx/tree/main/libs/%40guardian/source-development-kitchen (for now). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "@guardian/source-development-kitchen", | ||
"private": true, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
"./react-components": { | ||
"types": "./react-components.d.ts", | ||
"import": "./react-components.js", | ||
"require": "./react-components.cjs" | ||
} | ||
}, | ||
"dependencies": { | ||
"CSNX_SOURCE_DEVELOPMENT_KITCHEN": "npm:@guardian/[email protected]" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "^11.11.1", | ||
"@guardian/libs": "^16.0.0", | ||
"@guardian/source": "^1.0.0", | ||
"@types/react": "^18.2.11", | ||
"react": "^18.2.0", | ||
"tslib": "^2.6.2", | ||
"typescript": "~5.3.3" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
libs/@guardian/source-development-kitchen/react-components.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const reactComponents = require('CSNX_SOURCE_DEVELOPMENT_KITCHEN/react-components'); | ||
|
||
for (const key in reactComponents) { | ||
if (reactComponents.hasOwnProperty(key)) { | ||
exports[key] = reactComponents[key]; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
libs/@guardian/source-development-kitchen/react-components.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE_DEVELOPMENT_KITCHEN/react-components'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE_DEVELOPMENT_KITCHEN/react-components'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @guardian/source | ||
|
||
This is temporary placeholder for the real source code that we hope to move here from CSNX. | ||
|
||
For now, it simply re-exports the NPM package, which is still published from CSNX. | ||
|
||
The actual source code still lives in https://github.com/guardian/csnx/tree/main/libs/%40guardian/source (for now). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const foundations = require('CSNX_SOURCE/foundations'); | ||
|
||
for (const key in foundations) { | ||
if (foundations.hasOwnProperty(key)) { | ||
exports[key] = foundations[key]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE/foundations'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE/foundations'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@guardian/source", | ||
"private": true, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
"./foundations": { | ||
"types": "./foundations.d.ts", | ||
"import": "./foundations.js", | ||
"require": "./foundations.cjs" | ||
}, | ||
"./react-components": { | ||
"types": "./react-components.d.ts", | ||
"import": "./react-components.js", | ||
"require": "./react-components.cjs" | ||
} | ||
}, | ||
"dependencies": { | ||
"CSNX_SOURCE": "npm:@guardian/[email protected]" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "^11.11.1", | ||
"@types/react": "^18.2.11", | ||
"react": "^18.2.0", | ||
"tslib": "^2.6.2", | ||
"typescript": "~5.3.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const reactComponents = require('CSNX_SOURCE/react-components'); | ||
|
||
for (const key in reactComponents) { | ||
if (reactComponents.hasOwnProperty(key)) { | ||
exports[key] = reactComponents[key]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE/react-components'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'CSNX_SOURCE/react-components'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
packages: | ||
- 'apps-rendering' | ||
- 'dotcom-rendering' | ||
- 'libs/**' |