Skip to content

Commit 66b0953

Browse files
authored
fix: Update parcel version to support node 16.14.2 in monorepo CI (#787)
* Removing unnecessary dependency that fails to install with node 16.13.0 on CI. * Updating react-devtools chrome script to run against chrome * Updating to parcel 2 * More config * Removing example's package-lock * Cleaning up a few things * Fighting module resolution * Updating package-lock
1 parent bb8ce2e commit 66b0953

File tree

10 files changed

+6121
-41170
lines changed

10 files changed

+6121
-41170
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ coverage
1818
dist
1919
test-data.json
2020
examples/stubbing-spying__intercept/users5.json
21+
**/.parcel-cache
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
22
"plugins": [
3-
[
4-
"@babel/plugin-proposal-decorators",
5-
{
6-
"legacy": true
7-
}
8-
],
9-
[
10-
"@babel/plugin-proposal-class-properties",
11-
{
12-
"loose": true
13-
}
14-
]
3+
["@babel/plugin-proposal-decorators", { "legacy": true }],
4+
["@babel/plugin-proposal-class-properties", { "loose" : true }],
5+
["@babel/plugin-transform-classes"]
156
]
167
}

examples/blogs__class-decorator/package-lock.json

Lines changed: 457 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/blogs__class-decorator/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"start": "../../node_modules/.bin/parcel serve src/index.html"
1111
},
1212
"devDependencies": {
13-
"@babel/core": "7.9.6"
14-
}
13+
"@babel/core": "^7.12.0"
14+
},
15+
"browserslist": "> 0.25%, not dead"
1516
}

examples/blogs__class-decorator/src/components/TodoItem.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import classnames from 'classnames'
44
import TodoTextInput from './TodoTextInput'
55
import { CypressInstances } from '../decorators'
66

7-
@CypressInstances()
8-
export default class TodoItem extends Component {
7+
@CypressInstances('TodoItem')
8+
class TodoItem extends Component {
99
static propTypes = {
1010
todo: PropTypes.object.isRequired,
1111
editTodo: PropTypes.func.isRequired,
@@ -72,3 +72,5 @@ export default class TodoItem extends Component {
7272
)
7373
}
7474
}
75+
76+
export default TodoItem

examples/blogs__class-decorator/src/components/TodoTextInput.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types'
33
import classnames from 'classnames'
44
import { CypressSingleton } from '../decorators'
55

6-
@CypressSingleton()
7-
export default class TodoTextInput extends Component {
6+
@CypressSingleton('TodoTextInput')
7+
class TodoTextInput extends Component {
88
static propTypes = {
99
onSave: PropTypes.func.isRequired,
1010
text: PropTypes.string,
@@ -55,3 +55,5 @@ export default class TodoTextInput extends Component {
5555
)
5656
}
5757
}
58+
59+
export default TodoTextInput

examples/blogs__class-decorator/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body>
99
<div class="todoapp" id="root"></div>
10-
<script src="./index.jsx"></script>
10+
<script type="module" src="./index.jsx"></script>
1111
</body>
1212
</html>

examples/blogs__use-react-devtools/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"scripts": {
66
"cypress:open": "../../node_modules/.bin/cypress open",
77
"cypress:run": "../../node_modules/.bin/cypress run",
8+
"cypress:run:chrome": "../../node_modules/.bin/cypress run --browser chrome",
89
"cypress:run:record": "../../node_modules/.bin/cypress run --record",
910
"dev": "../../node_modules/.bin/start-test 3000 cypress:open",
1011
"start": "../../node_modules/.bin/react-scripts start",
1112
"test:ci": "../../node_modules/.bin/start-test 3000 cypress:run",
12-
"test:ci:chrome": "../../node_modules/.bin/start-test 3000 cypress:run",
13+
"test:ci:chrome": "../../node_modules/.bin/start-test 3000 cypress:run:chrome",
1314
"test:ci:record": "../../node_modules/.bin/start-test 3000 cypress:run:record"
1415
},
1516
"browserslist": {

0 commit comments

Comments
 (0)