git ssb

1+

dinoworm ๐Ÿ› / catstack



Commit 9f5c94b9ccedb47c10c42b39a76bdd17af6692a7

`cssify` and `require-css-modules-hook` instead of `sheetify`

Michael Williams committed on 12/28/2015, 12:23:22 AM
Parent: 00fce82fda471a7156efa91c8394284f90e88743

Files changed

app/components/landing/index.cssadded
app/components/landing/index.jsadded
app/containers/landing.jschanged
app/package.jsonchanged
package.jsonchanged
server.jschanged
app/components/landing/index.cssView
@@ -1,0 +1,3 @@
1+.container {
2+ font-weight: bold;
3+}
app/components/landing/index.jsView
@@ -1,0 +1,13 @@
1+const React = require('react')
2+
3+const style = require('./index.css')
4+
5+class Landing extends React.Component {
6+ render () {
7+ return <div className={style.container}>
8+ landing!
9+ </div>
10+ }
11+}
12+
13+module.exports = Landing
app/containers/landing.jsView
@@ -1,12 +1,12 @@
11 const React = require('react')
22 const { connect } = require('react-redux')
33
4+const Landing = require('app/components/landing')
5+
46 class LandingContainer extends React.Component {
57 render () {
6- return <div>
7- landing!
8- </div>
8+ return <Landing />
99 }
1010 }
1111
1212 module.exports = connect(
app/package.jsonView
@@ -4,12 +4,12 @@
44 "./config.js": "./config-browser.js"
55 },
66 "browserify": {
77 "transform": [
8+ ["cssify", { "modules": true }],
89 "babelify",
910 "envify",
1011 ["evalify", { "files": [ "config-browser.js" ] } ],
11- "bulkify",
12- "sheetify/transform"
12+ "bulkify"
1313 ]
1414 }
1515 }
package.jsonView
@@ -73,8 +73,10 @@
7373 "browserify": "^12.0.1",
7474 "bulk-require": "^0.2.1",
7575 "bulkify": "^1.1.1",
7676 "cpx": "^1.2.1",
77+ "css-modules-require-hook": "^2.1.0",
78+ "cssify": "^1.0.2",
7779 "envify": "^3.4.0",
7880 "evalify": "^1.0.1",
7981 "feathers": "^1.2.0",
8082 "history": "^1.13.1",
@@ -88,8 +90,7 @@
8890 "react-router": "^1.0.0",
8991 "redux": "^3.0.4",
9092 "redux-simple-router": "0.0.10",
9193 "redux-thunk": "^1.0.0",
92- "sheetify": "github:ahdinosaur/sheetify#realpath",
9394 "uglifyify": "^3.0.1"
9495 }
9596 }
server.jsView
@@ -1,5 +1,6 @@
11 require('babel-core/register')
2+require('css-modules-require-hook')
23
34 const createServer = require('app/server')
45 const config = require('app/config')
56

Built with git-ssb-web