├── .babelrc
├── .editorconfig
├── .eslintrc
├── .gitignore
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── src
├── app.vue
├── main.js
├── pages
│ ├── about.vue
│ ├── dynamic-route.vue
│ ├── form.vue
│ ├── home.vue
│ ├── not-found.vue
│ ├── panel-left.vue
│ └── panel-right.vue
└── routes.js
└── www
├── .gitkeep
├── css
├── app.css
└── icons.css
├── index.html
└── js
└── .keep
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015"],
4 | "stage-2"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | .root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "standard",
3 | "plugins": [
4 | "html"
5 | ],
6 | "env": {
7 | "jasmine": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | www/js/build.js
4 | www/fonts
5 | www/css/build.css
6 | www/css/framework7.css
7 | www/css/framework7.min.css
8 |
9 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Vladimir Kharlampidi
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.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ⛔️ DEPRECATED
2 |
3 | **This repo is deprecated and not mainted any more. Use [Framework7-CLI](https://framework7.io/cli/) instead. Please, don't open new issues and don't send any PRs to this repository**
4 |
5 | # Framework7 Vue Browserify Template
6 | Framework7 Vue with Browserify starter app template with hot-reload & css extraction. Based on [Vue Browserify Boilerplate](https://github.com/vuejs-templates/browserify)
7 |
8 | ## Usage
9 |
10 | ### 1. Download this repository
11 | ```
12 | git clone https://github.com/framework7io/framework7-template-vue-browserify my-app
13 | ```
14 |
15 | Repository will be downloaded into `my-app/` folder
16 |
17 | ### 2. Instal dependencies
18 |
19 | Go to the downloaded repository folder and run:
20 | ```
21 | npm install
22 | ```
23 |
24 | This will download latest version of Framework7, Framework7-Vue, Vue and required icon fonts (to `/www/fonts/`)
25 |
26 | ### 3. Run the app
27 |
28 | ```
29 | npm run serve
30 | ```
31 |
32 | App will be opened in browser at `http://localhost:8080/`
33 |
34 | ### 4. Build app for production
35 |
36 | ```
37 | npm run build
38 | ```
39 |
40 | The output will be at `www/` folder
41 |
42 | ## Use with cordova
43 |
44 | Just put the contents of `www` folder in your cordova's project root `www` folder
45 |
46 | ## One command install
47 |
48 | ```
49 | git clone https://github.com/framework7io/framework7-template-vue-browserify my-app &&
50 | cd my-app &&
51 | npm install &&
52 | npm run dev
53 | ```
54 |
55 | ## Build Setup
56 |
57 | ``` bash
58 | # install dependencies
59 | npm install
60 |
61 | # serve with hot reload at localhost:8080
62 | npm run dev
63 |
64 | # build for production with minification
65 | npm run build
66 | ```
67 |
68 | ## Project Structure
69 |
70 | * `src/components` - folder with custom `.vue` components
71 | * `src/pages` - app `.vue` pages
72 | * `src/main.js` - main app file where you include/import all required libs and init app
73 | * `src/routes.js` - app routes
74 | * `src/app.vue` - main app structure/component
75 | * `www/css` - app styles, put custom app CSS styles here as well
76 | * `www/css/build.css` - Vue components styles will be extracted here on `npm run build`
77 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "framework7-template-vue-browserify",
3 | "version": "2.0.0",
4 | "description": "Framework7 Vue with Browserify starter app template with hot-reload & css extraction",
5 | "repository": {
6 | "type": "git",
7 | "url": "git+https://github.com/framework7io/framework7-template-vue-browserify.git"
8 | },
9 | "keywords": [
10 | "ios",
11 | "browserify",
12 | "framework7",
13 | "f7",
14 | "vue",
15 | "vuejs",
16 | "material",
17 | "mobile",
18 | "app"
19 | ],
20 | "author": "Vladimir Kharlampidi",
21 | "license": "MIT",
22 | "bugs": {
23 | "url": "https://github.com/framework7io/framework7-template-vue-browserify/issues"
24 | },
25 | "homepage": "http://framework7.io/vue/",
26 | "scripts": {
27 | "watchify": "watchify -vd -p browserify-hmr -e src/main.js -o www/js/build.js",
28 | "serve": "http-server ./www/ -o -c 1 -a localhost",
29 | "dev": "npm-run-all --parallel watchify serve",
30 | "build": "cross-env NODE_ENV=production browserify -g envify -p [ vueify/plugins/extract-css -o www/css/build.css ] -e src/main.js | uglifyjs -c warnings=false -m > www/js/build.js",
31 | "copy-f7": "cpy node_modules/framework7/dist/css/framework7.css www/css && cpy node_modules/framework7/dist/css/framework7.min.css www/css && cpy node_modules/framework7-icons/fonts/*.* www/fonts && cpy node_modules/material-design-icons/iconfont/*.{eot,ttf,woff,woff2} www/fonts",
32 | "postinstall": "npm run copy-f7"
33 | },
34 | "browser": {
35 | "vue": "vue/dist/vue.common.js"
36 | },
37 | "browserify": {
38 | "transform": [
39 | [
40 | "babelify",
41 | {
42 | "presets": [
43 | "es2015"
44 | ]
45 | }
46 | ],
47 | "vueify"
48 | ]
49 | },
50 | "dependencies": {
51 | "framework7": "^2.2.5",
52 | "framework7-icons": "^0.8.9",
53 | "framework7-vue": "^2.2.5",
54 | "material-design-icons": "^3.0.1",
55 | "vue": "^2.5.2"
56 | },
57 | "devDependencies": {
58 | "babel-core": "^6.22.1",
59 | "babel-plugin-transform-runtime": "^6.22.0",
60 | "babel-preset-es2015": "^6.24.1",
61 | "babel-preset-stage-2": "^6.22.0",
62 | "babel-runtime": "^6.0.0",
63 | "babelify": "^8.0.0",
64 | "browserify": "^15.2.0",
65 | "browserify-hmr": "^0.3.6",
66 | "cpy-cli": "^1.0.1",
67 | "cross-env": "^2.0.0",
68 | "envify": "^4.1.0",
69 | "http-server": "^0.11.1",
70 | "npm-run-all": "^2.3.0",
71 | "proxyquireify": "^3.0.1",
72 | "uglify-js": "^2.5.0",
73 | "vueify": "^9.4.1",
74 | "watchify": "^3.10.0"
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/src/app.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | Click Sign In to close Login Screen Here is About page! You can go Mauris posuere sit amet metus id venenatis. Ut ante dolor, tempor nec commodo rutrum, varius at sem. Nullam ac nisi non neque ornare pretium. Nulla mauris mauris, consequat et elementum sit amet, egestas sed orci. In hac habitasse platea dictumst. Fusce eros lectus, accumsan eget mi vel, iaculis tincidunt felis. Nulla tincidunt pharetra sagittis. Fusce in felis eros. Nulla sit amet aliquam lorem, et gravida ipsum. Mauris consectetur nisl non sollicitudin tristique. Praesent vitae metus ac quam rhoncus mattis vel et nisi. Aenean aliquet, felis quis dignissim iaculis, lectus quam tincidunt ligula, et venenatis turpis risus sed lorem. Morbi eu metus elit. Ut vel diam dolor. Here is your blank Framework7 app. Let's see what we have here. Sorry Requested content not found. Left panel content goes here Right panel content goes here
6 |
21 |
11 |
13 |
16 |
18 |