Skip to content

Commit

Permalink
SuperQuery synthax rewrite, new api design.
Browse files Browse the repository at this point in the history
* `SuperQuery` was rebuilt in order to improve its syntax and readability.
* REMOVED: `configureBreakpoints()` to set custom breakpoints, use `SuperQuery(myCustombreakpoints)` instead
* NEW: **No more `parentheses`**! Now `SuperQuery` has a fluid and human likely style.
  * Before: `SuperQuery().all().and().maxWidth().md().css...`
  * Now: `SuperQuery().all.and.maxWidth.md.css...`
* NEW: `.of(value)` method is introduced for all the cases you need to declare a value.
  * E.g. `SperQuery().minWidth.of('300px').css...`
* `Server Side Render` tested.
  • Loading branch information
themgoncalves committed Nov 23, 2018
1 parent 49cfb00 commit 6ef1f9d
Show file tree
Hide file tree
Showing 35 changed files with 7,648 additions and 8,524 deletions.
27 changes: 21 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
{
"comments": false,
"presets": [
["es2015", {
"loose": true,
}],
"react"
[
"@babel/preset-env",
{
"loose": true
}
],
"@babel/preset-react"
],
"plugins": [
"transform-class-properties",
["transform-object-rest-spread", { "useBuiltIns": true }]
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-proposal-object-rest-spread",
{
"useBuiltIns": true
}
],
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
"@babel/plugin-proposal-export-default-from"
]
}
188 changes: 117 additions & 71 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions configurations/webpack/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
entry: {
index:
[
'babel-polyfill',
'@babel/polyfill',
'./example/index.jsx',
],
},
Expand All @@ -23,7 +23,7 @@ module.exports = {
resolve: {
extensions: ['.js', '.jsx'],
alias: {
'@themgoncalves/super-query': path.resolve(__dirname, '../../source'),
'@themgoncalves/super-query': path.resolve(__dirname, '../../src'),
},
},
module: {
Expand Down
4 changes: 2 additions & 2 deletions configurations/webpack/webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
entry: {
app:
[
'babel-polyfill',
'@babel/polyfill',
'./example/index.jsx',
],
},
Expand All @@ -21,7 +21,7 @@ module.exports = {
resolve: {
extensions: ['.js', '.jsx'],
alias: {
'@themgoncalves/super-query': path.resolve(__dirname, '../../source'),
'@themgoncalves/super-query': path.resolve(__dirname, '../../src'),
},
},
module: {
Expand Down
Loading

0 comments on commit 6ef1f9d

Please sign in to comment.