webpack-react uses tquinlan1992-webpack-react for front end development
1.6K
A project for building react apps using webpack with docker
git clone https://github.com/tquinlan1992/webpack-react.git into a location of your choicecd <cloned repository path>/docker-compose
docker-compose.yml that mounts your host /src directory to the container's /src directory8000, the port the webpack-dev-server is running on, and is map it to port 8000docker-compose up
/src directory mounted and webpack-dev-server running within the container, file changes within the /src directory will trigger a build for webpackdocker-compose up with the --build flag
docker-compose up --builddocker cp webpack-react:/client-app/node_modules ./node_modules from the root directory of the repository
Tests are run using a wrapper around jest, tquinlan1992-webpack-util-jest
npm testnpm install -global tquinlan1992-webpack-util-jesttquinlan1992-webpack-util-jest <file path>./node_modules/tquinlan1992-webpack-util/dist/src/jest/index.js <file-path>node --inspect --inspect-brk ./node_modules/jest/bin/jest.js
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=<websocket path>docker-compose up container runningdocker exec -it webpack-react bash
webpack-react is the name of the docker-compose image that's specified in the docker-compose.ymlbash param executes bash on the container. /etc/profile to source the profile
/client-app. run cd /client-app to change into the directoryContent type
Image
Digest
Size
233.4 MB
Last updated
almost 9 years ago
docker pull tquinlan1992/webpack-react