-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make all packages modules, and build with
pkgroll
to local dist
- Loading branch information
Showing
135 changed files
with
971 additions
and
6,659 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
'@guardian/source-react-components-development-kitchen': patch | ||
'@guardian/eslint-plugin-source-react-components': patch | ||
'@guardian/eslint-plugin-source-foundations': patch | ||
'@guardian/eslint-config-typescript': patch | ||
'@guardian/source-react-components': patch | ||
'@guardian/identity-auth-frontend': patch | ||
'@guardian/browserslist-config': patch | ||
'@guardian/source-foundations': patch | ||
'@guardian/cobalt-plugin-ts': patch | ||
'@guardian/newsletter-types': patch | ||
'@guardian/core-web-vitals': patch | ||
'@guardian/design-tokens': patch | ||
'@guardian/eslint-config': patch | ||
'@guardian/identity-auth': patch | ||
'@guardian/ab-react': patch | ||
'@guardian/prettier': patch | ||
'@guardian/tsconfig': patch | ||
'@guardian/ab-core': patch | ||
'@guardian/libs': patch | ||
'github-pages': patch | ||
--- | ||
|
||
Now bundled using [`pkgroll`](https://www.npmjs.com/package/pkgroll). |
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 was deleted.
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
'*': 'prettier --ignore-unknown --write --cache', | ||
'package.json': 'sort-package-json', | ||
}; |
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 |
---|---|---|
@@ -1,25 +1,10 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import tsConfig from '../../tsconfig.base.json'; | ||
import path from 'node:path'; | ||
|
||
import svelte from '@astrojs/svelte'; | ||
|
||
// duplicate the aliases defined in tsconfig.base.json | ||
let alias = {}; | ||
for (const [module, modulePath] of Object.entries( | ||
tsConfig.compilerOptions.paths, | ||
)) { | ||
alias[module] = path.resolve('../../' + modulePath[0] + '.ts'); | ||
} | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://guardian.github.io', | ||
base: '/csnx', | ||
integrations: [svelte()], | ||
vite: { | ||
resolve: { | ||
alias, | ||
}, | ||
}, | ||
}); |
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,11 @@ | ||
import { config as baseConfig } from '../../../configs/jest.config.js'; | ||
|
||
/** @typedef {import("jest").Config} Config */ | ||
const config = { | ||
...baseConfig, | ||
displayName: '@guardian/ab-core', | ||
testEnvironment: 'jest-environment-jsdom', | ||
}; | ||
|
||
// eslint-disable-next-line import/no-default-export -- that's what jest likes | ||
export default config; |
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
libs/@guardian/libs/jest.dist.setup.ts → libs/@guardian/ab-core/jest.dist.setup.js
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,8 +1,6 @@ | ||
/* eslint-disable -- this file will break unless the project is built, so let's not worry about it */ | ||
|
||
// Mock `./src/index` with whatever `package.json` points at in dist. | ||
// This means we can run the unit tests against `dist` instead. | ||
|
||
import * as dist from '../../../dist/libs/@guardian/libs'; | ||
import * as dist from '.'; | ||
|
||
jest.mock('./src/index', () => dist); |
Oops, something went wrong.