Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
d5c7b62b
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d5c7b62b
编写于
4月 18, 2015
作者:
R
Robert Speicher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rails g jasmine_rails:install
上级
0fab3521
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
42 addition
and
115 deletion
+42
-115
config/routes.rb
config/routes.rb
+1
-0
spec/javascripts/support/jasmine.yml
spec/javascripts/support/jasmine.yml
+41
-115
未找到文件。
config/routes.rb
浏览文件 @
d5c7b62b
...
...
@@ -2,6 +2,7 @@ require 'sidekiq/web'
require
'api/api'
Gitlab
::
Application
.
routes
.
draw
do
mount
JasmineRails
::
Engine
=>
'/specs'
if
defined?
(
JasmineRails
)
use_doorkeeper
do
controllers
applications:
'oauth/applications'
,
authorized_applications:
'oauth/authorized_applications'
,
...
...
spec/javascripts/support/jasmine.yml
浏览文件 @
d5c7b62b
# src_files
#
# Return an array of filepaths relative to src_dir to include before jasmine specs.
# Default: []
#
# EXAMPLE:
#
# src_files:
# - lib/source1.js
# - lib/source2.js
# - dist/**/*.js
#
# path to parent directory of src_files
# relative path from Rails.root
# defaults to app/assets/javascripts
src_dir
:
"
app/assets/javascripts"
# path to additional directory of source file that are not part of assets pipeline and need to be included
# relative path from Rails.root
# defaults to []
# include_dir:
# - ../mobile_app/public/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
:
-
assets/application.js
-
"
application.{js.coffee,js,coffee}"
# stylesheets
#
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
# Default: []
#
# EXAMPLE:
#
# stylesheets:
# - css/style.css
# - stylesheets/*.css
#
stylesheets
:
-
assets/application.css
# list of file expressions to include as css files
# relative path from css_dir
css_files
:
# helpers
#
# Return an array of filepaths relative to spec_dir to include before jasmine specs.
# Default: ["helpers/**/*.js"]
# path to parent directory of spec_files
# relative path from Rails.root
#
#
EXAMPLE:
#
#
helpers:
# -
helpers/**/*.j
s
#
Alternatively accept an array of directory to include external spec files
#
spec_dir:
#
- spec/javascripts
# -
../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/**/*.js'
-
"
helpers/**/*.{js.coffee,js,coffee}"
# spec_files
#
# Return an array of filepaths relative to spec_dir to include.
# Default: ["**/*[sS]pec.js"]
#
# EXAMPLE:
#
# spec_files:
# - **/*[sS]pec.js
#
# list of file expressions to include as specs into spec runner
# relative path from spec_dir
spec_files
:
-
'
**/*[sS]pec.js'
# 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'
-
"
**/*[Ss]pec.{js.coffee,js,coffee}"
# path to directory of temporary files
# (spec runner and asset cache)
# defaults to tmp/jasmine
tmp_dir
:
"
tmp/jasmine"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录