Skip to content

Commit 496e9ba

Browse files
committed
Edit posts
1 parent 27de506 commit 496e9ba

File tree

8 files changed

+198
-48
lines changed

8 files changed

+198
-48
lines changed

package.json

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@
88
"build": "x0 build pages",
99
"publish": "markdown-to-medium"
1010
},
11-
"author": "Brent Jackson",
11+
"dependencies": {
12+
"@comp/md-loader": "^1.0.0-3",
13+
"@compositor/logo": "^1.3.5",
14+
"@compositor/mono": "^1.0.0-10",
15+
"@compositor/x0": "^5.0.0-3",
16+
"babel-preset-env": "^1.7.0",
17+
"babel-preset-react": "^6.24.1",
18+
"babel-preset-stage-0": "^6.24.1",
19+
"markdown-to-medium": "^1.4.1"
20+
},
21+
"author": "Compositor",
1222
"contributors": [
1323
"Adam Morse <adam@compositor.io>",
1424
"John Otander <john@compositor.io>",
@@ -19,23 +29,30 @@
1929
"scope": "import scope from '../lab'",
2030
"title": "Compositor Blog",
2131
"meta": [
22-
{ "name": "description", "content": "Tools for Designers & Developers" },
23-
{ "name": "twitter:card", "content": "summary" },
24-
{ "name": "twitter:site", "content": "@getcompositor" },
25-
{ "name": "twitter:title", "content": "Compositor Blog" },
26-
{ "name": "twitter:description", "content": "Tools for Designers and Developers" },
27-
{ "name": "twitter:image", "content": "https://compositor.io/logo/dist/compositor.png" }
32+
{
33+
"name": "description",
34+
"content": "Tools for Designers & Developers"
35+
},
36+
{
37+
"name": "twitter:card",
38+
"content": "summary"
39+
},
40+
{
41+
"name": "twitter:site",
42+
"content": "@getcompositor"
43+
},
44+
{
45+
"name": "twitter:title",
46+
"content": "Compositor Blog"
47+
},
48+
{
49+
"name": "twitter:description",
50+
"content": "Tools for Designers and Developers"
51+
},
52+
{
53+
"name": "twitter:image",
54+
"content": "https://compositor.io/logo/dist/compositor.png"
55+
}
2856
]
29-
},
30-
"dependencies": {
31-
"@comp/md-loader": "^1.0.0-3",
32-
"@compositor/gen": "^1.0.0-2",
33-
"@compositor/logo": "^1.3.5",
34-
"@compositor/mono": "^1.0.0-7",
35-
"@compositor/x0": "^5.0.0-3",
36-
"babel-preset-env": "^1.7.0",
37-
"babel-preset-react": "^6.24.1",
38-
"babel-preset-stage-0": "^6.24.1",
39-
"markdown-to-medium": "^1.4.1"
4057
}
4158
}

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default ({
2323
<Heading mb={2}>{post.title}</Heading>
2424
<Text mb={3}>{post.excerpt}</Text>
2525
<Pre>
26-
{post.created}
26+
{post.created.toDateString()}
2727
{' | '}
2828
{post.author}
2929
</Pre>

pages/post.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react'
22
import { Pre } from '@compositor/mono'
33
import posts from '../posts'
4+
import scope from './_scope'
45

56
const routes = posts.map(post => ({
67
path: '/' + post.slug
78
}))
89

910
export default class Post extends React.Component {
1011
static getInitialProps = async ({ path }) => {
11-
console.log(path)
1212
return {
1313
path: '/:name',
1414
routes
@@ -31,8 +31,8 @@ export default class Post extends React.Component {
3131

3232
return (
3333
<React.Fragment>
34-
<Component />
35-
<Pre my={4}>{created} {author}</Pre>
34+
<Component scope={scope} />
35+
<Pre my={4}>{created.toDateString()} | {author}</Pre>
3636
</React.Fragment>
3737
)
3838
}

posts/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ const posts = req.keys()
1313
}
1414
})
1515
.filter(post => !post.draft)
16+
.sort((a, b) => {
17+
return a.created > b.created ? -1 : 1
18+
})
1619

1720
export default posts

posts/introducing-kit.md

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
draft: true
2+
draft: false
33
title: Introducing Kit
44
slug: introducing-kit
5-
created: '05-26-2018'
5+
created: 2018-05-29
66
author: Brent Jackson
77
publication: Compositor
88
canonicalURL: https://compositor.io/blog/introducing-kit/
@@ -39,13 +39,13 @@ creating documentation, and writing tests,
3939
with a minimal amount of effort to set up and flexible enough to integrate with any existing React setup.
4040

4141
This line of thinking led us to create [Kit][kit], a suite of tools for developing, documenting, and testing React components.
42-
Kit consists of many different utilities, but at its core is a set of utility components for creating documentation and demos and a command line interface for zero-config isolated development environments.
42+
Kit consists of several different modules, but at its core is a set of [utility components][components] for creating documentation and demos and a [command line interface][cli] for zero-config isolated development environments.
4343

4444
## Components Over Configuration
4545

46-
Some React development tooling requires the overhead of learning custom APIs, configurations, and API-specific code.
46+
Some React development tooling requires the overhead of learning custom APIs, configurations, and library-specific code.
4747
With Kit, we've tried to follow our philosophy of **Components Over Configration**.
48-
Instead of increasing the API surface area of your project with custom configuration,
48+
Instead of increasing the API surface area of your project with library-specific APIs,
4949
we've tried to keep it simple by using an API most React developers will already be familiar with: components and props.
5050

5151
Because the core part of Kit is built using React components,
@@ -54,13 +54,60 @@ whether you use [Create React App][cra], [Next.js][nextjs], [Gatsby][gatsby], or
5454

5555
## Library components
5656

57+
![Screenshot of the Kit Library components](https://github.com/c8r/kit/raw/master/core/docs/images/library.png)
58+
59+
Kit includes a set of components for displaying your components in isolation,
60+
with a grid view of multiple components at once, and detail views for testing components in isolation.
61+
62+
```jsx
63+
import React from 'react'
64+
import { Library, Example, Detail } from '@compositor/kit'
65+
import { Heading, Button } from '../src'
66+
67+
export default props =>
68+
<Library>
69+
<Example name='Heading'>
70+
<Heading>Hello</Heading>
71+
</Example>
72+
<Example name='Button'>
73+
<Button>Hello</Button>
74+
<Detail>
75+
<Button primary>Primary</Button>
76+
<Button secondary>Primary</Button>
77+
<Button large>Large</Button>
78+
<Button small>Small</Button>
79+
</Detail>
80+
</Example>
81+
</Library>
82+
```
83+
5784
## The Cartesian component
5885

86+
![Screenshot of the Kit Cartesian component](https://github.com/c8r/kit/raw/master/core/docs/images/cartesian.png)
87+
88+
The Kit Cartesian component can be used to display the [Cartesian product][cartesian-product] of a component's props.
89+
5990
## The XRay component
6091

92+
![Screenshot of the Kit XRay component](https://github.com/c8r/kit/raw/master/core/docs/images/x-ray.png)
93+
94+
The XRay component is a great way to visually debug CSS layout in your React components.
95+
It displays a customizable grid and outlines each HTML element to help ensure that your components are aligned as expected.
96+
6197
## The Kit CLI
6298

99+
Kit also includes a zero-config development environment built on top of the Kit components and [Compositor x0][x0],
100+
allowing you to quickly spin up a component library view based on a folder of example components.
101+
102+
```sh
103+
npm i -g @compositor/kit-cli
104+
```
105+
106+
```sh
107+
kit examples --mode library
108+
```
63109

110+
## More to Come
64111

65112
<!--
66113
- simple setup
@@ -76,6 +123,10 @@ whether you use [Create React App][cra], [Next.js][nextjs], [Gatsby][gatsby], or
76123
-->
77124

78125
[kit]: https://github.com/c8r/kit
126+
[components]: https://github.com/c8r/kit/tree/master/core
127+
[cli]: https://github.com/c8r/kit/tree/master/cli
79128
[cra]: https://github.com/facebook/create-react-app
80129
[nextjs]: https://github.com/zeit/next.js/
81130
[gatsby]: https://github.com/gatsbyjs/gatsby
131+
[cartesian-product]: https://en.wikipedia.org/wiki/Cartesian_product
132+
[x0]: https://compositor.io/x0

posts/iso-now-open-source.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
draft: true
3+
title: 'Iso v0.1: Now Open Source'
4+
created: 2018-05-27
5+
slug: iso-now-open-source
6+
author: Brent Jackson
7+
publication: Compositor
8+
canonicalURL: https://compositor.io/blog/introducing-kit/
9+
tags:
10+
react
11+
components
12+
design
13+
development
14+
open source
15+
app
16+
electron
17+
twitter:
18+
card: summary
19+
site: '@getcompositor'
20+
title: Iso v0.1 | Compositor Blog
21+
image: https://compositor.io/logo/dist/compositor.png
22+
excerpt:
23+
Iso v0.1 is out and it's now open source
24+
---
25+
26+
# Iso v0.1: now Open source
27+
28+
<!--
29+
30+
# Iso: Reducing The Barrier to Entry for Component Based UI Development
31+
32+
# Iso: Component Based UI Development without the Overhead
33+
34+
- We love Open source software
35+
- we think Code should be for everyone
36+
- Current tooling is powerful but working at a higher level of abstraction
37+
- Getting started with modern front end tooling comes with a lot of assumptions
38+
- terminal, command line
39+
- Bundlers and app setup
40+
- IDEs and text editors
41+
- Git
42+
- Creating UI directly in the medium is the best approach
43+
- No handoff/minimize QA and design bugs
44+
- Removing barriers to entry
45+
- Component based UI is the future
46+
- Better design tools
47+
- Too good of an idea to keep closed
48+
- Help from our community
49+
50+
- we have a lot of ideas for where tooling like this can go, but we only have so many hours in the day
51+
52+
- should designers Code is the wrong question to ask
53+
- If you want to, it shouldn't be hard to get started
54+
- Shouldn't everyone Code?
55+
56+
Shoutouts
57+
- Glitch
58+
- Codesandbox
59+
- Create react app
60+
- Egghead, etc
61+
-->
62+

posts/open-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Open Formats
33
slug: open-formats
4-
created: '12-11-2017'
4+
created: 2017-12-11
55
author: Brent Jackson
66
publication: Compositor
77
canonicalURL: https://compositor.io/blog/open-formats/
Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
draft: true
3-
title: x0: Making React Component Development Stupid Simple
4-
slug: x0-making-react-component-deveopment-stupid-simple
5-
created: 05-27-2018
2+
draft: false
3+
title: 'x0: Making React Component Development Stupid Simple'
4+
slug: x0-making-react-component-development-stupid-simple
5+
created: 2018-05-28
66
author: Brent Jackson
77
publication: Compositor
88
canonicalURL: https://compositor.io/blog/x0-making-react-component-development-stupid-simple/
@@ -16,47 +16,64 @@ tags:
1616
twitter:
1717
card: summary
1818
site: '@getcompositor'
19-
title: x0: Making React Component Development Stupid Simple | Compositor Blog
19+
title: 'x0: Making React Component Development Stupid Simple | Compositor Blog'
2020
image: https://compositor.io/logo/dist/compositor.png
2121
excerpt:
2222
We're big fans of the KISS principle (Keep It Simple, Stupid) at Compositor,
23-
And we think that anything that poses a barrier to the creative process can really affect the quality of work you do.
23+
and we think anything that poses a barrier to the creative process can really affect the quality of the work you do.
2424
---
2525

2626

2727
# x0: Making React Component Development Stupid Simple
2828

2929
We're big fans of the KISS principle (Keep It Simple, Stupid) at Compositor,
30-
And we think that anything that poses a barrier to the creative process can really affect the quality of work you do.
31-
We're also (no surprise) big fans of React, which has ushered in a paradigm shift for UI design and development.
32-
33-
For people who learn to code, there is a huge boost to productivity with the right abstractions, making things that were previously tedious and
34-
Time-consuming more efficient and making the person using these abstractions more productive.
30+
and we think anything that poses a barrier to the creative process can really affect the quality of the work you do.
31+
We're also big fans of React (no surprise), which has ushered in a paradigm shift for UI design and development.
3532

33+
For people who develop software, there can be a huge boost to productivity with the right abstractions, making things that were previously tedious and
34+
time-consuming more efficient and making the person using these abstractions more productive.
3635
React represents a helpful abstraction on top of lower-level HTML, CSS, and JS in the form of functional components.
3736

3837
While React can be a huge boost to productivity,
38+
this new abstraction comes with new barriers
39+
to entry for people unfamiliar with the JavaScript ecosystem.
40+
Even with the introduction of great tools like [Create React App][cra],
41+
getting started with an idea can require the proper setup and can slow down the creative process.
3942

40-
With this new abstraction comes new barriers to entry for people unfamiliar with the JavaScript ecosystem.
43+
We built [x0][x0] with these things in mind and really enjoy using x0 as a quick, no frills prototyping and development tool.
44+
With version 5, we've taken advantage of recent updates in the webpack ecosystem and made it even faster and easier to work with multiple components at once.
4145

42-
Even with the introduction of great tools like Create React App, getting started with an idea can require the proper setup and can slow down the creative process.
46+
x0 is based on the principle of smart defaults.
47+
Rather than duplicating code with boiler plates for React, Babel and webpack,
48+
x0 is a batteries-included development tool with the most common settings enabled.
4349

44-
We built x0 with these things in mind and really enjoy using x0 as a quick, no frills prototyping and development tool.
50+
```sh
51+
npm i -g @compositor/x0
52+
```
4553

46-
With version 5, we've taken advantage of recent updates in the webpack ecosystem and made it even faster and easier to work with multiple components at once.
47-
48-
x0 is based on the principle of smart defaults. Rather than duplicating code with boiler plates for React, Babel and webpack, x0 is a batteries-included development tool with the most common settings enabled.
54+
```sh
55+
x0 components
56+
```
4957

5058
X0 now accepts a directory of React components as an entry point.
5159
Create a folder of components and pass it to the `x0` command;
5260
an isolated development server will start up in seconds
5361
creating routes based on the file names, with no config or custom setup required.
5462
Your components will automatically update in the browser with any code change thanks to webpack's hot module replacement feature.
5563

56-
X0 also uses the new webpack-serve module which is noticeably faster than the now deprecated webpack-dev-server.
57-
64+
X0 also uses the new [webpack-serve][webpack-serve] module which is noticeably faster than the now deprecated webpack-dev-server.
5865
When you want to share what you've built with others, x0 lets you quickly export a static site, which can be pushed to GitHub or published to any CDN.
59-
6066
The new x0 also supports Compositor JSX format, letting you quickly prototype component compositions with a common component library, without the overhead of building out a full component. We've also included MDX support for mixing markdown notes with components.
6167

68+
We love using x0 as a quick and painless React development server, and we hope you will too.
69+
70+
Get started with x0 now, or let use know what you think on Twitter [@getcompositor][twitter].
71+
72+
- [x0 on GitHub][x0gh]
73+
6274

75+
[x0]: https://compositor.io/x0
76+
[x0gh]: https://github.com/c8r/x0
77+
[twitter]: https://twitter.com/getcompositor
78+
[cra]: https://github.com/facebook/create-react-app
79+
[webpack-serve]: https://github.com/webpack-contrib/webpack-serve

0 commit comments

Comments
 (0)