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

@hibiscus/cli

v1.0.3

Published

@bss_cli/ng 是基于angular6 + ng-zorro开发的一个快速开发平台。提供前端架构模板以及通用业务代码快捷生成方式;

Downloads

4

Readme

[TOC]

bss_cli脚手架


Usage
npm install @bss_cli/ng -g
概述

@bss_cli/ng 是基于angular6 + ng-zorro开发的一个快速开发平台。提供前端架构模板以及通用业务代码快捷生成方式;

从头开始一个应用

在工作空间中创建application.json。默认位置:d:/workspace/sourceCode

{
    "name": "hibiscus", 
    "production": "hbs",
    "version": "1.0.0",
    "runtimePath": "d:/workspace/runtime",
    "distPath": "d:/workspace/dist",
    "subs": [
        {
            "name": "user-project",
            "modules": [
                {"name": "list"},
                {"name": "detail"}
            ]
        },
        {
            "name": "task-project",
            "modules": [
                {"name": "current"},
                {"name": "history"}
            ]
        },
        {
            "name": "topology"
        }
    ]
}

初始化

D:\sourceCode\cli\cli>bss init
[初始化] [INFO] 当前操作为Windows_NT
? 请输入产品工作空间路径 d:/workspace/sourceCode
[初始化] [INFO] 同步application.json
[app] [INFO] 读取application.json文件.
[render] [INFO] 创建文件d:/workspace/sourceCode/user-project/module/index.ts
[render] [INFO] 创建文件d:/workspace/sourceCode/user-project/module/package.json
...
[render] [INFO] 覆盖文件d:/workspace/runtime/topology/framework/tsconfig.json
[render] [INFO] 覆盖文件d:/workspace/runtime/topology/framework/src/index.html

切换子应用

D:\workspace>bss ls
[app] [INFO] 读取application.json文件.
? 选择子应用
  user-project
  task-project
> topology

设置npm仓库为私服地址。如http://sinopia:4873; 设置node-sass地址不在此处叙述;

npm config set registry http://sinopia:4873

安装依赖。

D:\sourceCode\cli\cli>bss install
[app] [INFO] 读取application.json文件.
[install] [INFO] > [email protected] install d:\workspace\runtime\topology\framework\node_modules\node-sass
[install] [INFO] > node scripts/install.js
[install] [INFO] Cached binary found at C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.11.0\win32-x64-57_binding.node
[install] [INFO] > [email protected] postinstall d:\workspace\runtime\topology\framework\node_modules\node-sass
[install] [INFO] > node scripts/build.js
[install] [INFO] Binary found at d:\workspace\runtime\topology\framework\node_modules\node-sass\vendor\win32-x64-57\binding.node
[install] [INFO] Testing binary
[install] [INFO] Binary is fine
[install] [INFO] added 1100 packages in 46.701s

启动服务

D:\sourceCode\cli\cli>bss serve
[app] [INFO] 读取application.json文件.
[copy] [INFO] 复制文件:d:/workspace/sourceCode/topology/resource/config => d:/workspace/runtime/topology/framework/src/assets/config
[render] [INFO] 覆盖文件d:/workspace/runtime/topology/framework/src/styles.scss
[serve] [INFO] 引入全局样式成功d:/workspace/runtime/topology/framework/src
[serve] [INFO] 国际化文件配置成功d:/workspace/runtime/topology/framework/src/assets/i18n
...
开发目录结构

dir_st

快速生成模板文件 [进行中...]
bss create <template>