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

jin-pack

v1.2.0

Published

气死人,打包器!!!💪

Downloads

24

Readme

神奇的打包器

背景

为了实现前端框架的工具化、产品化,提高前端业务开发效率,提供稳定、高质量开发体验,故而开发了这个打包器

VUE + SSR解决方案在热开发过程中,会随着业务规模、方案复杂度,导致项目臃肿,本地开发效率变慢。故而抽离打包器作为一个基础工具,提供一致接口。

打包方案是Webpack社区提供的多方面的提升效率方案

使用

本地开发模式

$ cd YourProject
$ yarn add jin-pack --dev
$ ./node_modules/.bin/jIn start ./build

// build 文件夹下存放 template 配置文件,client配置文件, server 配置文件
// 指定启动文件即app.js,

生产打包模式

$ cd YourProject
$ yarn add jin-pack --dev
$ ./node_modules/.bin/jIn build ./build

// build 文件夹下存放 template 配置文件,client配置文件, server 配置文件

图片压缩工具 ~~ 批量压缩,如遇多彩图片请使用其它工具压缩 ~~

$ cd YourProject
$ yarn add jin-pack --dev
$ ./node_modules/.bin/jIn zip ./src/images

Interface

目录接口 项目根路径下提供自定义的webpack配置文件,为提高本地开发效率,本地开发时会自动配置本地开发的,效率方案:

具体如下:

./build

webpack.client.config.js

webpack.server.config.js

webpack.template.config.js

webpack.dll.config.js

apps.js

需修改,apps.js,暴露动态设置vue服务端渲染render函数,并加载 express 配置项