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

@forchange/cli-service

v0.2.2

Published

## 模式

Downloads

8

Readme

cli-service

模式

开发模式

cli-service dev

构建模式

cli-service build --mode production

项目配置

通过项目根目录的pack.config.js文件对项目进行配置。

mode可以指定构建环境,对应的环境可以指定一些参数,环境无定义的参数,则取common中的值。

var path = require('path')
module.exports = {
  // 构建时会覆盖被合并到配置中
  webpackConfig: {
    context: __dirname,
    entry: {
      app: path.resolve(__dirname, 'src/app/index.ts')
    },
    resolveLoader: {
      modules: [path.resolve(__dirname, 'src'), path.resolve(__dirname, 'node_modules')]
    },
    resolve: {
      modules: [path.resolve(__dirname, 'src'), path.resolve(__dirname, 'node_modules')],
      alias: {
        app: path.resolve('src/app')
      }
    }
  },
  common: {
    title: 'vue template',
    indexTemplate: path.resolve(__dirname, 'src/index.html'),
    indexOutput: path.resolve(__dirname, 'dist/index.html'),
    staticOriginDirctory: path.resolve(__dirname, 'src/app/static'),
    assetsRoot: path.resolve(__dirname, 'dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '//acdnpy.pandateacher.com/',
    bundleAnalyzerReport: false
  },
  production: {
    sourceMap: true,
    bundleAnalyzerReport: false
  },
  debug: {
    sourceMap: true,
    bundleAnalyzerReport: false
  },
  development: {
    port: 8085,
    indexOutput: 'index.html',
    autoOpenBrowser: false,
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {},
    sourceMap: true
  }
}

TODO

  1. 整理依赖
  2. 配置文件路径可修改
  3. 完善各命令功能
  4. 完善配置说明