Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6abcb9f9
...
6abcb9f9082fd8b4f5dc5381ff7cf2895d64ab8d
authored
2011-12-20 16:09:41 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
preparing for 0.4 release
1 parent
9b3d9f51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
1 deletions
casper.js
package.json
casper.js
View file @
6abcb9f
...
...
@@ -30,6 +30,15 @@
return
;
}
phantom
.
casperVersion
=
{
major
:
0
,
minor
:
4
,
revision
:
0
,
toString
:
function
()
{
return
[
this
.
major
,
this
.
minor
,
this
.
revision
].
join
(
'.'
);
}
};
var
fs
=
require
(
'fs'
);
fs
.
pathJoin
=
function
()
{
...
...
@@ -87,7 +96,11 @@
phantom
.
casperLoaded
=
true
;
if
(
true
===
phantom
.
casperArgs
.
options
.
cli
)
{
if
(
phantom
.
casperArgs
.
args
.
length
===
0
||
!!
phantom
.
casperArgs
.
options
.
help
)
{
if
(
!!
phantom
.
casperArgs
.
options
.
version
)
{
console
.
log
(
phantom
.
casperVersion
.
toString
());
phantom
.
exit
(
0
);
}
else
if
(
phantom
.
casperArgs
.
args
.
length
===
0
||
!!
phantom
.
casperArgs
.
options
.
help
)
{
console
.
log
(
'CasperJS version '
+
phantom
.
casperVersion
.
toString
());
console
.
log
(
'Usage: casperjs script.(js|coffee) [options...]'
);
console
.
log
(
'Read the docs http://n1k0.github.com/casperjs/'
);
phantom
.
exit
(
0
);
...
...
package.json
0 → 100644
View file @
6abcb9f
{
"name"
:
"casperjs"
,
"description"
:
"Navigation scripting & testing utility for PhantomJS"
,
"version"
:
"0.4"
,
"keywords"
:
[
"phantomjs"
,
"javascript"
],
"maintainers"
:
[
{
"name"
:
"Nicolas Perriault"
,
"email"
:
"nperriault@gmail.com"
,
"web"
:
"http://www.akei.com"
}
],
"dependencies"
:
{
"http://www.phantomjs.org/"
:
"1.3"
},
"bugs"
:
{
"web"
:
"https://github.com/n1k0/casperjs/issues"
},
"repositories"
:
[
{
"type"
:
"git"
,
"url"
:
"git://github.com/n1k0/casperjs.git"
}
],
"licenses"
:
[
{
"name"
:
"MIT"
,
"url"
:
"http://www.opensource.org/licenses/mit-license.php"
}
],
"homepage"
:
"http://n1k0.github.com/casperjs"
}
Please
register
or
sign in
to post a comment