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

create-ce

v0.2.3

Published

此框架用于electron 小程序开发启动框架使用

Downloads

31

Readme

create-ce 是一个 ce 引擎启动框架

此框架用于electron 小程序开发启动框架使用

此框架还在升级中,兼容electron ,支持win 。 1.0.4 版本新增适配小程序跟electron应用程序小程序 跟 electron应用 可以共用一个 ce-core 依赖

项目使用

第一步安装依赖

pnpm install
然后进入 ce ./renderer 在进行视图依赖安装 pnpm install

第二步启动项目

pnpm dev:vite   然后在启动  pnpm dev:electron

第三步打包项目 说明小程序打包实际大小很。

pnpm build:vite  然后在打包electron 
pnpm build:electron

如果你安装了【CodeEngine】软件
那么你可以打包成小程序 
pnpm build:ce  

小程序启动实现案例

code-engine code-engine 是利用electron框架,通过 process.argv 获取appid,来切换不同的小程序。 https://github.com/impohcom/code-engine

模块更新记录

  1. 升级electron,升级sqlite3,实现主程序跟视图 单开吊用,升级小程序启动方式,移除历史store,小程序数据存储进 sqlite数据库中
  2. 更新模块 process.env , 用于跟视图通讯,改写视图 Module 方法,实现主程序跟渲染程序同步

生命周期

  1. beforeCreate(创建前)
  2. created (创建后)

搭建第一个 ce 项目

兼容警告

ce 需要 Node.js版本 14.18+,16+。然而,有些模板需要依赖更高的 Node 版本才能正常运行,当你的包管理器发出警告时,请注意升级你的 Node 版本。

使用 NPM:

$ npm create ce@latest

使用 Yarn:

$ yarn create ce

使用 PNPM:

$ pnpm create ce

然后按照提示操作即可!

你还可以通过附加的命令行选项直接指定项目名称和你想要使用的模板。例如,要构建一个 Vite + Vue 项目,运行:

# npm 6.x
npm create ce@latest my-vue-app --template vue

# npm 7+, extra double-dash is needed:
npm create ce@latest my-vue-app -- --template vue

# yarn
yarn create ce my-vue-app --template vue

# pnpm
pnpm create ce my-vue-app --template vue

查看 create-vite 以获取每个模板的更多细节:ce,vanillavanilla-ts, vue, vue-tsreactreact-tsreact-swcreact-swc-tspreactpreact-tssveltesvelte-ts