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

@wangjiang988/easycode

v1.0.7

Published

auto generate project

Downloads

2

Readme

刷新 模板库

进入项目文件夹下 初始化项目配置文件 easy config init

生成 easycode.yml 及templates文件夹到当前项目路径 其他命令必须在 easycode.yml所在路径下执行

模板库项目可以参考 https://github.com/wangjiang988/easytpl_java

新增过模板后,更新配置文件的模板库 easy config refresh

代码生成

easy make 模板名(模板组名) 如 easy make demo

注:项目下的 simple-curd 为一个模板组,可参考这个去做项目。支持mysql的实体类字段的自动初始化

制作模板

easy template make 文件路径

模板语法解析

tpl中的语法解析

/**   
* ***** 模板定义 ******  
* @name    Entity  
* @filename    <{root.group.model}>Entity  实际生成的文件名
* @description    实体类  
* @ext    java  实际生成的文件名后缀
* @targetPath    @projectRoot/<{root.project_name}>-domain/src/main/java/<{root.metadata.basePackagePath}>/<{root.project_name}>/domain/entity  实际文件生成所在的文件夹地址
* @javaFieldParser <{root.group.table_name}>  模板组解析数据库表字段
*  
* ***** 模板变量定义 ******  
* @variable    desc|<{root.group.model_desc}>实体类|待生成文件描述    
*/

使用方法

npm i -g @wangjiang988/easycode

查看命令行是否可以使用easy命令,如果不可以,请看下你的环境变量是否有npm的执行路径

windows 推荐使用 git bash 命令行执行

如果输入easy 报错,请到我的git 项目地址拷贝最新代码 替换到你本地安装的路径。具体路径可以百度查询 npm -g安装的路径在哪里

详细说明地址 不定时跟新

https://wangjiang988.github.io/2020/05/11/easycode/