About 325,000 results
Open links in new tab
  1. scripts - npm Docs

    Description The "scripts" property of your package.json file supports a number of built-in scripts and their preset life cycle events as well as arbitrary scripts. These all can be executed by …

  2. npm scripts 使用指南 - 阮一峰的网络日志

    Oct 11, 2016 · npm 脚本有一个非常强大的功能,就是可以使用 npm 的内部变量。 首先,通过 npm_package_ 前缀,npm 脚本可以拿到 package.json 里面的字段。

  3. 彻底掌握 Npm Script - 知乎

    在拿到一个项目之后,如何看入口文件,如何运行项目,我们都会找到 package.json 中的 script 。 甚至在做项目做久之后,我们会自己写一些脚本来给开发提效,但你知道 NPM 脚本能做什么 …

  4. npm scripts详解npm scripts详解 npm scripts 是 Node.js 项目开 …

    Mar 25, 2025 · npm scripts 是 Node.js 项目开发中用于定义和执行脚本命令的核心功能,通过 package.json 文件的 scripts 字段配置。 以下是深度解析和使用指南:

  5. 脚本 | npm 中文网 - Node.js

    These all can be executed by running npm run-script <stage> or npm run <stage> for short. Pre and post commands with matching names will be run for those as well (e.g. premyscript, …

  6. package.json scripts 脚本使用指南 - 小小坤 - 博客园

    Feb 20, 2024 · package.json scripts 脚本使用指南 Node 开发离不开 npm,而脚本功能是 npm 最强大、最常用的功能之一。 本文介绍如何使用 npm 脚本(npm scripts)。

  7. 如何使用`npm scripts`自动化前端开发任务 - SegmentFault 思否

    Nov 7, 2024 · npm scripts 是一个强大的工具,能够帮助前端开发者自动化日常开发任务,包括启动服务器、编译代码、运行测试、监听文件变化等。

  8. npm script学习 -- 创建并运行npm script命令-CSDN博客

    Nov 17, 2024 · 首先介绍创建 package.json 文件的科学方法,目标是掌握 npm init 命令。 然后,通过在终端中运行自动生成的 test 命令,详细讲解 npm 脚本基本执行流程。 然后,动手给 …

  9. npm scripts 简体中文 - Runebook.dev

    Description package.json 文件的 "scripts" 属性支持许多内置脚本及其预设的生命周期事件以及任意脚本。 这些都可以通过运行 npm run-script <stage> 或简称为 npm run <stage> 来执行。 …

  10. NPM Scripts 的实用技巧:远不止构建和启动

    Jul 30, 2025 · 前端开发者通常从简单的 npm run build 或 npm run start 命令开始,但 NPM scripts 能为你的工作流程做更多事情。