Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-kissy-cake

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-kissy-cake

Yeoman Generator for KISSY-Cake

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

A yeoman generator for KISSY-Cake

Build Status

install

安装yeoman & grunt

npm install yo grunt-cli -g

安装Generator

第一步:

$ npm install generator-kissy-cake -g

第二步, 在你的应用目录内:

$ mkdir my-app && cd myapp
$ yo kissy-cake # 初始化目录

第三步,创建page

$ yo kissy-cake:page

快速使用

打开abc.json,找到这个部分:


    "_kissy_cake" : {
        "groups": {},
        "styleEngine": "sass",
        "defaults": {
            "pages": [ "home" ],
            "widgets": [ "tooltip" ]
        }
    }

设置你需要打包的page,和widget:

如,需要打包index页面,以及widget slide:

    "defaults": {
        "pages": [ "index" ],
        "widgets": [ "slide" ]
    }

从KISSY-Pie迁移到KISSY-Cake

使用yo kissy-cake:migrate来进行目录的迁移

查看版本信息以及命令列表

  • yo kissy-cake:help

指定打包目录

KISSY-Cake默认将所有文件从src打包到build,你也可以指定需要打包到的目录:

grunt --buildTo myBuild

Keywords

FAQs

Package last updated on 21 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc