File tree 9 files changed +28
-4
lines changed
9 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ const fs = require ( 'fs' )
2
+ const compdoc = require ( 'compdoc' )
3
+ const globby = require ( 'globby' )
4
+
5
+ const css = fs . readFileSync ( 'node_modules/tachyons/css/tachyons.css' , 'utf8' )
6
+
7
+ const compGlob = process . argv . slice ( 2 ) [ 0 ] || '**'
8
+
9
+ globby ( `build/components/${ compGlob } /*.html` )
10
+ . then ( files => files . forEach ( buildComponent ) )
11
+
12
+ const buildComponent = file => {
13
+ const html = fs . readFileSync ( file , 'utf8' )
14
+
15
+ console . log ( `Building ${ file } ` )
16
+ compdoc ( file , { html, css } )
17
+ . then ( {
18
+
19
+ } )
20
+ . catch ( console . log )
21
+ }
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " next" ,
7
7
"build" : " next build" ,
8
- "start" : " next start"
8
+ "start" : " next start"
9
9
},
10
10
"repository" : " tachyons-css/tachyons-css.github.io" ,
11
11
"keywords" : [],
12
12
"author" : " " ,
13
13
"license" : " ISC" ,
14
14
"dependencies" : {
15
+ "compdoc" : " 0.0.1" ,
16
+ "globby" : " ^6.1.0" ,
17
+ "mkdirp" : " ^0.5.1" ,
15
18
"next" : " ^1.1.2" ,
16
19
"tachyons" : " ^4.5.5"
17
20
}
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import Link from 'next/link'
3
- import Layout from '../components/layout'
3
+ import Layout from '../components/t/ layout'
4
4
5
5
export default ( ) => (
6
6
< Layout >
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import Layout from '../../../components/layout'
2
+ import Layout from '../../../components/t/ layout'
3
3
4
4
export default ( ) => (
5
5
< Layout >
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import Layout from '../components/layout'
2
+ import Layout from '../components/t/ layout'
3
3
4
4
export default ( ) => (
5
5
< Layout >
You can’t perform that action at this time.
0 commit comments