Changesets is the raddest way to manage monorepos. You can combine changesets with GitHub Actions to automate releases.
Install changesets CLI.
diff --git a/src/components/CodeBlock.js b/src/components/CodeBlock.js | |
index 8b828d6..1751585 100644 | |
--- a/src/components/CodeBlock.js | |
+++ b/src/components/CodeBlock.js | |
@@ -2,6 +2,7 @@ | |
import React from 'react' | |
import Highlight, {defaultProps} from 'prism-react-renderer' | |
+import {mdx} from '@mdx-js/react' | |
import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live' |
const path = require('path') | |
module.exports = { | |
plugins: [ | |
// ... | |
{ | |
resolve: 'gatsby-plugin-page-creator', | |
options: { | |
path: path.join(__dirname, 'src', 'pages') | |
} |
workflow "npm" { | |
on = "push" | |
resolves = ["npm:publish:ci"] | |
} | |
action "npm:master" { | |
uses = "actions/bin/filter@b2bea07" | |
args = "branch master" | |
} |
module.exports = { | |
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'], | |
setupFiles: ['./test-setup.js'] | |
} |
import React from 'react' | |
import Markdown from './Markdown' | |
const components = { | |
h1: props => <h1 style={{ color: 'tomato' }} {...props} /> | |
} | |
const scope = { | |
name: 'world!', | |
Box: props => <div style={{border: 'thin solid tomato'}} {...props} /> |
import React from 'react' | |
import Markdown from './Markdown' | |
const components = { | |
h1: props => <h1 style={{ color: 'tomato' }} {...props} /> | |
} | |
const scope = { | |
name: 'world!', | |
Box: props => <div style={{border: 'thin solid tomato'}} {...props} /> |
import React from 'react' | |
import { | |
Provider, | |
Library, | |
Example, | |
Documentation, | |
Knobs, | |
contextTypes | |
} from '@compositor/kit' |