Hello!
The `package.json`, `package-lock.json`, and `.npmignore` files are part of having an npm project. If you want to start a new npm project from scratch, you can use the
npm init command and it will create them for you.
The `webpack.config.js` file is there because the sample app is using webpack to build the app. If you want to use webpack, you can copy our config, or you can write your own. If you don't want to use webpack, you don't need this file.
The sample app was designed to be copied and then modified to suit your needs. So if you want, there is no need to move your code away from it, and you can just customize the values in these various configurations to suit your needs. If you already have an app in another location, and are just trying to copy the code you wrote from the generator codelab into your existing app, then these files are not required unless your app needs them. You can just copy the generator-related code you wrote and adjust it for your application.
Hope that helps,
Maribeth