Socket
Socket
Sign inDemoInstall

generator-tingle

Package Overview
Dependencies
423
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    generator-tingle

Scaffold for Tingle Component


Version published
Weekly downloads
2
increased by100%
Maintainers
3
Install size
27.5 MB
Created
Weekly downloads
 

Readme

Source

generator-tingle

tingle 组件的脚手架

Install

全局安装脚手架工具 yo

$ npm install yo -g

全局安装 tingle 组件脚手架

$ npm install generator-tingle -g

Usage

创建组件

创建组件,比如 tingle-your-component 组件

$ mkdir tingle-your-component // 创建组件目录
$ cd tingle-your-component
$ yo tingle:component // 使用脚手架,根据提示按步骤执行
$ npm install // 安装依赖

组件目录名称命名规则:

  • 必须以tingle-为前缀
  • 多个单词必须使用-分割
  • 字母全部小写
  • 不建议包含下划线及特殊字符

组件开发

$ gulp d // 启动本地的开发服务器

执行了上面的命令后,会调起系统默认的浏览器,此时对 srcdemo 目录下的文件做出的任何更改,都会自动触发demo.js 的重新构建,浏览器也会自动刷新,enjoy!

组件构建

$ gulp b

History

请移步这里 change log

Keywords

FAQs

Last updated on 31 Mar 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc