Skip to content

Commit

Permalink
Update Linaria setup (#77)
Browse files Browse the repository at this point in the history
Linaria now has a webpack loader and supports object Literals via a Babel plugin
  • Loading branch information
satya164 authored and MicheleBertoli committed Dec 29, 2017
1 parent 3205699 commit 3ffe8c0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For example, if a package supports the css file extraction you can run the autop
| [i-css](https://github.com/irom-io/i-css) | 1.0.4 ||||| |
| [j2c](https://github.com/j2css/j2c) | 0.10.0 | |||||
| [jsxstyle](https://github.com/petehunt/jsxstyle) | 0.0.14 || | || |
| [linaria](https://github.com/callstack-io/linaria) | 0.0.2-alpha.0 |||| ||
| [linaria](https://github.com/callstack-io/linaria) | 0.5.0 |||| ||
| [pre-style](https://github.com/soluml/pre-style) | 1.0.9-alpha | ||| ||
| [radium](https://github.com/FormidableLabs/radium) | 0.13.5 ||||| |
| [react-css-builder](https://github.com/jhudson8/react-css-builder) | 0.2.0 | | | || |
Expand Down
6 changes: 1 addition & 5 deletions linaria/.babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"presets": [
"env",
"react",
["linaria/babel", {
"single": true,
"filename": "styles.css",
}]
"react"
]
}
18 changes: 9 additions & 9 deletions linaria/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"author": "Michele Bertoli",
"license": "MIT",
"dependencies": {
"linaria": "0.0.2-alpha.0",
"react": "^15.6.1",
"react-dom": "^15.6.1"
"linaria": "0.5.0",
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-preset-env": "^1.6.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"css-loader": "^0.28.7",
"extract-text-webpack-plugin": "^3.0.0",
"style-loader": "^0.18.2",
"webpack": "^3.3.0"
"extract-text-webpack-plugin": "^3.0.2",
"style-loader": "^0.19.1",
"webpack": "^3.10.0"
}
}
3 changes: 0 additions & 3 deletions linaria/styles.css

This file was deleted.

4 changes: 1 addition & 3 deletions linaria/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ module.exports = {
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
}
use: ['babel-loader', 'linaria/loader']
},
{
test: /\.css$/,
Expand Down

0 comments on commit 3ffe8c0

Please sign in to comment.