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

generator-kissy-pie

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-kissy-pie

Yeoman Generator for kissy pie

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

A yeoman generator for kissy pie 【v0.2】

Build Status

0.1.x升级0.2.x指南

install

安装yeoman

npm install yo -g

安装Generator

第一步:

$ npm install generator-kissy-pie -g

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

$ mkdir my-app && cd myapp
$ yo kissy-pie #执行yeoman

第三步,创建page

$ yo kissy-pie:page

快速使用

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


    "_kissy_pie" : {
        "groups": {},
        "styleEngine": "sass",
        "defaults": {
            "timestamp": "201279879",
            "buildPages": [ "home/1.0" ]
        }
    }

设置你需要打包的page,原码版本和对应的时间戳:

如,需要将index页面的1.0版本打包到时间戳20130508:

    "defaults": {
                "timestamp": "20130508",
                "buildPages": [ "index/1.0" ]
            }

之后则可以直接使用 grunt 或者 grunt page进行打包,或者使用grunt common对common目录进行打包。 另外还可以使用grunt watch进行文件监控。

命令行

使用命令行将覆盖Gruntfile.js中对于build目标的配置,具体使用如下:

单个页面:
     *          打包:     `grunt page --target home/1.0 --ts 20130412`
     *          watch:    `grunt watch --target home/1.0 --ts 20130412`      
多个页面:
     *          打包:     `grunt page --target home/1.0,intro/2.0 --ts 20130506`
     *          watch:    `grunt watch --target home/1.0,intro/2.0 --ts 20130506`

Keywords

FAQs

Package last updated on 27 Jul 2013

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