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

generator-tingle

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-tingle

Scaffold for Tingle Component

  • 2.3.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
3
Weekly downloads
 
Created
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

Package last updated on 31 Mar 2016

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