npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jdtpl-generator

v0.3.39

Published

a tool to generator project file system

Downloads

32

Readme

template project generator.

Quick Start

Create the app:

$ npm install -g jdtpl-generator

use example:

$ tpl -s 300/200 -m

$ tpl -h

  Usage: tpl [options] <pra ...>

 Options:

   -h, --help                      output usage information
   -V, --version                   output the version number
   -s, --size [width/height]       设置广告位生成的高宽
   -n, --name [value]              设置项目名称,默认为template
   -p, --path                      在当前目录下生成项目
   -j, --less [jdAd320-250|.....]  手动选择样式
   -f, --force                     强制覆盖非空目录
   -t, --theme [normal|adx]        设置样式主题
   -m, --mobile                    使用移动端的脚本和样式
   -a, --author [value]            设置备注信息,如作者之类
   -l, --list                      列出所有样式
tpl -s 500/300 -t adx -a 增加全球购标签 -m

生成 宽高为500,300的模板项目, adx主题样式(默认配置,可不写),备注为增加全球购标签, 使用移动端样式和脚本

tpl -s jdAd644-90

使用jdAd644-90.less生产css; 共jdAd320-250|jdAd200-300|jdAd644-90|jdAd1000-90|jdAd320-80|jdAd160-600|jdAd200-200七种样式


tpl -p 在当前文件夹下生成项目

默认在当前文件夹下建立新的项目

tpl -f

强制覆盖原来的文件

##生成模板项目后的使用

  1. 首先安装grunt插件
npm install
  1. 运行grunt
grunt dev //生成开发环境下的文件,可以插入测试数据直接调试,使用生成的本地脚本和样式文件

grunt proc //生成生成环境的文件,文件位于dist/html中
  1. 发布 grunt publish:id

License (MIT)

##ISSUE

###0.3.35 修复grunt write一些问题 ###0.3.34 增加svn管理广告位的功能 ###0.3.33 修复移动端脚本问题 ###0.3.32. 修改移动端主题名称和价格加载判断店铺逻辑 ###0.3.31. 修复好评的问题 ###0.3.30. 修复脚本问题和模板的bug ###0.3.28. 移动端脚本和样式修改 ###0.3.27. 修正grunt发布流程,修改好评数的展示问题 ###0.3.26. logo和样式修正 ###0.3.25. pc端脚本和样式修正