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

@qihoo/seapp-builder

v1.1.9

Published

a compiler for 360 mp or gp

Downloads

12

Readme

seapp builder

  1. 360 小程序构建工具,用于构建开发者基于360小程序开发文档编写的源代码,使其能够运行在360小程序平台。
  2. 360 小游戏构建工具,用于构建开发者基于微信小游戏编写的源代码,使其能够运行在360小游戏平台。

TIP

v1.1.x 小程序

  • 支持 css 预处理器 Sass/Less
    • 默认支持的预处理器由 全局样式表app.css决定(app.scss -> 选用sass,less同理)
    • 存在 app.css/app.less/app.scss 时, 优先选择权 app.scss > app.less > app.css
  • 支持 vuex 状态管理
    • 需要在根目录下的app.json文件中添加 store 字段,store 类型为字符串,值为 store文件相对路径(参考pages的路径规则)。
    • store文件中,直接导出Vuex.store实例化的参数选项即可。
    • Vuex默认挂在到全局的window下。

v1.1.x 小游戏

  • 支持 qhgame-adapter.js自动引入

  • 支持 开发模式下的wacht功能

  • 支持 生产环境下的代码压缩功能

ENV

  • node >= 8.9
  • npm | yarn
  • 以下使用 npx 时要求 npm >= 5.2

Install

npm install @qihoo/seapp-builder

Usage

在 360mp 项目下使用

Usage: builder <command> [options]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  build          build project in production mode
  watch          build project in development mode and watch file  

  Run builder <command> --help for detailed usage of given command.

在 360gm 项目下使用

Usage: gamebuilder <command> [options]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  build          build project in production mode
  watch          build project in development mode and watch file  

  Run gamebuilder <command> --help for detailed usage of given command.

在 package.json 中配置使用

一、小程序

{
  "scripts": {
    "serve": "builder watch",
    "build": "builder build"
  }
}

二、小游戏

{
  "scripts": {
    "serve": "gamebuilder watch",
    "build": "gamebuilder build"
  }
}

通过 npx | yarn 使用

  • 已项目安装
# 可以监听项目文件 实时构建
1. 小程序:`npx builder watch`

2. 小游戏: `npx gamebuilder watch`

# 构建生产环境目标文件
1. 小程序:`npx builder build`

2. 小游戏:`npx gamebuilder build`
  • 已按照上述步骤在 package.json 中添加了 scripts
# 可以监听项目文件 实时构建
npm run serve

# 构建生产环境目标文件
npm run build