プロエジェクト初期化

atsushihondoh@penguin:~/Documents/Node$ mkdir SampleWeb
atsushihondoh@penguin:~/Documents/Node$ cd SampleWeb/
atsushihondoh@penguin:~/Documents/Node/SampleWeb$ npm init -y
Wrote to /home/atsushihondoh/Documents/Node/SampleWeb/package.json:

{
  "name": "sampleweb",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

atsushihondoh@penguin:~/Documents/Node/SampleWeb$ npm install webpack-cli --save-dev
atsushihondoh@penguin:~/Documents/Node/SampleWeb$ npx webpack-cli init
[webpack-cli] For using this command you need to install: '@webpack-cli/generators' package.
[webpack-cli] Would you like to install '@webpack-cli/generators' package? (That will run 'npm install -D @webpack-cli/generators') (Y/n) 
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

added 367 packages in 30s

34 packages are looking for funding
  run `npm fund` for details
? Which of the following JS solutions do you want to use? Typescript
? Do you want to use webpack-dev-server? Yes
? Do you want to simplify the creation of HTML files for your bundle? Yes
? Do you want to add PWA support? Yes
? Which of the following CSS solutions do you want to use? none
? Do you like to install prettier to format generated configuration? Yes
[webpack-cli] ℹ INFO  Initialising project...
 conflict package.json
? Overwrite package.json? overwrite
    force package.json
   create src/index.ts
   create README.md
   create index.html
   create webpack.config.js
   create tsconfig.json
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 448 packages in 53s

75 packages are looking for funding
  run `npm fund` for details
[webpack-cli] Project has been initialised with webpack!

TODO


HTML#Typescript


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2021-11-09 (火) 02:00:36 (30d)
Short-URL:
ISBN10
ISBN13
9784061426061