Skip to content

Commit 22deea9

Browse files
committed
Complete tachyons integration
1 parent d5f6762 commit 22deea9

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
},
88
"dependencies": {
99
"react": "^15.3.2",
10-
"react-dom": "^15.3.2"
10+
"react-dom": "^15.3.2",
11+
"tachyons": "^4.5.2",
12+
"tachyons-cli": "^1.0.8"
1113
},
1214
"scripts": {
1315
"start": "react-scripts start",
1416
"build": "react-scripts build",
1517
"test": "react-scripts test --env=jsdom",
16-
"eject": "react-scripts eject"
18+
"eject": "react-scripts eject",
19+
"css": "tachyons src/css/app.css > src/index.css --minify",
20+
"prestart": "npm run css",
21+
"prebuild": "npm run css"
1722
}
1823
}

src/App.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
import React, { Component } from 'react';
1+
import React, { Component } from 'react'
22

33
class App extends Component {
44
render() {
55
return (
66
<div className="App">
7-
<div className="App-header">
8-
<img src={logo} className="App-logo" alt="logo" />
9-
<h2>Welcome to React</h2>
10-
</div>
11-
<p className="App-intro">
12-
To get started, edit <code>src/App.js</code> and save to reload.
13-
</p>
7+
Hello, world!
148
</div>
15-
);
9+
)
1610
}
1711
}
1812

19-
export default App;
13+
export default App

src/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tachyons";

src/index.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)