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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c42082b6
Commit
c42082b6
authored
Mar 05, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'commons-chunk-plugin-ee' into 'master'
Port of 'commons-chunk-plugin' to EE See merge request !1354
parents
fcb82e83
faeadf99
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
139 additions
and
69 deletions
+139
-69
app/assets/javascripts/commons/bootstrap.js
app/assets/javascripts/commons/bootstrap.js
+10
-0
app/assets/javascripts/commons/index.js
app/assets/javascripts/commons/index.js
+2
-0
app/assets/javascripts/commons/jquery.js
app/assets/javascripts/commons/jquery.js
+14
-0
app/assets/javascripts/graphs/graphs_bundle.js
app/assets/javascripts/graphs/graphs_bundle.js
+2
-0
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js.es6
...cripts/issuable/time_tracking/time_tracking_bundle.js.es6
+2
-0
app/assets/javascripts/lib/chart.js
app/assets/javascripts/lib/chart.js
+0
-3
app/assets/javascripts/lib/d3.js
app/assets/javascripts/lib/d3.js
+0
-3
app/assets/javascripts/lib/vue_resource.js.es6
app/assets/javascripts/lib/vue_resource.js.es6
+0
-2
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+23
-34
app/assets/javascripts/users/calendar.js
app/assets/javascripts/users/calendar.js
+2
-1
app/views/groups/analytics/show.html.haml
app/views/groups/analytics/show.html.haml
+2
-1
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+3
-1
app/views/projects/boards/_show.html.haml
app/views/projects/boards/_show.html.haml
+1
-0
app/views/projects/commit/_pipelines_list.haml
app/views/projects/commit/_pipelines_list.haml
+1
-0
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+1
-0
app/views/projects/environments/folder.html.haml
app/views/projects/environments/folder.html.haml
+1
-0
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+1
-0
app/views/projects/graphs/_head.html.haml
app/views/projects/graphs/_head.html.haml
+1
-1
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+0
-2
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-0
app/views/projects/merge_requests/conflicts.html.haml
app/views/projects/merge_requests/conflicts.html.haml
+1
-1
app/views/projects/merge_requests/widget/_open.html.haml
app/views/projects/merge_requests/widget/_open.html.haml
+1
-0
app/views/projects/pipelines/index.html.haml
app/views/projects/pipelines/index.html.haml
+1
-0
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-0
app/views/users/show.html.haml
app/views/users/show.html.haml
+1
-1
changelogs/unreleased/commons-chunk-plugin.yml
changelogs/unreleased/commons-chunk-plugin.yml
+5
-0
config/karma.config.js
config/karma.config.js
+12
-1
config/webpack.config.js
config/webpack.config.js
+49
-6
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+1
-12
No files found.
app/assets/javascripts/commons/bootstrap.js
0 → 100644
View file @
c42082b6
import
'
jquery
'
;
// bootstrap jQuery plugins
import
'
bootstrap-sass/assets/javascripts/bootstrap/affix
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/alert
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/dropdown
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/modal
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/tab
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/transition
'
;
import
'
bootstrap-sass/assets/javascripts/bootstrap/tooltip
'
;
app/assets/javascripts/commons/index.js
0 → 100644
View file @
c42082b6
import
'
./jquery
'
;
import
'
./bootstrap
'
;
app/assets/javascripts/commons/jquery.js
0 → 100644
View file @
c42082b6
import
'
jquery
'
;
// common jQuery plugins
import
'
jquery-ujs
'
;
import
'
vendor/jquery.endless-scroll
'
;
import
'
vendor/jquery.caret
'
;
import
'
vendor/jquery.atwho
'
;
import
'
vendor/jquery.scrollTo
'
;
import
'
vendor/jquery.nicescroll
'
;
import
'
vendor/jquery.waitforimages
'
;
import
'
select2/select2
'
;
// EE-only
import
'
vendor/jquery.tablesorter
'
;
app/assets/javascripts/graphs/graphs_bundle.js
View file @
c42082b6
import
Chart
from
'
vendor/Chart
'
;
import
ContributorsStatGraph
from
'
./stat_graph_contributors
'
;
// export to global scope
window
.
Chart
=
Chart
;
window
.
ContributorsStatGraph
=
ContributorsStatGraph
;
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js.es6
View file @
c42082b6
/* global Vue */
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('./components/time_tracker');
require('../../smart_interval');
require('../../subbable_resource');
...
...
app/assets/javascripts/lib/chart.js
deleted
100644 → 0
View file @
fcb82e83
/* eslint-disable func-names, space-before-function-paren */
window
.
Chart
=
require
(
'
vendor/Chart
'
);
app/assets/javascripts/lib/d3.js
deleted
100644 → 0
View file @
fcb82e83
/* eslint-disable func-names, space-before-function-paren */
window
.
d3
=
require
(
'
d3
'
);
app/assets/javascripts/lib/vue_resource.js.es6
deleted
100644 → 0
View file @
fcb82e83
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
app/assets/javascripts/
applicatio
n.js
→
app/assets/javascripts/
mai
n.js
View file @
c42082b6
...
...
@@ -6,43 +6,34 @@
/* global AwardsHandler */
/* global Aside */
window
.
$
=
window
.
jQuery
=
require
(
'
jquery
'
);
require
(
'
jquery-ujs
'
);
require
(
'
vendor/jquery.endless-scroll
'
);
require
(
'
vendor/jquery.highlight
'
);
require
(
'
vendor/jquery.waitforimages
'
);
require
(
'
vendor/jquery.caret
'
);
require
(
'
vendor/jquery.atwho
'
);
require
(
'
vendor/jquery.scrollTo
'
);
require
(
'
vendor/jquery.tablesorter
'
);
window
.
Cookies
=
require
(
'
js-cookie
'
);
require
(
'
./autosave
'
);
require
(
'
bootstrap/js/affix
'
);
require
(
'
bootstrap/js/alert
'
);
require
(
'
bootstrap/js/button
'
);
require
(
'
bootstrap/js/collapse
'
);
require
(
'
bootstrap/js/dropdown
'
);
require
(
'
bootstrap/js/modal
'
);
require
(
'
bootstrap/js/scrollspy
'
);
require
(
'
bootstrap/js/tab
'
);
require
(
'
bootstrap/js/transition
'
);
require
(
'
bootstrap/js/tooltip
'
);
require
(
'
bootstrap/js/popover
'
);
require
(
'
select2/select2.js
'
);
window
.
Pikaday
=
require
(
'
pikaday
'
);
window
.
_
=
require
(
'
underscore
'
);
window
.
Dropzone
=
require
(
'
dropzone
'
);
window
.
Sortable
=
require
(
'
vendor/Sortable
'
);
import
jQuery
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Cookies
from
'
js-cookie
'
;
import
Pikaday
from
'
pikaday
'
;
import
Dropzone
from
'
dropzone
'
;
import
Sortable
from
'
vendor/Sortable
'
;
// libraries with import side-effects
require
(
'
mousetrap
'
);
require
(
'
mousetrap/plugins/pause/mousetrap-pause
'
);
require
(
'
vendor/fuzzaldrin-plus
'
);
require
(
'
es6-promise
'
).
polyfill
();
// expose common libraries as globals (TODO: remove these)
window
.
jQuery
=
jQuery
;
window
.
$
=
jQuery
;
window
.
_
=
_
;
window
.
Cookies
=
Cookies
;
window
.
Pikaday
=
Pikaday
;
window
.
Dropzone
=
Dropzone
;
window
.
Sortable
=
Sortable
;
// shortcuts
require
(
'
./shortcuts
'
);
require
(
'
./shortcuts_navigation
'
);
require
(
'
./shortcuts_dashboard_navigation
'
);
require
(
'
./shortcuts_issuable
'
);
require
(
'
./shortcuts_network
'
);
require
(
'
vendor/jquery.nicescroll
'
);
require
(
'
./geo/geo_bundle
'
);
require
(
'
./ajax_loading_spinner
'
);
// behaviors
require
(
'
./behaviors/autosize
'
);
...
...
@@ -213,10 +204,8 @@ require('./visibility_select');
require
(
'
./wikis
'
);
require
(
'
./zen_mode
'
);
require
(
'
vendor/fuzzaldrin-plus
'
);
require
(
'
es6-promise
'
).
polyfill
();
// EE-only scripts
require
(
'
./geo/geo_bundle
'
);
require
(
'
./admin_email_select
'
);
require
(
'
./application_settings
'
);
require
(
'
./approvals
'
);
...
...
@@ -301,7 +290,7 @@ require('./weight_select');
$
.
fn
.
tooltip
.
Constructor
.
DEFAULTS
.
trigger
=
'
hover
'
;
$body
.
tooltip
({
selector
:
'
.has-tooltip, [data-toggle="tooltip"]
'
,
placement
:
function
(
_
,
el
)
{
placement
:
function
(
tip
,
el
)
{
return
$
(
el
).
data
(
'
placement
'
)
||
'
bottom
'
;
}
});
...
...
app/assets/javascripts/users/calendar.js
View file @
c42082b6
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, camelcase, vars-on-top, object-shorthand, comma-dangle, eqeqeq, no-mixed-operators, no-return-assign, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, no-else-return, max-len */
/* global d3 */
import
d3
from
'
d3
'
;
(
function
()
{
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/views/groups/analytics/show.html.haml
View file @
c42082b6
-
page_title
"Contribution Analytics"
-
header_title
group_title
(
@group
,
"Contribution Analytics"
,
group_analytics_path
(
@group
))
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'lib_chart'
)
=
page_specific_javascript_bundle_tag
(
'common_d3'
)
=
page_specific_javascript_bundle_tag
(
'graphs'
)
.sub-header-block
.pull-right
...
...
app/views/layouts/_head.html.haml
View file @
c42082b6
...
...
@@ -28,7 +28,9 @@
=
stylesheet_link_tag
"application"
,
media:
"all"
=
stylesheet_link_tag
"print"
,
media:
"print"
=
javascript_include_tag
(
*
webpack_asset_paths
(
"application"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"runtime"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"common"
))
=
javascript_include_tag
(
*
webpack_asset_paths
(
"main"
))
-
if
content_for?
(
:page_specific_javascripts
)
=
yield
:page_specific_javascripts
...
...
app/views/projects/boards/_show.html.haml
View file @
c42082b6
...
...
@@ -4,6 +4,7 @@
-
page_title
"Boards"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'boards'
)
=
page_specific_javascript_bundle_tag
(
'simulate_drag'
)
if
Rails
.
env
.
test?
...
...
app/views/projects/commit/_pipelines_list.haml
View file @
c42082b6
...
...
@@ -25,4 +25,5 @@
}
}
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'commit_pipelines'
)
app/views/projects/cycle_analytics/show.html.haml
View file @
c42082b6
-
@no_container
=
true
-
page_title
"Cycle Analytics"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'cycle_analytics'
)
=
render
"projects/pipelines/head"
...
...
app/views/projects/environments/folder.html.haml
View file @
c42082b6
...
...
@@ -3,6 +3,7 @@
=
render
"projects/pipelines/head"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
"environments_folder"
)
#environments-folder-list-view
{
data:
{
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
...
...
app/views/projects/environments/index.html.haml
View file @
c42082b6
...
...
@@ -3,6 +3,7 @@
=
render
"projects/pipelines/head"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
"environments"
)
#environments-list-view
{
data:
{
environments_data:
environments_list_data
,
...
...
app/views/projects/graphs/_head.html.haml
View file @
c42082b6
...
...
@@ -5,7 +5,7 @@
%ul
{
class:
(
container_class
)
}
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'
lib_chart
'
)
=
page_specific_javascript_bundle_tag
(
'
common_d3
'
)
=
page_specific_javascript_bundle_tag
(
'graphs'
)
=
nav_link
(
action: :show
)
do
=
link_to
'Contributors'
,
namespace_project_graph_path
...
...
app/views/projects/issues/show.html.haml
View file @
c42082b6
...
...
@@ -2,8 +2,6 @@
-
page_title
"
#{
@issue
.
title
}
(
#{
@issue
.
to_reference
}
)"
,
"Issues"
-
page_description
@issue
.
description
-
page_card_attributes
@issue
.
card_attributes
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'lib_vue'
)
.clearfix.detail-page-header
.issuable-header
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
c42082b6
...
...
@@ -3,6 +3,7 @@
-
page_description
@merge_request
.
description
-
page_card_attributes
@merge_request
.
card_attributes
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'diff_notes'
)
.merge-request
{
'data-url'
=>
merge_request_path
(
@merge_request
),
'data-project-path'
=>
project_path
(
@merge_request
.
project
)
}
...
...
app/views/projects/merge_requests/conflicts.html.haml
View file @
c42082b6
-
page_title
"Merge Conflicts"
,
"
#{
@merge_request
.
title
}
(
#{
@merge_request
.
to_reference
}
"
,
"Merge Requests"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'
lib
_vue'
)
=
page_specific_javascript_bundle_tag
(
'
common
_vue'
)
=
page_specific_javascript_bundle_tag
(
'merge_conflicts'
)
=
page_specific_javascript_tag
(
'lib/ace.js'
)
=
render
"projects/merge_requests/show/mr_title"
...
...
app/views/projects/merge_requests/widget/_open.html.haml
View file @
c42082b6
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'mr_widget_ee'
)
#merge-request-widget-app
.mr-state-widget
{
'data-endpoint'
=>
merge_request_path
(
@merge_request
),
'data-approval-pending'
=>
(
!
@merge_request
.
approved?
).
to_s
}
...
...
app/views/projects/pipelines/index.html.haml
View file @
c42082b6
...
...
@@ -76,4 +76,5 @@
.vue-pipelines-index
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'vue_pipelines'
)
app/views/shared/issuable/_sidebar.html.haml
View file @
c42082b6
-
todo
=
issuable_todo
(
issuable
)
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'issuable'
)
%aside
.right-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
"101"
,
"spy"
=>
"affix"
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
...
...
app/views/users/show.html.haml
View file @
c42082b6
-
page_title
@user
.
name
-
page_description
@user
.
bio
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'
lib
_d3'
)
=
page_specific_javascript_bundle_tag
(
'
common
_d3'
)
=
page_specific_javascript_bundle_tag
(
'users'
)
-
header_title
@user
.
name
,
user_path
(
@user
)
-
@no_container
=
true
...
...
changelogs/unreleased/commons-chunk-plugin.yml
0 → 100644
View file @
c42082b6
---
title
:
Use webpack CommonsChunkPlugin to place common javascript libraries in their
own bundles
merge_request
:
9647
author
:
config/karma.config.js
View file @
c42082b6
var
path
=
require
(
'
path
'
);
var
webpack
=
require
(
'
webpack
'
);
var
webpackConfig
=
require
(
'
./webpack.config.js
'
);
var
ROOT_PATH
=
path
.
resolve
(
__dirname
,
'
..
'
);
// add coverage instrumentation to babel config
if
(
webpackConfig
&&
webpackConfig
.
module
&&
webpackConfig
.
module
.
rules
)
{
if
(
webpackConfig
.
module
&&
webpackConfig
.
module
.
rules
)
{
var
babelConfig
=
webpackConfig
.
module
.
rules
.
find
(
function
(
rule
)
{
return
rule
.
loader
===
'
babel-loader
'
;
});
...
...
@@ -13,6 +14,16 @@ if (webpackConfig && webpackConfig.module && webpackConfig.module.rules) {
babelConfig
.
options
.
plugins
.
push
(
'
istanbul
'
);
}
// remove problematic plugins
if
(
webpackConfig
.
plugins
)
{
webpackConfig
.
plugins
=
webpackConfig
.
plugins
.
filter
(
function
(
plugin
)
{
return
!
(
plugin
instanceof
webpack
.
optimize
.
CommonsChunkPlugin
||
plugin
instanceof
webpack
.
DefinePlugin
);
});
}
// Karma configuration
module
.
exports
=
function
(
config
)
{
var
progressReporter
=
process
.
env
.
CI
?
'
mocha
'
:
'
progress
'
;
...
...
config/webpack.config.js
View file @
c42082b6
...
...
@@ -17,7 +17,10 @@ var WEBPACK_REPORT = process.env.WEBPACK_REPORT;
var
config
=
{
context
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
),
entry
:
{
application
:
'
./application.js
'
,
common
:
'
./commons/index.js
'
,
common_vue
:
[
'
vue
'
,
'
vue-resource
'
],
common_d3
:
[
'
d3
'
],
main
:
'
./main.js
'
,
blob_edit
:
'
./blob_edit/blob_edit_bundle.js
'
,
boards
:
'
./boards/boards_bundle.js
'
,
simulate_drag
:
'
./test_utils/simulate_drag.js
'
,
...
...
@@ -38,16 +41,13 @@ var config = {
snippet
:
'
./snippet/snippet_bundle.js
'
,
terminal
:
'
./terminal/terminal_bundle.js
'
,
users
:
'
./users/users_bundle.js
'
,
lib_chart
:
'
./lib/chart.js
'
,
lib_d3
:
'
./lib/d3.js
'
,
lib_vue
:
'
./lib/vue_resource.js
'
,
vue_pipelines
:
'
./vue_pipelines_index/index.js
'
,
},
output
:
{
path
:
path
.
join
(
ROOT_PATH
,
'
public/assets/webpack
'
),
publicPath
:
'
/assets/webpack/
'
,
filename
:
IS_PRODUCTION
?
'
[name]
-[chunkhash].js
'
:
'
[name]
.js
'
filename
:
IS_PRODUCTION
?
'
[name]
.[chunkhash].bundle.js
'
:
'
[name].bundle
.js
'
},
devtool
:
'
inline-source-map
'
,
...
...
@@ -78,14 +78,57 @@ var config = {
modules
:
false
,
assets
:
true
}),
// prevent pikaday from including moment.js
new
webpack
.
IgnorePlugin
(
/moment/
,
/pikaday/
),
// fix legacy jQuery plugins which depend on globals
new
webpack
.
ProvidePlugin
({
$
:
'
jquery
'
,
jQuery
:
'
jquery
'
,
}),
// use deterministic module ids in all environments
IS_PRODUCTION
?
new
webpack
.
HashedModuleIdsPlugin
()
:
new
webpack
.
NamedModulesPlugin
(),
// create cacheable common library bundle for all vue chunks
new
webpack
.
optimize
.
CommonsChunkPlugin
({
name
:
'
common_vue
'
,
chunks
:
[
'
boards
'
,
'
commit_pipelines
'
,
'
cycle_analytics
'
,
'
diff_notes
'
,
'
environments
'
,
'
environments_folder
'
,
'
issuable
'
,
'
merge_conflicts
'
,
'
mr_widget_ee
'
,
'
vue_pipelines
'
,
],
minChunks
:
function
(
module
,
count
)
{
return
module
.
resource
&&
(
/vue_shared/
).
test
(
module
.
resource
);
},
}),
// create cacheable common library bundle for all d3 chunks
new
webpack
.
optimize
.
CommonsChunkPlugin
({
name
:
'
common_d3
'
,
chunks
:
[
'
graphs
'
,
'
users
'
],
}),
// create cacheable common library bundles
new
webpack
.
optimize
.
CommonsChunkPlugin
({
names
:
[
'
main
'
,
'
common
'
,
'
runtime
'
],
}),
],
resolve
:
{
extensions
:
[
'
.js
'
,
'
.es6
'
,
'
.js.es6
'
],
alias
:
{
'
~
'
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
),
'
bootstrap/js
'
:
'
bootstrap-sass/assets/javascripts/bootstrap
'
,
'
emoji-aliases$
'
:
path
.
join
(
ROOT_PATH
,
'
fixtures/emojis/aliases.json
'
),
'
vendor
'
:
path
.
join
(
ROOT_PATH
,
'
vendor/assets/javascripts
'
),
'
vue$
'
:
'
vue/dist/vue.common.js
'
,
...
...
spec/javascripts/test_bundle.js
View file @
c42082b6
...
...
@@ -5,23 +5,12 @@ jasmine.getFixtures().fixturesPath = 'base/spec/javascripts/fixtures';
jasmine
.
getJSONFixtures
().
fixturesPath
=
'
base/spec/javascripts/fixtures
'
;
// include common libraries
require
(
'
~/commons/index.js
'
);
window
.
$
=
window
.
jQuery
=
require
(
'
jquery
'
);
window
.
_
=
require
(
'
underscore
'
);
window
.
Cookies
=
require
(
'
js-cookie
'
);
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
require
(
'
jquery-ujs
'
);
require
(
'
bootstrap/js/affix
'
);
require
(
'
bootstrap/js/alert
'
);
require
(
'
bootstrap/js/button
'
);
require
(
'
bootstrap/js/collapse
'
);
require
(
'
bootstrap/js/dropdown
'
);
require
(
'
bootstrap/js/modal
'
);
require
(
'
bootstrap/js/scrollspy
'
);
require
(
'
bootstrap/js/tab
'
);
require
(
'
bootstrap/js/transition
'
);
require
(
'
bootstrap/js/tooltip
'
);
require
(
'
bootstrap/js/popover
'
);
// stub expected globals
window
.
gl
=
window
.
gl
||
{};
...
...
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