0.13.1 • Published 9 years ago

generator-koa-theme v0.13.1

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

npm

generator-koa-theme

Scaffold out a King of App theme.

Install

  1. If you haven't, install Yeoman and Bower:

    npm install -g bower
    npm install -g yo
  2. Then, install the generator-koa-theme:

    npm install -g generator-koa-theme

Getting started

  1. Download and start the King of App visualizer.

    git clone -b dev git@github.com:KingofApp/com.kingofapp.visualizer.git
    cd com.kingofapp.visualizer
    npm start
  2. Go to themes path and create a new theme with the generator.

    cd com.kingofapp.visualizer/app/themes
    yo koa-theme mythemename

    Note: mythemename will be the ID of the theme.

    Now, you have a scaffold like this:

    koapp-theme-mythemename
    ├── elements
    │   ├── mythemename-badge
    │   │    ├── demo
    │   │    │   └── index.html
    │   │    └── mythemename-badge.html
    │   ├── ...
    │
    ├── styles
    │   ├── default-theme.html
    │   └── main.css
    ├── .bowerrc
    ├── .gitignore
    ├── bower.json
    ├── config.json
    └── koapp-theme-mythemename.html
  3. Update the theme object in the app/core/structure.json:

    {
      "config": {
        ...
        "theme": {
          "identifier": "koapp-theme-mythemename",
          "path": "themes/koapp-theme-mythemename/koapp-theme-mythemename.html"
        },
        ...
      },
      ...
    }
  4. Begins to change all elements as you want!

You can see the changes:

  • In the visualizer app: http://localhost:9001
  • In each element demo. Example: http://localhost:9001/themes/koapp-theme-mythemename/elements/mythemename-button/demo/
0.13.1

9 years ago

0.13.0

9 years ago

0.12.4

9 years ago

0.12.3

9 years ago

0.12.2

9 years ago

0.12.1

9 years ago

0.12.0

9 years ago

0.11.1

9 years ago

0.11.0

9 years ago

0.10.0

9 years ago

0.9.5

9 years ago

0.9.4

9 years ago

0.9.3

9 years ago

0.9.2

9 years ago

0.9.1

9 years ago

0.9.0

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.4

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.9

10 years ago

0.4.8

10 years ago

0.4.7

10 years ago

0.4.6

10 years ago

0.4.5

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago