- Hands-On Machine Learning with JavaScript
- Burak Kanber
- 168字
- 2021-06-25 21:38:20
Creating and initializing an example project
Use the command line, your favorite IDE, or your file browser to create a directory somewhere on your machine called MLinJSBook, with a subdirectory called Ch1-Ex1.
Navigate your command line to the Ch1-Ex1 folder, and run the command yarn init, which like npm init will create a package.json file and prompt you for basic information. Respond to the prompts, answering appropriately. You will not be publishing this package so the answers aren't too important, however, when prompted for the application's entry point, type in dist/index.js.
Next, we need to install a few build tools that we'll use for the majority of our example projects:
- babel-core: The Babel transpiler core
- babel-preset-env: The Babel parser preset that parses ES6, ES7, and ES8 code
- browserify: A JavaScript bundler which can compile multiple files into a single file
- babelify: The Babel plugin for Browserify
Install these as development environment requirements by issuing the following command:
yarn add -D babel-cli browserify babelify babel-preset-env
推薦閱讀
- 零起步輕松學單片機技術(第2版)
- 21天學通JavaScript
- Design for the Future
- LabVIEW虛擬儀器從入門到測控應用130例
- Learning Microsoft Azure Storage
- PostgreSQL 11 Server Side Programming Quick Start Guide
- Windows XP中文版應用基礎
- 信息物理系統(CPS)測試與評價技術
- 我也能做CTO之程序員職業規劃
- Mastering Game Development with Unreal Engine 4(Second Edition)
- Python:Data Analytics and Visualization
- Linux嵌入式系統開發
- Excel 2010函數與公式速查手冊
- Redash v5 Quick Start Guide
- 智能+:制造業的智能化轉型