Closed 32teeth closed 2 weeks ago
Nice fix. We don't really use the dev
command though, we only use watch
for development.
Would be better if you could just get rid of the dev commands altogether IMO.
Also, the serve
command is a really nice addition. Maybe let's just turn that into the dev
command? Also good to advise users to install live-server
globally in some place or to include it as a package in the project.
Also don't forget to update the documentation, especially the getting started part in the main read me, where we can advise to use the dev
command from now on.
@dogusata opinion?
Nice fix. We don't really use the
dev
command though, we only usewatch
for development. Would be better if you could just get rid of the dev commands altogether IMO.Also, the
serve
command is a really nice addition. Maybe let's just turn that into thedev
command? Also good to advise users to installlive-server
globally in some place or to include it as a package in the project.Also don't forget to update the documentation, especially the getting started part in the main read me, where we can advise to use the
dev
command from now on.@dogusata opinion?
Updated
"dev": "npm run clean && npm install && npm run build && npm run start:example",
npm run dev
runs it all and watchlive-server
is installed globally in postinstall
(we don't necessarily want it in our package)Setup, configuration and use
To set up your local development environment quickly, run the following command:
npm run dev
This command will:
- Clean: Remove existing
dist
andnode_modules
directories to ensure you're working with a fresh environment.- Install: Reinstall all necessary dependencies for both the main project and the example project.
- Build: Compile the project using Webpack in production mode.
- Start Example: Install dependencies and build the example project, then start the development server with
watch
mode enabled. The project will be served onlocalhost:9000
usinglive-server
.- Watch: Start the main project in
watch
mode. After running this command, any changes you make will automatically rebuild and refresh your development environment, allowing you to work seamlessly.
live-server
is installed globally inpostinstall
(we don't necessarily want it in our package)
This makes sense now, since we really don't like to increase the dependencies. Nice decision!
Problem
npm run dev
&& husky break things for module importSolution
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.