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 🙏

© 2025 – Pkg Stats / Ryan Hefner

project-scripts

v1.1.1-rc

Published

Extends create-react-app's webpack features and support modify configurations

Readme

Project-Scripts

Create React apps with no build configuration. It also supports custom build configurations, and with a mix of raw and custom configurations

创建没有build配置的React应用程序。 支持自定义构建配置,以及原始和自定义配置的组合

Quick Overview

npm install project-scripts -D

project-scripts start

Installation

npm install project-scripts -D

project-scripts start
or 
project-scripts build

Directory

After package already installed, to create directory for configuration files of webpack in the project root directory. like this.

当包安装完成后,在根目录下创建project-scripts目录,放置webpack配置文件。如下。

... project-root ...


|----- node_modules
|---- <project-scripts>
|----- public
|----- src
     package.json
... ... 

How To Use

In the "project-scripts" directory. create webpack configs files. There are 3 optional files : dev.js development-mode file bin.js publish-build-mode file server.js devServer-config file

在“project-scripts”目录下放置webpack工程化脚本。 脚本有三个选择:dev.js 开发模式配置文件 bin.js 发布模式配置文件 server.js devServer配置文件

... project-scripts ...


| -- project-scripts
   | -- dev.js
   | -- bin.js
   | -- server.js
... ...

Use commonJS to expose custom configuration items. and system will merge custom items to default items, if there has the default configurations, it will override the default configuration.

使用commonJS方式暴露自定义的配置项,系统将会合并这些项目到默认配置。如果相同则会覆盖默认配置。

Run Scripts

In the package.json config scripts, use : project-scripts 配置package.json scripts 使用 project-scripts <模式> 指令

Note: As of now, only open dev and bin two modes 截至目前只开放了dev与bin两种模式


了解更多关于js包管理工具: https://www.npmjs.com/ or https://yarnpkg.com/zh-Hans/

了解更多关于webpack工程化的内容: https://webpack.js.org/