File tree Expand file tree Collapse file tree 8 files changed +12
-10
lines changed Expand file tree Collapse file tree 8 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 11import { Component , PropTypes } from 'react' ;
2- import ReactComponent from 'components/ReactComponent' ;
2+ import ReactComponent from 'react-styleguidist/ components/ReactComponent' ;
33
44export default class Components extends Component {
55 static propTypes = {
Original file line number Diff line number Diff line change 11import { Component , PropTypes } from 'react' ;
2- import Components from 'components/Components' ;
2+ import Components from 'react-styleguidist/ components/Components' ;
33
44import s from './Layout.css' ;
55
Original file line number Diff line number Diff line change 11import { Component , PropTypes } from 'react' ;
2- import Editor from 'components/Editor' ;
3- import Preview from 'components/Preview' ;
2+ import Editor from 'react-styleguidist/ components/Editor' ;
3+ import Preview from 'react-styleguidist/ components/Preview' ;
44
55import s from './Playground.css' ;
66
Original file line number Diff line number Diff line change 33import React , { Component , PropTypes } from 'react' ;
44import ReactDOM from 'react-dom' ;
55import babel from 'babel-core/browser' ;
6- import Wrapper from 'components/Wrapper' ;
6+ import Wrapper from 'react-styleguidist/ components/Wrapper' ;
77
88import s from './Preview.css' ;
99
Original file line number Diff line number Diff line change 11import { Component , PropTypes } from 'react' ;
2- import Props from 'components/Props' ;
3- import Playground from 'components/Playground' ;
2+ import Props from 'react-styleguidist/ components/Props' ;
3+ import Playground from 'react-styleguidist/ components/Playground' ;
44
55import s from './ReactComponent.css' ;
66
Original file line number Diff line number Diff line change 11import { Component } from 'react' ;
2- import Layout from 'components/Layout' ;
2+ import Layout from 'react-styleguidist/ components/Layout' ;
33
44export default class StyleGuide extends Component {
55 render ( ) {
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
33import { setComponentsNames , globalizeComponents } from './utils/utils' ;
4- import StyleGuide from 'components/StyleGuide' ;
4+ import StyleGuide from 'react-styleguidist/ components/StyleGuide' ;
55
66import './styles.css' ;
77
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module.exports = function(env) {
1212 var isProd = env === 'production' ;
1313
1414 var codeMirrorPath = path . join ( __dirname , '../../codemirror' ) ; // npm 3
15+ var componentsPath = path . join ( __dirname , 'components' ) ;
1516 if ( ! fs . existsSync ( codeMirrorPath ) ) {
1617 codeMirrorPath = path . join ( __dirname , '../node_modules/codemirror' ) ; // npm 2 or react-styleguidist develop
1718 }
@@ -40,7 +41,8 @@ module.exports = function(env) {
4041 'node_modules'
4142 ] ,
4243 alias : {
43- 'codemirror' : codeMirrorPath
44+ 'codemirror' : codeMirrorPath ,
45+ 'react-styleguidist/components' : componentsPath
4446 }
4547 } ,
4648 resolveLoader : {
You can’t perform that action at this time.
0 commit comments