Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples, react #1415

Merged
merged 2 commits into from
Dec 28, 2020
Merged

Update examples, react #1415

merged 2 commits into from
Dec 28, 2020

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented Dec 24, 2020

  • Update react, react-dom
  • Clean Next, Razzle, Vue examples
  • Update parcel example, parcel plugin, run tests
  • Prefer .mdx extension over .md
  • This does not yet touch CRA
  • It’s impossible to get Gatsby working in our workspace (they fork MDX but resolve from their dependency on old MDX)
  • I can’t get webpack 5 working either

Related to GH-1292.

* Update `react`, `react-dom`
* Clean Next, Razzle, Vue examples
* Update parcel example, parcel plugin, run tests
* Prefer `.mdx` extension over `.md`
* This does not yet touch CRA
* It’s impossible to get Gatsby working in our workspace (they fork MDX but resolve from their dependency on old MDX)
* I can’t get webpack 5 working either

Related to GH-1292.
@wooorm wooorm added 🦋 type/enhancement This is great to have 📚 area/docs This affects documentation 👩‍⚕ area/health This affects community 👶 semver/patch This is a backwards-compatible fix labels Dec 24, 2020
@vercel
Copy link

vercel bot commented Dec 24, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mdx/mdx/ga6p75usz
✅ Preview: Failed

[Deployment for 5f5b158 failed]

@@ -53,7 +53,7 @@ module.exports = {
module: {
rules: [
{
test: /\.mdx?$/,
test: /\.mdx$/,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push our own extension.
Several tools already handle markdown (e.g., parcel), which we shouldn’t overwrite. And MDX is somewhat different, so it’s good to push the different extension

examples/next/pages/_app.js Show resolved Hide resolved
const MDX = require('@mdx-js/runtime')
const {MDXProvider} = require('@mdx-js/react')

const MDXContent = `
# Hello, world!

From <Color bgBlack white bold> MDX! </Color>
From <Text backgroundColor="black" color="white" bold>MDX!</Text>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ink changed

@@ -1,29 +1,20 @@
<template>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly a smaller, MVP, example

"scripts": {
"test-api": "jest test",
"test-coverage": "jest test --coverage",
"test": "yarn test-coverage"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this package had tests, but they were never tested

@vercel vercel bot temporarily deployed to Preview December 28, 2020 13:54 Inactive
@wooorm wooorm merged commit 6f3dc9c into main Dec 28, 2020
@wooorm wooorm deleted the examples branch December 28, 2020 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 area/docs This affects documentation 👩‍⚕ area/health This affects community 👶 semver/patch This is a backwards-compatible fix 🦋 type/enhancement This is great to have
Development

Successfully merging this pull request may close these issues.

2 participants