bin/jspec in jspec-3.3.2 vs bin/jspec in jspec-3.3.3
- old
+ new
@@ -10,11 +10,11 @@
require 'src/project'
require 'src/installables'
require 'src/server'
program :name, 'JSpec'
-program :version, '3.3.2'
+program :version, '3.3.3'
program :description, 'JavaScript BDD Testing Framework'
default_command :bind
JSpec::Project.load_commands_at '~/.jspec/commands'
JSpec::Project.load_commands_at 'spec/commands'
@@ -77,16 +77,20 @@
c.summary = 'Initialize a JSpec project template'
c.description = 'Initialize a JSpec project template. Defaults to the current directory
when [dest] is not specified. The template includes several files for
running via Rhino, DOM, and the JSpec Rack server.
+ JSpec is also packed with a nodejs template via --node, omitting all of the
+ unnecessary browser related files.
+
Additional switches --freeze, and --symlink are available in order
to preserve the version of JSpec at the time of initialization. Otherwise
incompatibilities from later versions may prevent your suite from
running properly.
To update a project to the recent version of JSpec use
`jspec help udpate` for more information.'
+ c.option '-n', '--node', 'Initialize nodejs template'
c.option '-R', '--rails', 'Initialize rails template from rails root directory'
c.option '-f', '--freeze', 'Copy the JSpec library'
c.option '-s', '--symlink', 'Symlink the JSpec library instead of copying it'
c.example 'Create a project in the current directory', 'jspec init'
c.example 'Create a directory foo, initialized with a jspec template', 'jspec init foo'