BabelJS Tutorialset up the environment for BabelJS. To work with BabelJS we need following setup: ● NodeJS ● Npm ● Babel-CLI ● Babel-Preset ● IDE for writing code NodeJS To check if nodejs is installed Once nodejs is installed, npm will also be installed along with it. To check if npm is installed or not, type npm –v in the terminal. It should display the version of the npm. BabelJS directory called babelproject. Let us make use of nodejs to create the project details. We have used npm init to create the project as shown below: Here is the project structure that we created.0 码力 | 173 页 | 2.70 MB | 1 年前3
跨平台桌⾯应⽤框架:Electron⽤Electron之前,需要确保本地环境已安装好 npm 和 node 确保已安装了 Node.js : node -v node -v 如果没有安装,则先去安装: brew brew install install node node 确保已安装了 npm : npm npm -v -v 安装Electron npm npm i -D electron@latest i cd cd electron-quick-start electron-quick-start # # 安装依赖库 安装依赖库 $ $ npm npm install install # # 运⾏应⽤ 运⾏应⽤ $ $ npm npm start start 基本效果: 基本使⽤ 20 crifan.com,使⽤署名4.0国际(CC BY 4.0)协议发布 all right r打包 此处介绍如何在Mac中⽤ electron-builder 去打包Electron的应⽤,⽣成Mac中的 app 和 pkg ⽂件。 安装electron-builder npm npm install install -D electron-builder@21.2.0 -D electron-builder@21.2.0 打包和部署 22 添加build配置 以及给0 码力 | 123 页 | 21.81 MB | 1 年前3
Learning Gulpstarted with gulp 2 Remarks 2 Versions 2 Examples 2 Installation or Setup 2 1. Install Node.js and NPM: 2 2. Install gulp globally: 2 3. Initialize your project directory: 3 4. Install gulp in your project Examples Installation or Setup 1. Install Node.js and NPM: Gulp requires Node.js and NPM, Node's package manager. Most installers include NPM with Node.js. Refer to the installation documentation or your terminal, npm -v // will return NPM version or error saying command not found 2. Install gulp globally: If you have previously installed a version of gulp globally, please run npm rm --global gulp0 码力 | 45 页 | 977.19 KB | 1 年前3
RxJS Tutorial.................................................................................. 3 NODEJS and NPM Installation ..................................................................................... following setup: NodeJS Npm RxJS package installation NODEJS and NPM Installation It is very easy to install RxJS using npm. You need to have nodejs and npm installed on your system. To To verify if NodeJS and npm is installed on your system, try to execute the following command in your command prompt. E:\>node -v && npm -v v10.15.1 6.4.1 In case you are getting the version, it0 码力 | 106 页 | 1.56 MB | 1 年前3
Gulp 入门指南+ C 退出任务。 npm 模块管理器 如果你了解 npm 则跳过此章节 若你不了解npm 请阅读 npm模块管理器 安装 gulp npm 是 node 的包管理工具,可以利用它安装 gulp 所需的包。(在安装 node 时已经自动安装了 npm) 在命令行输入 npm install -g gulp 若一直没安装成功,请使用 cnpm 安装(npm的国内加速镜像) 意思是:使用 意思是:使用 npm 安装全局性的( -g ) gulp 包。 如果你安装失败,请输入 sudo npm install -g gulp 使用管理员权限安装。(可能会要求输入密码) 安装时请注意命令行的提示信息,安装完成后可在命令行输入 gulp -v 以确认安装成功。 至此,我们完成了准备工作。接着让 gulp 开始帮我们干活吧! gulp 入门指南 - 4 - 本文档使用 看云 构建 gulp-uglify 模块 模块 gulp 入门指南 - 6 - 本文档使用 看云 构建 因为我们并没有安装 gulp-uglify 模块到本地,所以找不到此模块。 使用 npm 安装 gulp-uglify 到本地 npm install gulp-uglify 安装成功后你会看到如下信息: gulp-uglify@1.1.0 node_modules/gulp-uglify ├── deepmerge@00 码力 | 36 页 | 275.87 KB | 1 年前3
TypeScript Handbook(中文版)
声明合并 书写.d.ts文件 JSX Decorators 混入 三斜线指令 如何书写声明文件 结构 规范 举例 深入 发布 使用 工程配置 tsconfig.json NPM包的类型 TypeScript Handbook(中文版) 2 5.3 5.4 5.5 5.6 6 6.1 6.2 6.3 6.4 6.5 6.6 6.7 7 7.1 混入 三斜线指令 如何书写声明文件 结构 TypeScript Handbook(中文版) 5 介绍 规范 举例 深入 发布 使用 工程配置 tsconfig.json NPM包的类型 编译选项 在MSBuild里使用编译选项 与其它构建工具整合 使用TypeScript的每日构建版本 Wiki TypeScript里的this 编码规范 常见编译错误 支持TypeScript的编辑器 有两种主要的方式来获取TypeScript工具: 通过npm(Node.js包管理器) 安装Visual Studio的TypeScript插件 Visual Studio 2017和Visual Studio 2015 Update 3默认包含了TypeScript。 如果你 的Visual Studio还没有安装TypeScript,你可以下载它。 针对使用npm的用户: > npm install -g typescript0 码力 | 557 页 | 7.48 MB | 1 年前3
The Next.js Handbook
latest LTS version listed on https://nodejs.org/. After you install Node.js, you will have the npm command available into your command line. If you have any trouble at this stage, I recommend the An introduction to the npm package manager Unix Shells Tutorial How to use the macOS terminal The Bash Shell Now that you have Node, updated to the latest version, and npm , we're set! We can choose , next ), sets the package.json to: 9 and you can immediately run the sample app by running npm run dev : 10 And here's the result on http://localhost:3000: 11 This is the recommended way to0 码力 | 54 页 | 2.61 MB | 1 年前3
TypeScript 4.0 使用手册
· BookStack.CN 构建 实用工具类型 如何书写声明文件 介绍 库结构 举例 最佳实践 深入 模板 发布 使用 工程配置 tsconfig.json 工程引用 NPM包的类型 编译选项 配置 Watch 在MSBuild里使用编译选项 与其它构建工具整合 使用TypeScript的每日构建版本 Wiki TypeScript里的this 编码规范 README - 8 - 本文档使用 书栈网 · BookStack.CN 构建 库结构 举例 最佳实践 深入 模板 发布 使用 工程配置 tsconfig.json 工程引用 NPM包的类型 编译选项 配置 Watch 在MSBuild里使用编译选项 与其它构建工具整合 使用TypeScript的每日构建版本 Wiki TypeScript里的this 编码规范 JavaScript文件里的类型检查 实用工具类型 如何书写声明文件 介绍 库结构 举例 最佳实践 深入 模板 发布 使用 工程配置 tsconfig.json 工程引用 NPM包的类型 编译选项 配置 Watch 在MSBuild里使用编译选项 与其它构建工具整合 使用TypeScript的每日构建版本 Wiki TypeScript里的this 编码规范0 码力 | 683 页 | 6.27 MB | 1 年前3
Angular 8 - Reviewedprerequisite first. Prerequisite As we know already, Angular is written in TypeScript. We need Node and npm to compile the files into JavaScript after that, we can deploy our application. For this purpose, than five minutes to install. npm is used to install Angular 8 CLI. Once Node.js is installed, npm is also installed. If you want verify it, type the below command: npm -v You could see the version version below: 6.14.4 Let’s install Angular 8 CLI using npm as follows: npm install -g @angular/cli@^8.0.0 To verify Angular 8 is properly installed on your machine, type the below command: ng version0 码力 | 231 页 | 4.00 MB | 1 年前3
electron中文教程
asar 是一种将多个文件合并成一个文件的类 tar 风格的归档格式。Electron 可以无需解压,即从其中读取任意 文件内容。 参照如下步骤将你的应用打包成 asar : 1. $ npm install -g asar 1. $ asar pack your-app app.asar 在 Electron 中有两类 APIs:Node.js 提供的 Node API 和 Chromium 最简单的方式就是通过 electron-rebuild 包重新编译原生模块,它帮你自动完成了下载 headers、编译原生模块 等步骤: 1. npm install --save-dev electron-rebuild 2. 3. # 每次运行"npm install"时,也运行这条命令 4. ./node_modules/.bin/electron-rebuild 5. 6. # cmd 你当然也可以通过 npm 安装原生模块。大部分步骤和安装普通模块时一样,除了以下一些系统环境变量你需要自 己操作: 1. export npm_config_disturl=https://atom.io/download/atom-shell 2. export npm_config_target=0.33.1 3. export npm_config_arch=x640 码力 | 203 页 | 2.72 MB | 1 年前3
共 59 条
- 1
- 2
- 3
- 4
- 5
- 6













