- 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
推薦閱讀
- AutoCAD繪圖實(shí)用速查通典
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實(shí)戰(zhàn)
- 3D Printing with RepRap Cookbook
- Verilog HDL數(shù)字系統(tǒng)設(shè)計(jì)入門與應(yīng)用實(shí)例
- IoT Penetration Testing Cookbook
- B2B2C網(wǎng)上商城開發(fā)指南
- 21天學(xué)通Java
- 從零開始學(xué)SQL Server
- 在實(shí)戰(zhàn)中成長:C++開發(fā)之路
- 生物3D打印:從醫(yī)療輔具制造到細(xì)胞打印
- 筆記本電腦維修之電路分析基礎(chǔ)
- 電氣控制及Micro800 PLC程序設(shè)計(jì)
- PostgreSQL High Performance Cookbook
- 從機(jī)器學(xué)習(xí)到無人駕駛
- Hands-On Generative Adversarial Networks with Keras