-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
117 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "riot-mui", | ||
"description": "Set of material ui components for riot js.", | ||
"main": "build/bundle.js", | ||
"authors": [ | ||
"Anton Miroshnichenko" | ||
], | ||
"license": "MIT", | ||
"keywords": [ | ||
"riot", | ||
"mui", | ||
"material", | ||
"interface" | ||
], | ||
"homepage": "https://github.com/kysonic/riot-mui", | ||
"moduleType": [ | ||
"es6", | ||
"node" | ||
], | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require('material-elements/material-input/material-input.scss'); | ||
require('material-elements/material-input/material-input.tag'); | ||
require('material-elements/material-checkbox/material-checkbox.scss'); | ||
require('material-elements/material-checkbox/material-checkbox.tag'); | ||
require('material-elements/material-button/material-button.scss'); | ||
require('material-elements/material-button/material-button.tag'); | ||
<app> | ||
<form style="max-width: 550px;padding: 20px"> | ||
<form style="max-width: 550px;padding: 20px"> | ||
<material-input laebel="Label" type="email"></material-input> | ||
<material-checkbox>Sign UP</material-checkbox> | ||
<material-button style="margin-top: 10px"> | ||
<div class="text">Submit</div> | ||
</material-button> | ||
</form> | ||
</form> | ||
</app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var riot = require('riot'); | ||
// Provide some settings | ||
riot.settings.brackets = '{{ }}'; | ||
// Get application tag and mount it! Yeah baby! | ||
require('./app.tag'); | ||
riot.mount('app'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "demo-riot-mui", | ||
"version": "1.0.0", | ||
"description": "Demo app for riot mui", | ||
"author": "Anton Miroshnichenko", | ||
"devDependencies": { | ||
"babel": "^5.8.23", | ||
"babel-core": "^5.8.25", | ||
"babel-loader": "^5.3.2", | ||
"css-loader": "^0.20.2", | ||
"node-sass": "^3.3.3", | ||
"riot": "^2.2.4", | ||
"riotjs-loader": "^1.2.0", | ||
"sass-loader": "^3.0.0", | ||
"style-loader": "^0.13.0", | ||
"webpack": "^1.12.2", | ||
"webpack-dev-server": "^1.12.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
entry: './app/index', | ||
output: { | ||
path: __dirname + '/build/', | ||
filename: 'bundle.js' | ||
}, | ||
resolve: { | ||
modulesDirectories: [__dirname + '/node_modules',__dirname + '/bower_components/riot-mui/src'] | ||
}, | ||
plugins: [ | ||
new webpack.ProvidePlugin({ | ||
riot: 'riot' | ||
}), | ||
new webpack.HotModuleReplacementPlugin() | ||
], | ||
module: { | ||
preLoaders: [ | ||
{ test: /\.tag$/, exclude: /node_modules/, loader: 'riotjs-loader', query: { type: 'none' } } | ||
], | ||
loaders: [ | ||
{ test: /\.js|\.tag|\.es6$/, exclude: /node_modules/, loader: 'babel-loader' }, | ||
{ test: /\.scss$/, loaders: ["style", "css", "sass"]} | ||
] | ||
}, | ||
devServer: { | ||
contentBase: './build/', | ||
historyApiFallback: true, | ||
hot: true, | ||
inline: true, | ||
progress: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters