-
- Downloads
ajout pizzalist, pizzathumb, Component
Showing
- .babelrc 4 additions, 2 deletions.babelrc
- index.html 1 addition, 1 deletionindex.html
- package-lock.json 1007 additions, 0 deletionspackage-lock.json
- package.json 6 additions, 3 deletionspackage.json
- src/components/Component.js 34 additions, 0 deletionssrc/components/Component.js
- src/components/Img.js 11 additions, 0 deletionssrc/components/Img.js
- src/components/PizzaThumbnail.js 19 additions, 0 deletionssrc/components/PizzaThumbnail.js
- src/data.js 24 additions, 0 deletionssrc/data.js
- src/main.js 18 additions, 23 deletionssrc/main.js
- src/pages/PizzaList.js 21 additions, 0 deletionssrc/pages/PizzaList.js
- webpack.config.js 26 additions, 0 deletionswebpack.config.js
This diff is collapsed.
... | @@ -5,8 +5,8 @@ | ... | @@ -5,8 +5,8 @@ |
"main": "index.js", | "main": "index.js", | ||
"scripts": { | "scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | "test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "babel src -d build", | "build": "webpack --mode=production", | ||
"watch": "./node_modules/.bin/babel src -d build --verbose --watch --source-maps" | "watch": "webpack --mode=development --watch" | ||
}, | }, | ||
"author": "Thomas Fritsch <thomas.fritsch@univ-lille.fr> (https://gitlab.univ-lille.fr/thomas.fritsch)", | "author": "Thomas Fritsch <thomas.fritsch@univ-lille.fr> (https://gitlab.univ-lille.fr/thomas.fritsch)", | ||
"homepage": "https://gitlab.univ-lille.fr/js", | "homepage": "https://gitlab.univ-lille.fr/js", | ||
... | @@ -15,6 +15,9 @@ | ... | @@ -15,6 +15,9 @@ |
"@babel/cli": "^7.16.8", | "@babel/cli": "^7.16.8", | ||
"@babel/core": "^7.16.12", | "@babel/core": "^7.16.12", | ||
"@babel/preset-env": "^7.16.11", | "@babel/preset-env": "^7.16.11", | ||
"prettier": "^2.5.1" | "babel-loader": "^8.2.3", | ||
"prettier": "^2.5.1", | |||
"webpack": "^5.67.0", | |||
"webpack-cli": "^4.9.2" | |||
} | } | ||
} | } |
src/components/Component.js
0 → 100644
src/components/Img.js
0 → 100644
src/components/PizzaThumbnail.js
0 → 100644
src/data.js
0 → 100644
src/pages/PizzaList.js
0 → 100644
webpack.config.js
0 → 100644
Please register or sign in to comment