2.1.3 • Published 8 years ago

generator-cells v2.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

generator-cells

Generates an scaffold for a Cells component using Yeoman.

Install

npm i -g git+ssh://git@globaldevtools.bbva.com:7999/ctool/generator-cells.git

Usage

Install Yeoman if you don't have it installed globally.

npm i -g yo

Available commands

  • yo cells:component generates a Web Component.
  • yo cells:behavior generates a Polymer Behavior.
  • yo cells:theme generates a theme.
  • yo cells:data-manager generates a Data Manager.

Command line options

The flag --skip-prompts will generate the component with the options specified in a .yo-rc.json file.

yo cells:component --skip-prompts

The file must exist in the directory where the commnand is executed.

Check out Yeoman Storage API for more information.

Example .yo-rc.json file

{
  "generator-cells": {
    "theme": {
      "name": "some-theme",
      "coronitaFonts": true,
      "coronitaColors": true,
      "hybrid": false
    },
    "behavior": {
      "name": "some-behavior",
      "description": "My fabulous behavior",
      "hybrid": false
    },
    "component": {
      "name": "some-component",
      "description": "My awesome component",
      "hybrid": false,
      "i18n": true,
      "extras": false,
      "useTheme": true,
      "themeName": [
        {
          "theme": "cells-coronita-theme",
          "version": "^1.0.0"
        },
        {
          "theme": "cells-banking-theme",
          "version": "^0.X.0"
        }
      ],
      "useIcons": true,
      "iconsName": [
        {
          "name": "coronita-icons",
          "version": "^3.0.0"
        }
      ]
    },
    "data-manager": {
      "name": "some-datamanager",
      "description": "Datamanager description",
      "genericDp": false,
      "hybrid": false
    }
  }
}

Adding new subgenerators

First, install generator-generator globally.

npm i -g yo generator-generator

Then create a new subgenerator:

cd generator-cells
yo generator:subgenerator <name>

This will create a folder with the specified name and test files for the new subgenerator.

Running tests

cd generator-cells && npm install
npm run test
2.1.3

8 years ago

2.0.1

8 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.19.0

9 years ago

0.18.0

9 years ago

0.17.0

9 years ago

0.16.0

9 years ago

0.15.0

9 years ago

0.14.0

9 years ago

0.13.0

9 years ago

0.12.0

9 years ago

0.11.0

9 years ago

0.10.0

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

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago