takelage 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/takelage/bit/clipboard/module.rb +28 -0
- data/lib/takelage/default.yml +1 -1
- data/lib/takelage/version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c150c25080b83185a833479404ae543822e6572446f0179f54c38b6a2714a8c9
|
4
|
+
data.tar.gz: 52a49cdb0fa91a404124fb901ffd93f5567e3b5b246372eb7a7a4bece9564c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99e95484f718a104d966d2897b9f294639c597c632905ef490157213cedc6a3ab07930960440169fcbbbf21fdc9532e656909a747f446fd1c83fe07b37b81fda
|
7
|
+
data.tar.gz: ae75f6e6f96c00fa1520f32da193543eaeccea2885acec7dbd24a921917688cc771d9871606620883d92afe7cc2244e76f18536d8b74808cdb507274fa78e1a3
|
@@ -126,6 +126,7 @@ module BitClipboardModule
|
|
126
126
|
cmd_bit_import_cid = config.active['bit_import_cid'] % {cid: cid, dir: dir}
|
127
127
|
run cmd_bit_import_cid
|
128
128
|
|
129
|
+
_handle_bitignore
|
129
130
|
_remove_bit_artifacts
|
130
131
|
|
131
132
|
log.info "Pasted bit component \"#{cid}\" " +
|
@@ -157,6 +158,7 @@ module BitClipboardModule
|
|
157
158
|
cmd_bit_checkout_all = config.active['bit_checkout_all']
|
158
159
|
run cmd_bit_checkout_all
|
159
160
|
|
161
|
+
_handle_bitignore
|
160
162
|
_remove_bit_artifacts
|
161
163
|
|
162
164
|
log.info "Pulled bit components"
|
@@ -193,6 +195,30 @@ module BitClipboardModule
|
|
193
195
|
true
|
194
196
|
end
|
195
197
|
|
198
|
+
# Genereate .gitignore if bitignore is present
|
199
|
+
def _handle_bitignore
|
200
|
+
log.debug "Handling bitgnore files"
|
201
|
+
|
202
|
+
# find all bitgnore files
|
203
|
+
Dir.glob("./**/bitignore").each do |file|
|
204
|
+
|
205
|
+
log.debug file
|
206
|
+
|
207
|
+
# get directory of bitignore file
|
208
|
+
dir = File.dirname file
|
209
|
+
|
210
|
+
# build gitignore filepath
|
211
|
+
gitignore = "#{dir}/.gitignore"
|
212
|
+
|
213
|
+
log.debug gitignore
|
214
|
+
|
215
|
+
unless File.exist? gitignore
|
216
|
+
log.debug "Creating \".gitignore\" in \"#{dir}\""
|
217
|
+
File.open(gitignore, 'w') { |gitignore| gitignore.write('*') }
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
196
222
|
# Generate bit component ID.
|
197
223
|
def _id(name)
|
198
224
|
id = ''
|
@@ -219,6 +245,8 @@ module BitClipboardModule
|
|
219
245
|
|
220
246
|
# Remove bit artifacts.
|
221
247
|
def _remove_bit_artifacts
|
248
|
+
log.debug "Removing bit artifacts"
|
249
|
+
|
222
250
|
_remove_node_modules
|
223
251
|
_remove_index_bit
|
224
252
|
_remove_package_json
|
data/lib/takelage/default.yml
CHANGED
@@ -4,8 +4,8 @@ bit_checkout_all: 'bit checkout --ignore-package-json --skip-update -i --all lat
|
|
4
4
|
bit_dev: 'takelage'
|
5
5
|
bit_export_to_scope: 'bit export --skip-update %{scope}'
|
6
6
|
bit_export_all: 'bit export --skip-update'
|
7
|
-
bit_import_cid: 'bit import --ignore-package-json --skip-update -p %{dir} %{cid}'
|
8
7
|
bit_import_all: 'bit import --skip-update --ignore-package-json -m manual'
|
8
|
+
bit_import_cid: 'bit import --ignore-package-json --skip-update -p %{dir} %{cid}'
|
9
9
|
bit_list_remotes: 'bit remote --skip-update'
|
10
10
|
bit_list_scope: 'bit list --skip-update --json %{scope}'
|
11
11
|
bit_remote: ''
|
data/lib/takelage/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|