Skip to content

A simpler way to keep track of the different svelte templates as well as creation and automation of creating svelte, svelte kit and sapper projects for future use

Notifications You must be signed in to change notification settings

wesleymutwiri/personal-svelte-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte CLI

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.

Usage

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

  1. 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
  1. Install using the makefile provided
$ make compile

$ /bin/svelte-cli-<current_os> create <name_and_full_url_of_folder_to_be_created>
  1. 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>
  1. Using the go run command for fast compilation
$ go run main.go create <name_and_full_url_of_folder_to_be_created>

About

A simpler way to keep track of the different svelte templates as well as creation and automation of creating svelte, svelte kit and sapper projects for future use

Resources

Stars

Watchers

Forks

Packages

No packages published