I've tried to keep things as simple as possible.
svelte-check, common styles in index.less and local styles in the components etc. Styles defined as for simple admin page.
Application contains two pages in Routing: Home (this one) and About
Also, it includes a couple of Components: Logo and Footer.
npm run build for production buildnpm run dev for development build (no minification)npm run watch for development build + watch modenpm run start for live server on http://localhost:3030/docker* (see below)To generate dist folder without installing NPM packages and adding local garbage, use these commands:
docker build -f Dockerfile.prod -t svelte . in the root folder.docker run --name temp sveltedist folder from container: docker cp temp:/app/dist ./distdocker rm tempdocker image rm svelteOR
docker_build.cmd script.In root folder run docker-compose up to build the files. Result will be
placed into dist folder.
In root folder run docker-compose -f docker-compose.watch.yml up to build the files. Result will be placed into dist folder and Webpack will start watching.
node_modules and dist folders will be mapped.
In root folder run docker-compose -f docker-compose.start.yml up to build the files. Result will be placed into dist folder and application will start watching. Webserver will be available on URL localhost:3030.
node_modules and dist folders will be mapped.
npm inpm run build or npm run build:devnpm run build:watch to start watching.npm run start to run dev webserver.