Skip to content

Commit bee6624

Browse files
author
Igor Escobar
committed
adding meteor to deploy workflow
1 parent 63ca44e commit bee6624

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

deploy.rb

+10-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88
JMASK_VERSION = `stepup version --next-release`.delete("\n")
99
BOWER_MANIFEST_FILE = 'bower.json'
1010
NPM_MANIFEST_FILE = 'package.json'
11+
METEOR_MANIFEST_FILE = 'package.js'
1112
COMPONENT_MANIFEST_FILE = 'component.json'
1213

1314
abort("No notes, do deal.") if JMASK_VERSION.empty?
1415

1516
puts '# PUTTING NEW VERSION INSIDE OF JQUERY MASK FILE'
1617
unversioned_jmask_file = File.open(JMASK_FILE, 'rb') { |file| file.read }
17-
File.open(JMASK_FILE, 'w') do |file|
18+
File.open(JMASK_FILE, 'w') do |file|
1819
file.write(unversioned_jmask_file.gsub(/\* @version: (v[0-9.+]+)/, "\* @version: #{JMASK_VERSION}"))
1920
end
2021

2122
puts '# COPYING NEW JMASK FILE TO DIST/'
2223
`yes | cp #{JMASK_FILE} dist/`
2324

24-
[BOWER_MANIFEST_FILE, NPM_MANIFEST_FILE, COMPONENT_MANIFEST_FILE].each { |manifest_name|
25+
[BOWER_MANIFEST_FILE, NPM_MANIFEST_FILE, COMPONENT_MANIFEST_FILE, METEOR_MANIFEST_FILE].each { |manifest_name|
2526
puts "# UPGRADING #{manifest_name} "
2627
manifest_file = File.open(manifest_name, 'rb') { |file| file.read }
2728
File.open(manifest_name, 'w') do |file|
@@ -31,10 +32,10 @@
3132

3233
puts '# GENERATING MIN FILE'
3334
jquery_mask_min_file = nil
34-
File.open(JMASK_FILE, 'r') do |file|
35+
File.open(JMASK_FILE, 'r') do |file|
3536
minFile = File.open(JMASK_MIN_FILE, 'w')
3637
minFile.puts("// jQuery Mask Plugin #{JMASK_VERSION}")
37-
minFile.puts("// github.com/igorescobar/jQuery-Mask-Plugin")
38+
minFile.puts("// github.com/igorescobar/jQuery-Mask-Plugin")
3839
jquery_mask_min_file = `java -jar ../clojure-compiler/compiler.jar --js src/jquery.mask.js --charset UTF-8`
3940
minFile.puts(jquery_mask_min_file)
4041
minFile.close
@@ -64,19 +65,19 @@
6465

6566
puts '# UPGRADING gh-pages'
6667
`git checkout gh-pages`
67-
`git pull origin gh-pages`
68+
`git pull origin gh-pages`
6869

6970
minFile = File.open(GHPAGES_JMASK_MIN_FILE, 'w')
7071
minFile.puts("// jQuery Mask Plugin #{JMASK_VERSION}")
71-
minFile.puts("// github.com/igorescobar/jQuery-Mask-Plugin")
72+
minFile.puts("// github.com/igorescobar/jQuery-Mask-Plugin")
7273
minFile.puts(jquery_mask_min_file)
73-
minFile.close
74+
minFile.close
7475

7576
`git commit -am "upgrading plugin file"`
7677
`git push`
7778
`git checkout master`
7879

7980
puts '# PUBLISHING NPM PACKAGE'
80-
`npm publish`
81+
`npm publish`
8182

82-
puts '# DONE!'
83+
puts '# DONE!'

package.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Package.describe({
2-
name: 'igorescobar:jquery-mask-plugin',
3-
version: '1.13.7',
4-
summary: 'A jQuery Plugin to make masks on form fields and HTML elements.',
5-
git: '[email protected]:igorescobar/jQuery-Mask-Plugin.git',
6-
documentation: 'README.md'
2+
"name": "igorescobar:jquery-mask-plugin",
3+
"version": "1.13.7",
4+
"summary": "A jQuery Plugin to make masks on form fields and HTML elements.",
5+
"git": "[email protected]:igorescobar/jQuery-Mask-Plugin.git",
6+
"documentation": "README.md"
77
});
88

99
Package.onUse(function(api) {

0 commit comments

Comments
 (0)