Socket
Socket
Sign inDemoInstall

jdtpl-generator

Package Overview
Dependencies
5
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jdtpl-generator

a tool to generator project file system


Version published
Maintainers
1
Install size
307 kB
Created

Readme

Source

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端脚本和样式修正

Keywords

FAQs

Last updated on 14 Aug 2015

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