An open API service indexing awesome lists of open source software.

https://github.com/aclark4life/test-webpack-init

In which I initialize a webpack project (with Project Makefile)
https://github.com/aclark4life/test-webpack-init

make npm webpack

Last synced: 9 months ago
JSON representation

In which I initialize a webpack project (with Project Makefile)

Awesome Lists containing this project

README

          

test-webpack-init
================================================================================

In which I initialize a webpack project.

Init (``make webpack-init``)
--------------------------------------------------------------------------------

::

alexclark at alexclarks-Air in ~/Developer/test-webpack-init on main!
(test-webpack-init) ± make webpack-init
npm init -y
Wrote to /Users/alexclark/Developer/test-webpack-init/package.json:

{
"name": "test-webpack-init",
"version": "1.0.0",
"description": "project ================================================================================",
"main": "webpack.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"acorn": "^8.11.2",
"acorn-import-assertions": "^1.9.0",
"ajv": "^6.12.6",
"ajv-keywords": "^3.5.2",
"browserslist": "^4.22.2",
"buffer-from": "^1.1.2",
"caniuse-lite": "^1.0.30001566",
"chrome-trace-event": "^1.0.3",
"clone-deep": "^4.0.1",
"colorette": "^2.0.20",
"commander": "^2.20.3",
"cross-spawn": "^7.0.3",
"electron-to-chromium": "^1.4.605",
"enhanced-resolve": "^5.15.0",
"envinfo": "^7.11.0",
"es-module-lexer": "^1.4.1",
"escalade": "^3.1.1",
"eslint-scope": "^5.1.1",
"esrecurse": "^4.3.0",
"estraverse": "^4.3.0",
"events": "^3.3.0",
"fast-deep-equal": "^3.1.3",
"fast-json-stable-stringify": "^2.1.0",
"fastest-levenshtein": "^1.0.16",
"find-up": "^4.1.0",
"flat": "^5.0.2",
"function-bind": "^1.1.2",
"glob-to-regexp": "^0.4.1",
"graceful-fs": "^4.2.11",
"has-flag": "^4.0.0",
"hasown": "^2.0.0",
"import-local": "^3.1.0",
"interpret": "^3.1.1",
"is-core-module": "^2.13.1",
"is-plain-object": "^2.0.4",
"isexe": "^2.0.0",
"isobject": "^3.0.1",
"jest-worker": "^27.5.1",
"json-parse-even-better-errors": "^2.3.1",
"json-schema-traverse": "^0.4.1",
"kind-of": "^6.0.3",
"loader-runner": "^4.3.0",
"locate-path": "^5.0.0",
"merge-stream": "^2.0.0",
"mime-db": "^1.52.0",
"mime-types": "^2.1.35",
"neo-async": "^2.6.2",
"node-releases": "^2.0.14",
"p-limit": "^2.3.0",
"p-locate": "^4.1.0",
"p-try": "^2.2.0",
"path-exists": "^4.0.0",
"path-key": "^3.1.1",
"path-parse": "^1.0.7",
"picocolors": "^1.0.0",
"pkg-dir": "^4.2.0",
"punycode": "^2.3.1",
"randombytes": "^2.1.0",
"rechoir": "^0.8.0",
"resolve": "^1.22.8",
"resolve-cwd": "^3.0.0",
"resolve-from": "^5.0.0",
"safe-buffer": "^5.2.1",
"schema-utils": "^3.3.0",
"serialize-javascript": "^6.0.1",
"shallow-clone": "^3.0.1",
"shebang-command": "^2.0.0",
"shebang-regex": "^3.0.0",
"source-map": "^0.6.1",
"source-map-support": "^0.5.21",
"supports-color": "^8.1.1",
"supports-preserve-symlinks-flag": "^1.0.0",
"tapable": "^2.2.1",
"terser": "^5.25.0",
"terser-webpack-plugin": "^5.3.9",
"undici-types": "^5.26.5",
"update-browserslist-db": "^1.0.13",
"uri-js": "^4.4.1",
"watchpack": "^2.4.0",
"webpack-merge": "^5.10.0",
"webpack-sources": "^3.2.3",
"which": "^2.0.2",
"wildcard": "^2.0.1"
},
"directories": {
"lib": "lib"
}
}

git add package.json
git add webpack.config.js
npm install --save-dev webpack webpack-cli

added 120 packages, and audited 121 packages in 642ms

16 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities
mkdir -v src/
src/
git add src/index.js
git add index.html

Build (``make build``)
--------------------------------------------------------------------------------

::

alexclark at alexclarks-Air in ~/Developer/test-webpack-init on main!
(test-webpack-init) ± make build
npm run build

> test-webpack-init@1.0.0 build
> webpack

asset bundle.js 1.25 KiB [emitted] (name: main)
./src/index.js 55 bytes [built] [code generated]
webpack 5.89.0 compiled successfully in 39 ms
git add dist/

Serve (``make serve``)
--------------------------------------------------------------------------------

::

alexclark at alexclarks-Air in ~/Developer/test-webpack-init on main!
(test-webpack-init) ± make serve
/Library/Developer/CommandLineTools/usr/bin/make python-serve

Serving HTTP on http://0.0.0.0:8000

python -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...

.. image:: screenshot.png