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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@molecularjs/modules

v2.2.6

Published

基于 `@molecularjs/builder` 构建能够支持页面编辑的组件模块(Component)和管道逻辑(Pipeline)。

Downloads

4

Readme

Molecular Basic Module

基于 @molecularjs/builder 构建能够支持页面编辑的组件模块(Component)和管道逻辑(Pipeline)。

如何安装

# yarn
yarn add @molecularjs/modules
# npm
npm install @molecularjs/modules --save

开发

  1. molecularjs 目录,克隆本项目
  2. 切换到分支 dev/2.0
  3. 安装依赖 yarn
  4. 执行 yarn compile 构建当前modules,或使用 yarn compile:src 使用SDK源代码构建
  5. 执行 yarn emit 输出 demo 的产物代码,或者使用 yarn emit:src 使用SDK源代码输出
  6. 执行 yarn webpack:demo 构建最终产物
  7. 一键启动开发环境(使用SDK源代码编译,可以调试SDK部分代码): 打开终端后执行 yarn watch:bundle,再开一共终端,执行: yarn watch:pack
  8. 修改 scripts/demo.json 后保存,会自动重新编译,并刷新页面看到变化
  9. 自定义demo.json配置文件: 使用 make watch-bundle config=$(your_file_without_ext)./PS.sh1 watch-bundle config=$(your_file_without_ext) 替换 yarn watch:bundle 命令

目录简介

project
  |- src # 模组源代码
    |- core # 重载了一些SDK的定义和builder功能,做了一些扩展
    |- pipelines # 实现了一些Pipelines
    |- components # 实现了一些Cackages
  |- scripts # 一些开发脚本
    |- demo.json # demo的构建配置
    |- *.publish.js # 发布脚本