mina-yarn 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4db6d0793b46f13f29ceacda0eb88710f1939a31b179d8a94fa954178c2d114c
4
+ data.tar.gz: 3987d493c228f841f499e24fe779b58549db6cce1922d5e16d0b90ecbde8319d
5
+ SHA512:
6
+ metadata.gz: d9f001d56878c48b0e491c956d542a3201b56d9974c2c2d7c71ea639efd772ffd54b23bc8b463ee0339383f9008ec6bb70e2da14563a5f7a99cb755b04e06d45
7
+ data.tar.gz: 25bd224f58e640fda77fd830737f3fb7d81d203f62419ae2430a0bdbdf3f2654dc79ea17329a35dae99ff7f31d5025a187fadcb86d3ee537cb28470e7053deaa
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .idea/
2
+ pkg/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mina-yarn.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 Vladimir Elchinov
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Mina::Yarn
2
+
3
+ Yarn plugin for [mina](https://github.com/mina-deploy/mina)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'mina-yarn'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install mina-yarn
20
+
21
+ ## Usage
22
+
23
+ require 'mina/yarn'
24
+
25
+ task :deploy => :environment do
26
+ deploy do
27
+ ...
28
+ invoke 'yarn:install'
29
+ ...
30
+ end
31
+
32
+ to :launch do
33
+ invoke 'yarn:setup'
34
+ end
35
+ end
36
+
37
+ # Configuration
38
+
39
+ set :yarn_bin # default: 'yarn'
40
+ set :yarn_options # default: lambda { %{--production} }
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/railsblueprint/mina-yarn. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,45 @@
1
+ # From: https://gist.github.com/mralex/749d3e29c89ea0ea1b0fddf9ddadb057
2
+
3
+ # # Modules: yarn
4
+ # Adds settings and tasks for managing Yarn with Mina.
5
+ #
6
+ # require 'mina/yarn'
7
+
8
+ # ## Settings
9
+ # Any and all of these settings can be overridden in your `deploy.rb`.
10
+
11
+ # ### yarn_bin
12
+ # Sets the yarn path.
13
+
14
+ set :yarn_bin, 'yarn'
15
+
16
+ # ### yarn_options
17
+ # Sets the options for installing packages via yarn.
18
+
19
+ set :yarn_options, lambda { %{--production} }
20
+
21
+ # ## Deploy tasks
22
+ # These tasks are meant to be invoked inside deploy scripts, not invoked on
23
+ # their own.
24
+
25
+ namespace :yarn do
26
+ # ### yarn:install
27
+ # Installs packages.
28
+ desc "Install package dependencies using yarn."
29
+ task install: :environment do
30
+ command %{
31
+ echo "-----> Installing package dependencies using yarn"
32
+ #{echo_cmd %[#{fetch(:yarn_bin)} install #{fetch(:yarn_options)}]}
33
+ }
34
+ end
35
+
36
+ # ### yarn:setup
37
+ # Installs latest yarn.
38
+ desc "Install latest version of yarn."
39
+ task setup: :environment do
40
+ command %{
41
+ echo "-----> Installing yarn"
42
+ #{echo_cmd %[npm install -g yarn]}
43
+ }
44
+ end
45
+ end
@@ -0,0 +1,5 @@
1
+ module Mina
2
+ module Yarn
3
+ VERSION = '1.0.0'
4
+ end
5
+ end
data/lib/mina/yarn.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'mina/yarn/tasks'
2
+ require 'mina/yarn/version'
3
+
4
+ module Mina
5
+ module Yarn
6
+ end
7
+ end
data/mina-yarn.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'mina/yarn/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'mina-yarn'
8
+ spec.version = Mina::Yarn::VERSION
9
+ spec.authors = ['Vladimir Elchinov']
10
+ spec.email = ['elik@elik.ru']
11
+
12
+ spec.summary = %q{Mina plugin for Yarn}
13
+ spec.description = %q{Mina plugin for Yarn}
14
+ spec.homepage = 'https://github.com/railsblueprint/mina-yarn'
15
+ spec.license = 'MIT'
16
+
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.11'
24
+ spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rspec', '~> 3.0'
26
+ spec.add_dependency 'mina', '~> 1.0'
27
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mina-yarn
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Elchinov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mina
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ description: Mina plugin for Yarn
70
+ email:
71
+ - elik@elik.ru
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - LICENSE.txt
79
+ - README.md
80
+ - Rakefile
81
+ - lib/mina/yarn.rb
82
+ - lib/mina/yarn/tasks.rb
83
+ - lib/mina/yarn/version.rb
84
+ - mina-yarn.gemspec
85
+ homepage: https://github.com/railsblueprint/mina-yarn
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubygems_version: 3.0.3.1
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: Mina plugin for Yarn
108
+ test_files: []