Changeset 352
- Timestamp:
- 03/12/08 21:35:23 (2 months ago)
- Files:
-
- trunk/src/ingy/JS/Changes (modified) (1 diff)
- trunk/src/ingy/JS/README (modified) (3 diffs)
- trunk/src/ingy/JS/examples/JS-Foo-Bar/Makefile.PL (modified) (1 diff)
- trunk/src/ingy/JS/examples/JS-Foo-Bar/lib/JS/Foo/Bar.pm (added)
- trunk/src/ingy/JS/lib/JS.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ingy/JS/Changes
r348 r352 1 --- 2 version: 0.14 3 date: Tue Mar 11 21:20:57 EET 2008 4 changes: 5 - Better SYNOPSIS in doc. 6 - Improved example module. 1 7 --- 2 8 version: 0.12 trunk/src/ingy/JS/README
r348 r352 3 3 4 4 SYSNOPSIS 5 > # Typical unix command line stuff: 6 > sudo cpan JS::jQuery 7 ... cpan installs JS-jQuery ... 5 8 > js-cpan 6 > js-cpan Foo* 7 > js-cpan Foo.Bar 8 > ln -s `js-cpan Foo.Bar` Foo.Bar.js 9 jquery-1.2.3 10 jquery-1.2.3.min 11 jquery-1.2.3.pack 12 jQuery 13 > js-cpan jQuery* 14 /Library/Perl/5.8.8/JS/jQuery.js 15 /Library/Perl/5.8.8/JS/jquery-1.2.3.js 16 /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js 17 /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js.gz 18 /Library/Perl/5.8.8/JS/jquery-1.2.3.pack.js 19 > js-cpan jQuery.js 20 /Library/Perl/5.8.8/JS/jQuery.js 21 > cd my/webapp/that/requires/jquery/javascript/ 22 > ln -s `js-cpan jQuery.js` jQuery.js 9 23 10 24 DESCRIPTION … … 52 66 distribution directory called: "JS-Foo-Bar". Put your JavaScript code in 53 67 "lib/JS/Foo/Bar.js". Put your documentation in "lib/JS/Foo/Bar.pod". 68 Create a bare bones "lib/JS/Foo/Bar.pm" Perl module so that CPAN related 69 tools can find your stuff. 70 54 71 Your Makefile.PL should look something like this: 55 72 … … 75 92 make manifest 76 93 make dist 77 cpan-upload -user foo -passwd bar -mailto foo@bar.com Foo-Bar-0.01.tar.gz94 cpan-upload -user foo -passwd bar -mailto foo@bar.com JS-Foo-Bar-0.01.tar.gz 78 95 79 96 That's it. You've joined the revolution. :) trunk/src/ingy/JS/examples/JS-Foo-Bar/Makefile.PL
r295 r352 4 4 version '0.01'; 5 5 license 'lgpl'; 6 all_from 'lib/JS/Foo/Bar.p od';6 all_from 'lib/JS/Foo/Bar.pm'; 7 7 WriteAll; trunk/src/ingy/JS/lib/JS.pm
r348 r352 5 5 use 5.005.003; 6 6 7 our $VERSION = '0.1 2';7 our $VERSION = '0.14'; 8 8 9 9 sub new { … … 71 71 =head1 SYSNOPSIS 72 72 73 > # Typical unix command line stuff: 74 > sudo cpan JS::jQuery 75 ... cpan installs JS-jQuery ... 73 76 > js-cpan 74 > js-cpan Foo* 75 > js-cpan Foo.Bar 76 > ln -s `js-cpan Foo.Bar` Foo.Bar.js 77 jquery-1.2.3 78 jquery-1.2.3.min 79 jquery-1.2.3.pack 80 jQuery 81 > js-cpan jQuery* 82 /Library/Perl/5.8.8/JS/jQuery.js 83 /Library/Perl/5.8.8/JS/jquery-1.2.3.js 84 /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js 85 /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js.gz 86 /Library/Perl/5.8.8/JS/jquery-1.2.3.pack.js 87 > js-cpan jQuery.js 88 /Library/Perl/5.8.8/JS/jQuery.js 89 > cd my/webapp/that/requires/jquery/javascript/ 90 > ln -s `js-cpan jQuery.js` jQuery.js 77 91 78 92 =head1 DESCRIPTION … … 124 138 distribution directory called: C<JS-Foo-Bar>. Put your JavaScript code 125 139 in C<lib/JS/Foo/Bar.js>. Put your documentation in 126 C<lib/JS/Foo/Bar.pod>. Your Makefile.PL should look something like this: 140 C<lib/JS/Foo/Bar.pod>. Create a bare bones C<lib/JS/Foo/Bar.pm> Perl module so 141 that CPAN related tools can find your stuff. 142 143 Your Makefile.PL should look something like this: 127 144 128 145 use inc::Module::Install; … … 147 164 make manifest 148 165 make dist 149 cpan-upload -user foo -passwd bar -mailto foo@bar.com Foo-Bar-0.01.tar.gz166 cpan-upload -user foo -passwd bar -mailto foo@bar.com JS-Foo-Bar-0.01.tar.gz 150 167 151 168 That's it. You've joined the revolution. :)
