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

jresplus

v0.3.24

Published

恒生移动web应用平台(Light)快速开发集成工具箱

Downloads

80

Readme

工具使用4个命令辅助应用开发(实际使用时以工具帮助信息输出为准)

建议使用最新版本的nodejs,最小版本>0.12.X

使用模块化标记view,component,snippet时,请使用自闭和标签,示例:<view id="xxx"> 或者<view id="xxx"/> ;

命令入口:jres或者jresplus或者light都可以

示例:light release

create:

  • 命令用途:创建工程(可指定参考模板)
  • 命令格式:light create [folder name] [-n <project name>] [-t <type>];
  • 可选参数[folder name],用于指定创建的工程所在的文件夹名称,默认为当前目录
  • 可选参数[-n],用于指定创建的工程名称,默认为myProject;
  • 可选参数[-t],用于指定工程模板(在工具根目录下的template目录下,默认有两套模板空白【blank】,示例【demo】不指定时使用空白模板),使用[-t]参数后,在后面明确指出使用模板的名称,工具会使用指定的模板生成工程;
  • 示例: light create –n demo –t demo

gen:

  • 命令用途:根据应用页(index.html)中的视图标记,生成视图代码逻辑;
  • 命令格式:light gen,会生成该视图相关的html和js代码;
  • 可选参数[-t],用于指定生成代码时参考的工程模板(在工具根目录下的template目录下,默认有两套模板空白【blank】,示例【demo】不指定时使用空白模板);

release:

  • 命令用途:集成编译发布;
  • 命令格式:light release [-w][-u][-e][-d][-p][-s][-b];
  • 可选参数[-w]:开启变更监控模式,如果有变更自动重新release(参考-w时的release命令);
  • 可选参数[-u]:开启优化项-资源压缩合并(js\css);
  • 可选参数[-e]:开启优化项-图片编码(BASE64);支持内联格式的图片编码
  • 可选参数[-s]:开启优化项-资源增加后缀策略(md5,随机数,时间戳);
  • 可选参数[-d]:开启部署项-部署到指定的目录
  • 可选参数[-p]:开启部署项-打成zip包(包含版本);
  • 可选参数[-b <brower>]:打开浏览器(只支持windows);

server:

  • 命令用途:提供静态的web服务器和web容器支持,与release命令结合使用。
  • 命令格式:light server [-p <port>]
  • 可选参数:[-p]:用于指定启动的http端口;
  • 可选参数:[-r]:用于指定资源目录,默认wwwroot;

加入我们

  • 技术交流群(QQ):339253308 ;
  • 成为Light上的开发者或访问Light上的应用;访问light官网
  • 访问恒生研发中心官方微信“微信里搜索 恒生研发中心”,关注Light动态,访问应用广场;