├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── build
└── .gitkeep
├── package.json
├── src
├── components
│ ├── header.tag
│ ├── itemlist.tag
│ └── menu.tag
├── css
│ └── index.css
├── event-helper.js
├── index.html
├── index.js
├── pages
│ ├── home.tag
│ └── projects.tag
├── router.js
└── stores
│ └── itemstore.js
└── webpack.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | .DS_Store
4 | build
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | This file contains all notable changes.
4 |
5 | ### 1.0.0 - 2015-06-22
6 |
7 | #### Added
8 |
9 | * Initial version
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 webkid
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Riot Starterkit
2 |
3 | With this starterkit we want to provide **a simple foundation for Riot applications**. We are using the riot router and a flux inspired event controller called RiotControl.
4 | If you have any ideas on how to improve/simplify the structure you are welcome to help us.
5 |
6 | This starterkit is based on:
7 |
8 | * [Riot](https://muut.com/riotjs/)
9 | * [RiotControl](https://github.com/jimsparkman/RiotControl/)
10 | * [PostCSS](https://github.com/postcss/postcss)
11 | * [Webpack](http://webpack.github.io/)
12 |
13 | We are also using the following postcss plugins to process the CSS:
14 |
15 | * [postcss-import](https://github.com/postcss/postcss-import)
16 | * [postcss-nested](https://github.com/postcss/postcss-nested)
17 | * [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties)
18 | * [autoprefixer](https://github.com/postcss/autoprefixer)
19 | * [csswring](https://github.com/hail2u/node-csswring)
20 |
21 |
22 | ## Get the kit
23 |
24 | ```
25 | $ git clone git@github.com:wbkd/riotjs-startkit.git && cd riotjs-startkit
26 | ```
27 |
28 | ## Installation
29 |
30 | ```
31 | $ npm install
32 | ```
33 |
34 | ## Development
35 |
36 | ```
37 | $ npm run dev
38 | ```
39 |
40 | Now the server is runnning on localhost:1337
41 |
42 |
43 | ## Build
44 |
45 | ```
46 | $ npm run build
47 | ```
48 |
49 |
50 |
51 | Thanks to https://github.com/txchen/feplay/tree/gh-pages/riot_webpack for a lot of concepts on how to structure the app.
--------------------------------------------------------------------------------
/build/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wbkd/riotjs-startkit/a98488fc8b8b20d3281b749a05af5b1ba5a03f07/build/.gitkeep
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "riot-startkit",
3 | "version": "1.1.0",
4 | "description": "A Riot - PostCSS - Webpack startkit from wbkd.io",
5 | "main": "webpack.config.js",
6 | "scripts": {
7 | "html": "cpy ./src/index.html ./build/",
8 | "bundle": "webpack -p -d --progress --colors",
9 | "build": "npm-run-all html bundle",
10 | "serve": "webpack-dev-server --hot",
11 | "dev": "npm-run-all html serve"
12 | },
13 | "author": "webkid.io",
14 | "license": "MIT",
15 | "dependencies": {
16 | "normalize.css": "^3.0.3",
17 | "npm-run-all": "^1.3.2",
18 | "riot": "^2.3.11",
19 | "riotcontrol": "0.0.1"
20 | },
21 | "repository": {
22 | "type": "git",
23 | "url": "https://github.com/wbkd/riotjs-startkit.git"
24 | },
25 | "devDependencies": {
26 | "autoprefixer": "^6.3.3",
27 | "babel": "^5.4.7",
28 | "babel-core": "^5.4.7",
29 | "babel-loader": "^5.1.3",
30 | "cpy": "^3.4.1",
31 | "css-loader": "^0.23.0",
32 | "csswring": "^4.0.0",
33 | "postcss-custom-properties": "^5.0.0",
34 | "postcss-import": "^7.1.3",
35 | "postcss-loader": "^0.8.0",
36 | "postcss-nested": "^1.0.0",
37 | "riotjs-loader": "^1.1.3",
38 | "style-loader": "^0.13.0",
39 | "webpack": "^1.9.10",
40 | "webpack-dev-server": "^1.9.0"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/components/header.tag:
--------------------------------------------------------------------------------
1 | import './menu.tag';
2 |
3 | Test Application
5 |
6 | { opts.title }
3 |
4 |
5 |
7 |
8 |
20 |
9 | Lorem ipsum dolor sit amet, consectetur adipisicing elit. 10 | Aspernatur quia soluta optio excepturi, earum saepe explicabo veritatis fuga nesciunt, reprehenderit harum. 11 | Libero consequuntur neque fuga eos, aliquam id beatae eaque? 12 |
13 |