This is a simple Golang script to initialize svelte projects rather than cramming npx and degit commands all the time.
In future I'll probably convert it into a Vue cli for svelte clone. Hopefully.
Clone the repository into your machine using
$ git clone https://github.com/wesleymutwiri/personal-svelte-cli.git
Change directory into the folder downloaded
$ cd personal-svelte-cli
Either
- Install using the Dockerfile provided and run the following commands for using the app from the dockerfile
$ docker build -t svelte-cli .
$ docker run -it svelte-cli create <name_and_full_url_of_folder_to_be_created>
Still in progress
- Install using the makefile provided
$ make compile
$ /bin/svelte-cli-<current_os> create <name_and_full_url_of_folder_to_be_created>
- Manually by building the go file if Go is installed on your machine
$ go build .
$ ./personal-svelte-cli create <name_and_full_url_of_folder_to_be_created>
- Using the go run command for fast compilation
$ go run main.go create <name_and_full_url_of_folder_to_be_created>