This project shows the simplest launchpad tool that can be built. Hopefully, we can use it to also make the launchpad setup a little simpler
mkdir hello-world
cd hello-world
git init
vim .gitignore # add node_modules
yarn init
yarn add devtools-launchpad
The basic launchpad principle is that it provides generic files, which are overriden with tool-specific needs. This is true for the webpack config, development server, and other files.
webpack.config
- webpack config for tool overridessrc/index.js
- bootstrap file, which is where you launch your app in onConnectbin/dev-server.js
- development server with tool overrides.bin/getConfig
- loads tool's configuration fromdevelopment.json
.configs/development.json
- has tool specific configs.
Add the start script to package.json
"scripts": {
"start": "node bin/dev-server.js"
}