The Node.js Handbook
does npm install the packages? 17. How to use or execute a package installed using npm 18. The package.json guide 18.1. The file structure 18.2. Properties breakdown 18.2.1. name 18.2.2. author 18 downloads of dependencies of your project. 15.2.1. Installing all dependencies If a project has a package.json file, by running npm install it will install everything the project needs, in the node_modules installFurthermore, since npm 5, this command adds to the package.json file dependencies. Before version 5, you needed to add the flag --save . 48 Often you'll 0 码力 | 161 页 | 1.66 MB | 1 年前3BabelJS Tutorial
babel-core: npm install --save-dev babel-core After installation, here are the details available in package.json: We have installed babel plugins local to the project. This is done so that we can use babel different versions of babeljs. Package.json gives the version details of babeljs used. In order to make use of babel in our project, we need to specify the same in package.json as follows: BabelJS 5. BabelJS — Project setup using Babel 6 BabelJS 21 Following is the package.json that is created: We will install the packages required to start working with babeljs. We will0 码力 | 173 页 | 2.70 MB | 1 年前3RxJS Tutorial
proceed. Once the execution of npm init is done, it will create package.json inside rxjsproj/ as shown below: rxjsproj/ package.json Now you can install rxjs using below command: RxJS the folder structure as shown below: rxjsproj/ node_modules/ src/ package.json Inside src/ create a file testrx.js, and write the following code: testrx.js import { start the server to execute our Html file, we will use webpack-server. The command "publish" in package.json will help us start as well as pack all the js files using webpack . The packed js files which0 码力 | 106 页 | 1.56 MB | 1 年前3The Next.js Handbook
that name), then downloads all the packages it needs ( react , react- dom , next ), sets the package.json to: 9 and you can immediately run the sample app by running npm run dev : 10 And here's project, populating a sample package.json file. Now install Next and React: npm install next react react-dom Your project folder should now have 2 files: package.json (see my tutorial on it) package-lock the current folder in the editor (if the command does not work for you, see this) 14 Open package.json , which now has this content: { "name": "firstproject", "version": "1.0.0", "description":0 码力 | 54 页 | 2.61 MB | 1 年前3ThinkJS 2.1 Documentation
#project_path is the path you want store your project Bash create : demo/ create : demo/package.json create : demo/.thinkjsrc create : demo/nginx.conf create : demo/README.md create : define global functions, register middlewares by using this folder. |-- nginx.conf |-- package.json |-- src | |-- common | | |-- bootstrap | | | |-- generate_icon ThinkJS 2.1, so we need to modify Babel’s version. You can remove all dependencies about Babel in package.json , and append the following dependencies: Use ES6 Grammars Do Not Use constructor Method export0 码力 | 148 页 | 1.69 MB | 1 年前3Learning Gulp
Automation with Gulpjs -1 of 2 11 Syntax 11 Remarks 11 Examples 11 Loading All The Plugins from Package.JSON 11 Note 11 NOTE 12 Installing Plugins for Responsive images|Css Minification|Js minification Loading All The Plugins from Package.JSON Assuming , you have a grasp of how to install gulp, let us dive right down to requiring all the gulp- dependencies from package.json under your projects root folder gulp-load-plugins, and call it gulp-load-plugins will require individually, all the plugins installed in package.json at the root directory these required plugins, are lazy loaded that is, gulp-load-plugins will0 码力 | 45 页 | 977.19 KB | 1 年前3ThinkJS 2.2 Documentation
following, that means you have created the project successfully: create : demo/ create : demo/package.json create : demo/.thinkjsrc create : demo/nginx.conf create : demo/README.md create : you will get the directory structure something like the following: |-- nginx.conf |-- package.json |-- src | |-- common | | |-- bootstrap | | | |-- generate_icon --save . If your project is ES2015+ (not TypeScript), modify compile command as following in package.json : babel --presets es2015-loose,stage-1 --plugins transform-runtime src/ --out-dir app/ --source-maps0 码力 | 156 页 | 2.62 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 年前3Node.js - the core
thing from the module not used in conjunction with previous kind of exports Should also create package.json and README.md 17 used by npm used by GitHub can also export non-function values, including collection of one or more JavaScript modules, optional C++ source files, optional shell scripts and a package.json file that describes the contents of the package and identifies the main module (or uses index modules fs, http, net, repl and tls npm’s read module which it uses for “npm init” to prompt for package.json information 76 var StringDecoder = require('string_decoder').StringDecoder; Core Modules Net0 码力 | 124 页 | 7.87 MB | 1 年前3
共 50 条
- 1
- 2
- 3
- 4
- 5