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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f57acba203498966d7d369500e80ed4a6cd7a239464f60af3bac84adb45ab4c
4
- data.tar.gz: f6f97b668d8406a2f50b5614336bb9d1802d00d15edf429018e3998f4742344f
3
+ metadata.gz: d52562f2c94a1d9fef55ce958dee986bc80bdabaf4905fa77fca6da841b1daf4
4
+ data.tar.gz: 3ab895a058ab21c2aec88e4ecf4ffae7dac51a5c3066d3f5ec35de268233bf02
5
5
  SHA512:
6
- metadata.gz: 30dc93460cbf24fd42e80a9af2823990bedcfce3a78c012e736aa49a83954ac893982e2d1f5c9669a7643a20d210799c03d5ab7ee32d2bec3e47e8efd97a15a8
7
- data.tar.gz: fab0804606c7e18c45a11082e299f737b6e25bee77bf63b2be43b1d2adfb0dbce84f44e220fd299a36235083baea9d744056ba662c4dcd0fe95575497162e624
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
- script
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
- cd #{data.root_path}
39
- npx degit sveltejs/template #{data.name}
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KStarter
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "k_starter",
3
- "version": "0.1.2",
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.2",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k_starter",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Create starter applications for Rails, Ruby, and various javascript frameworks.",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
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.2
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-06-30 00:00:00.000000000 Z
11
+ date: 2022-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct