-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
12,485 additions
and
4,838 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
], | ||
"ignoreDeps": [ | ||
"boxen", | ||
"configstore", | ||
"decamelize", | ||
"execa", | ||
"humanize-string", | ||
"latest-version", | ||
"ora", | ||
"tempy", | ||
"terminal-link", | ||
"@types/node-fetch" | ||
], | ||
"lockFileMaintenance": { | ||
"enabled": true | ||
}, | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": [ | ||
"minor", | ||
"patch" | ||
], | ||
"automerge": true | ||
} | ||
], | ||
"reviewers": [ | ||
"@jtoar" | ||
] | ||
} |
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,19 @@ | ||
var sym = Symbol() | ||
|
||
var promise = Promise.resolve() | ||
|
||
var check = arr.includes('yeah!') | ||
|
||
console.log(arr[Symbol.iterator]()) | ||
|
||
Promise.allSettled() | ||
|
||
console.log([].includes('bazinga')) | ||
|
||
Promise.any() | ||
|
||
|
||
Object.hasOwn({ x: 2 }, "x") | ||
|
||
var arr = [1, 2, 3]; | ||
arr.at(0) === 1 |
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,18 @@ | ||
// This is added as a test for prebuild; | ||
// check: packages/internal/**/build_api.test.ts | ||
module.exports = { | ||
presets: ['@redwoodjs/core/config/babel-preset'], | ||
plugins: [ | ||
[ | ||
'babel-plugin-auto-import', | ||
{ | ||
declarations: [ | ||
{ | ||
// import kitty from 'kitty-purr' | ||
default: 'kitty', | ||
path: 'kitty-purr', | ||
}, | ||
], | ||
}, | ||
], | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
__fixtures__/example-todo-main/web/src/components/NumTodosCell/NumTodosCell.mock.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,3 +1,3 @@ | ||
export const standard = { | ||
todosCount: 42, | ||
export const standard = () => { | ||
return { todosCount: 42 } | ||
} |
11 changes: 11 additions & 0 deletions
11
__fixtures__/example-todo-main/web/src/components/NumTodosTwoCell/NumTodosTwoCell.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const QUERY = gql` | ||
query NumTodosCell_GetCount { | ||
todosCount | ||
} | ||
` | ||
|
||
export const Loading = () => <div>Loading...</div> | ||
|
||
export const Success = ({ todosCount }) => { | ||
return <>{todosCount}</> | ||
} |
7 changes: 7 additions & 0 deletions
7
__fixtures__/example-todo-main/web/src/components/NumTodosTwoCell/NumTodosTwoCell.mock.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function standard() { | ||
return { | ||
todosCount: 42, | ||
} | ||
} | ||
export const justAnotherExport = 'bazinga' | ||
export const please = () => 'leave_me_alone' |
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 |
---|---|---|
|
@@ -55,6 +55,18 @@ module.exports = { | |
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
['@babel/plugin-proposal-private-methods', { loose: true }], | ||
['@babel/plugin-proposal-private-property-in-object', { loose: true }], | ||
[ | ||
'@babel/plugin-transform-runtime', | ||
{ | ||
// https://babeljs.io/docs/en/babel-plugin-transform-runtime/#core-js-aliasing | ||
// Setting the version here also requires `@babel/runtime-corejs3` | ||
corejs: { version: 3, proposals: true }, | ||
// https://babeljs.io/docs/en/babel-plugin-transform-runtime/#version | ||
// Transform-runtime assumes that @babel/[email protected] is installed. | ||
// Specifying the version can result in a smaller bundle size. | ||
version: packageJSON.devDependencies['@babel/runtime-corejs3'], | ||
}, | ||
], | ||
], | ||
overrides: [ | ||
// ** WEB PACKAGES ** | ||
|
@@ -93,18 +105,6 @@ module.exports = { | |
], | ||
}, | ||
], | ||
[ | ||
'@babel/plugin-transform-runtime', | ||
{ | ||
// https://babeljs.io/docs/en/babel-plugin-transform-runtime/#core-js-aliasing | ||
// Setting the version here also requires `@babel/runtime-corejs3` | ||
corejs: { version: 3, proposals: true }, | ||
// https://babeljs.io/docs/en/babel-plugin-transform-runtime/#version | ||
// Transform-runtime assumes that @babel/[email protected] is installed. | ||
// Specifying the version can result in a smaller bundle size. | ||
version: packageJSON.devDependencies['@babel/runtime-corejs3'], | ||
}, | ||
], | ||
// normally provided through preset-env detecting TARGET_BROWSER | ||
// but webpack 4 has an issue with this | ||
// see https://github.com/PaulLeCam/react-leaflet/issues/883 | ||
|
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
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
Oops, something went wrong.