Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
feat(docz-theme-default): add default theme as a package
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 15, 2018
1 parent 900cf2b commit 108dc4c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/playgrodd-theme-default/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
["module-resolver", {
"alias": {
"playgrodd": "../../node_modules/playgrodd/dist/main/index.js"
}
}]
]
}
18 changes: 18 additions & 0 deletions packages/playgrodd-theme-default/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "playgrodd-theme-default",
"version": "0.0.1",
"main": "./dist/index.js",
"license": "MIT",
"scripts": {
"build": "babel src --out-dir dist"
},
"dependencies": {
"playgrodd": "^0.0.1"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.42",
"@babel/preset-env": "^7.0.0-beta.42",
"@babel/preset-react": "^7.0.0-beta.42",
"babel-plugin-module-resolver": "^3.1.0"
}
}
18 changes: 18 additions & 0 deletions packages/playgrodd-theme-default/src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react'
import { Link } from 'react-router-dom'

import { Playgrodd, Preview } from 'playgrodd'

export const App = () => (
<Playgrodd>
<ul>
<li>
<Link to="/src/Alert">Alert</Link>
</li>
<li>
<Link to="/src/Button">Button</Link>
</li>
</ul>
<Preview />
</Playgrodd>
)

0 comments on commit 108dc4c

Please sign in to comment.