Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d5c7b62b
Commit
d5c7b62b
authored
Apr 18, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rails g jasmine_rails:install
parent
0fab3521
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
115 deletions
+42
-115
config/routes.rb
config/routes.rb
+1
-0
spec/javascripts/support/jasmine.yml
spec/javascripts/support/jasmine.yml
+41
-115
No files found.
config/routes.rb
View file @
d5c7b62b
...
@@ -2,6 +2,7 @@ require 'sidekiq/web'
...
@@ -2,6 +2,7 @@ require 'sidekiq/web'
require
'api/api'
require
'api/api'
Gitlab
::
Application
.
routes
.
draw
do
Gitlab
::
Application
.
routes
.
draw
do
mount
JasmineRails
::
Engine
=>
'/specs'
if
defined?
(
JasmineRails
)
use_doorkeeper
do
use_doorkeeper
do
controllers
applications:
'oauth/applications'
,
controllers
applications:
'oauth/applications'
,
authorized_applications:
'oauth/authorized_applications'
,
authorized_applications:
'oauth/authorized_applications'
,
...
...
spec/javascripts/support/jasmine.yml
View file @
d5c7b62b
# src_files
# path to parent directory of src_files
#
# relative path from Rails.root
# Return an array of filepaths relative to src_dir to include before jasmine specs.
# defaults to app/assets/javascripts
# Default: []
src_dir
:
"
app/assets/javascripts"
#
# EXAMPLE:
# path to additional directory of source file that are not part of assets pipeline and need to be included
#
# relative path from Rails.root
# src_files:
# defaults to []
# - lib/source1.js
# include_dir:
# - lib/source2.js
# - ../mobile_app/public/js
# - dist/**/*.js
#
# path to parent directory of css_files
# relative path from Rails.root
# defaults to app/assets/stylesheets
css_dir
:
"
app/assets/stylesheets"
# list of file expressions to include as source files
# relative path from src_dir
src_files
:
src_files
:
-
assets/application.js
-
"
application.{js.coffee,js,coffee}"
# stylesheets
# list of file expressions to include as css files
#
# relative path from css_dir
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
css_files
:
# Default: []
#
# EXAMPLE:
#
# stylesheets:
# - css/style.css
# - stylesheets/*.css
#
stylesheets
:
-
assets/application.css
# helpers
# path to parent directory of spec_files
#
# relative path from Rails.root
# Return an array of filepaths relative to spec_dir to include before jasmine specs.
# Default: ["helpers/**/*.js"]
#
#
#
EXAMPLE:
#
Alternatively accept an array of directory to include external spec files
#
#
spec_dir:
#
helpers:
#
- spec/javascripts
# -
helpers/**/*.j
s
# -
../engine/spec/javascript
s
#
#
# defaults to spec/javascripts
spec_dir
:
spec/javascripts
# list of file expressions to include as helpers into spec runner
# relative path from spec_dir
helpers
:
helpers
:
-
'
helpers/**/*.js'
-
"
helpers/**/*.{js.coffee,js,coffee}"
# spec_files
# list of file expressions to include as specs into spec runner
#
# relative path from spec_dir
# Return an array of filepaths relative to spec_dir to include.
# Default: ["**/*[sS]pec.js"]
#
# EXAMPLE:
#
# spec_files:
# - **/*[sS]pec.js
#
spec_files
:
spec_files
:
-
'
**/*[sS]pec.js'
-
"
**/*[Ss]pec.{js.coffee,js,coffee}"
# src_dir
#
# Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
# Default: project root
#
# EXAMPLE:
#
# src_dir: public
#
src_dir
:
# spec_dir
#
# Spec directory path. Your spec_files must be returned relative to this path.
# Default: spec/javascripts
#
# EXAMPLE:
#
# spec_dir: spec/javascripts
#
spec_dir
:
# spec_helper
#
# Ruby file that Jasmine server will require before starting.
# Returned relative to your root path
# Default spec/javascripts/support/jasmine_helper.rb
#
# EXAMPLE:
#
# spec_helper: spec/javascripts/support/jasmine_helper.rb
#
spec_helper
:
spec/javascripts/support/jasmine_helper.rb
# boot_dir
#
# Boot directory path. Your boot_files must be returned relative to this path.
# Default: Built in boot file
#
# EXAMPLE:
#
# boot_dir: spec/javascripts/support/boot
#
boot_dir
:
# boot_files
#
# Return an array of filepaths relative to boot_dir to include in order to boot Jasmine
# Default: Built in boot file
#
# EXAMPLE
#
# boot_files:
# - '**/*.js'
#
boot_files
:
# rack_options
#
# Extra options to be passed to the rack server
# by default, Port and AccessLog are passed.
#
# This is an advanced options, and left empty by default
#
# EXAMPLE
#
# rack_options:
# server: 'thin'
# path to directory of temporary files
# (spec runner and asset cache)
# defaults to tmp/jasmine
tmp_dir
:
"
tmp/jasmine"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment