[试读] Angular 5 高级编程
NPM 使用一个名为 package.json 的文件来获取项目所需的软件包列表。作为项目设置 的一部分,package.json 文件由 angular-cli 创建,但它只包含 Angular 开发所需的基本软件 包。本章中的示例应用程序需要 Bootstrap CSS 软件包,它并不是基本软件包集合的一部分。 在 todo 文件夹中编辑 package.json 文件以添加 Bootstrap Bootstrap CSS 软件包,如代码清单 2-1 所示。 代码清单 2-1 向 todo 文件夹中的 package.json 文件添加 Bootstrap CSS 软件包 { "name": "todo", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve" com,我会 尽力提供帮助。 package.json 文件列出了启动 Angular 开发所需的软件包和一些使用它们的命令。在第 11 章中将详细描述项目配置,这里只需要了解 package.json 文件的各节,如表 2-2 所示。 Angular 5 高级编程(第 2 版) 10 表 2-2 package.json 文件的各节 节的名称 描述 scripts0 码力 | 42 页 | 6.14 MB | 1 年前3angular2 tutorial
development of larger Angular applications. Step 4: Add the package.json file to your angular2-demo project folder with the code given below: package.json { "name": "angular2-demo", "version": "1.0 "lite-server": "^2.1.0", "typescript": "^1.7.5", "typings":"^0.6.8" } } The package.json will contain the packages that our apps require. These packages are installed and maintained0 码力 | 11 页 | 672.07 KB | 1 年前3Angular CLI Tutorial
you like to use? CSS CREATE TutorialsPoint/angular.json (3630 bytes) CREATE TutorialsPoint/package.json (1291 bytes) CREATE TutorialsPoint/README.md (1031 bytes) CREATE TutorialsPoint/tsconfig.json CREATE src/assets/icons/icon-96x96.png (958 bytes) UPDATE angular.json (3803 bytes) UPDATE package.json (1332 bytes) UPDATE src/app/app.module.ts (682 bytes) UPDATE src/index.html (482 bytes) manager: 'npm' Collecting installed dependencies... Found 31 dependencies. We analyzed your package.json and everything seems to be in order. Good work! Angular CLI 55 This chapter0 码力 | 64 页 | 1.04 MB | 1 年前3angular2 mock test ii
application will not compile. D - All of the above. Q 6 - Which of the following is correct about package.json? A - This file is used to give the options about TypeScript used for the Angular JS project. Angular JS application. D - All of the above. Q 7 - Which of the following is correct about package.json? A - There are two types of dependencies, first is the dependencies and then there are dev dependencies0 码力 | 4 页 | 84.49 KB | 1 年前3Angular 8 - Reviewed
point (server.js), etc., as mentioned below: This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm Use `npm install` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. package name: (expense-rest-api) version: (1.0.0) description: repository: keywords: author: license: (ISC) About to write to \path\to\workspace\expense-rest-api\package.json: { "name": "expense-rest-api", "version": "1.0.0", "description": "Rest api for Expense 0 码力 | 231 页 | 4.00 MB | 1 年前3aurelia tutorial
structure, so you can grasp the core concepts behind Aurelia framework. Folder Structure package.json represents documentation about npm packages installed. It also shows the version of those packages0 码力 | 13 页 | 724.43 KB | 1 年前3
共 6 条
- 1