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

publish-cocos-web

v0.0.8

Published

publish cocos web project to oss(cdn)

Downloads

6

Readme

publish-cocos-web

A tool to publish cocos web project to OSS

[TOC]

Installation

# use taobao proxy
npm config set registry=https://registry.npm.taobao.org/

# install
npm install publish-cocos-web

Usage

Init The Project

PreWork: if there's no package.json file in your project,please run npm init to create one. npm install publish-cocos-web -D install the tool

  1. npx publish-cc init
    • to create .publish-cc.js file
  2. edit the config file .publish-cc.js
  3. [Important] add the filePath .publish-cc.js to .gitignore
  4. [Optional] add publish script task to package.json

package.json

{
    "version":"1.0.1",
    "name":"cocos-example",
    "scripts":{
        "publish":"publish-cc"
    }
}

deploy

  1. edit the package.json's version
  2. npm run build

注: if no -v config is provided, publish-cc will use the package.json's version

# init project(create a .publish-cc.js)
npx publish-cc init

# help
npx publish-cc --help

# start (use the version of the project's package.json file)
npx publish-cc
# or
npx publish-cc -v v11


# or you can add a task to scripts
npm run publish

推荐使用说明

初始化

  1. 项目下面没有package.json的请执行npm init 创建
  2. 安装 publish-cocos-web npm install publish-cocos-web -D
  3. npx publish-cc init 首次创建.public-cc.js
  4. .publish-cc.js 加入到.gitignore文件中,防止秘钥被提交到git
  5. 配置.publish-cc.js文件中的秘钥等字段
  6. pacakge.json文件增加publish脚本
{
    "version":"1.0.0",
     "scripts": {
        "publish": "publish-cc"
      },
}

使用

# 使用package.json中的version作为本次发布的版本文件夹
npm run publish
# or
npx publish-cc

# 使用指定文件夹名v11作为本次发布的版本文件夹
npx publish-cc -v v11

Config

  • log.closeRecordFileUpload: do close the log for each upload file?
  • cdnPath: the path for the oss