k_starter 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/k_starter/starters/svelte.rb +35 -10
- data/lib/k_starter/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d52562f2c94a1d9fef55ce958dee986bc80bdabaf4905fa77fca6da841b1daf4
|
4
|
+
data.tar.gz: 3ab895a058ab21c2aec88e4ecf4ffae7dac51a5c3066d3f5ec35de268233bf02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f293d6f9c72de0fdef4a7f1eff3701693d99a1d04c165c88477262744f9ab2cb4ed634fe3f354a7f4a0946d3dd7df364226e93a49dfa0d6fc21e2867ac596521
|
7
|
+
data.tar.gz: 71c6346a23ae0deeae38655cb15e41442f35138bbd12d510672ff31dde08c2a1f24a526f101a29bc1d9662faca89459910a8f85d6463df131adc93fdde6026a6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.1.2](https://github.com/klueless-io/k_starter/compare/v0.1.1...v0.1.2) (2022-06-30)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* remove tty-config ([37beabd](https://github.com/klueless-io/k_starter/commit/37beabd97f3f2dbaa3a2b7f7389ae76f5cbb859f))
|
7
|
+
* remove tty-config ([559be35](https://github.com/klueless-io/k_starter/commit/559be35701a51fa0c321613a878f8024443248fc))
|
8
|
+
|
1
9
|
## [0.1.1](https://github.com/klueless-io/k_starter/compare/v0.1.0...v0.1.1) (2022-06-30)
|
2
10
|
|
3
11
|
|
@@ -19,27 +19,52 @@
|
|
19
19
|
module KStarter
|
20
20
|
module Starters
|
21
21
|
# Generate command line for a new ruby gem project.
|
22
|
-
class Svelte
|
23
|
-
attr_reader :data
|
24
|
-
|
25
|
-
def initialize(data)
|
26
|
-
@data = data
|
27
|
-
end
|
28
|
-
|
22
|
+
class Svelte < KStarter::Starters::Base
|
29
23
|
def execute
|
30
|
-
|
24
|
+
create_app
|
25
|
+
create_kbuilder
|
26
|
+
|
27
|
+
project_open_in_vscode
|
31
28
|
end
|
32
29
|
|
33
30
|
private
|
34
31
|
|
32
|
+
def create_app
|
33
|
+
if project_path_exist?
|
34
|
+
return exiting if ask_exit_if_project_exists
|
35
|
+
|
36
|
+
project_path_delete if ask_destroy_existing_project
|
37
|
+
end
|
38
|
+
|
39
|
+
system_in_root(script)
|
40
|
+
end
|
41
|
+
|
35
42
|
def script
|
36
43
|
<<-BASH
|
37
44
|
|
38
|
-
|
39
|
-
|
45
|
+
echo "Generating gem project #{project.name}..."
|
46
|
+
echo "Current folder: "
|
47
|
+
pwd
|
48
|
+
|
49
|
+
#{genesis_vite}
|
40
50
|
|
41
51
|
BASH
|
42
52
|
end
|
53
|
+
|
54
|
+
# Alternate technique
|
55
|
+
def genesis_sveltekit
|
56
|
+
"npm create svelte #{project.name}"
|
57
|
+
end
|
58
|
+
|
59
|
+
# This is the current technique
|
60
|
+
def genesis_vite
|
61
|
+
"npm init vite #{project.name}"
|
62
|
+
end
|
63
|
+
|
64
|
+
# deprecated (use vite or sveltekit)
|
65
|
+
def genesis_degit
|
66
|
+
"npx degit sveltejs/template #{project.name}"
|
67
|
+
end
|
43
68
|
end
|
44
69
|
end
|
45
70
|
end
|
data/lib/k_starter/version.rb
CHANGED
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "k_starter",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "k_starter",
|
9
|
-
"version": "0.1.
|
9
|
+
"version": "0.1.3",
|
10
10
|
"devDependencies": {
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
12
12
|
"@semantic-release/changelog": "^6.0.1",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k_starter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|