Commit d97b9622 authored by Filipa Lacerda's avatar Filipa Lacerda

Use webpack to require files

parent 2e5e4bd7
...@@ -6,8 +6,6 @@ require('../vue_shared/vue_resource_interceptor'); ...@@ -6,8 +6,6 @@ require('../vue_shared/vue_resource_interceptor');
require('./pipelines'); require('./pipelines');
$(() => { $(() => {
Vue.use(VueResource);
return new Vue({ return new Vue({
el: document.querySelector('.vue-pipelines-index'), el: document.querySelector('.vue-pipelines-index'),
......
/* global Vue, gl */ /* global Vue, gl */
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
//= require vue_shared/components/table_pagination window.Vue = require('vue');
//= require ./store.js.es6 require('../vue_shared/components/table_pagination');
//= require vue_shared/components/pipelines_table require('./store');
require('../vue_shared/components/pipelines_table');
((gl) => { ((gl) => {
gl.VuePipelines = Vue.extend({ gl.VuePipelines = Vue.extend({
......
/* global Vue, gl */ /* global Vue, gl */
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
//= require lib/utils/datetime_utility window.Vue = require('vue');
require('../lib/utils/datetime_utility');
((gl) => { ((gl) => {
gl.VueTimeAgo = Vue.extend({ gl.VueTimeAgo = Vue.extend({
......
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
/* global Vue */ /* global Vue */
//= require ./pipelines_table_row window.Vue = require('vue');
require('./pipelines_table_row');
/** /**
* Pipelines Table Component. * Pipelines Table Component.
* *
......
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
/* global Vue */ /* global Vue */
//= require vue_pipelines_index/status window.Vue = require('vue');
//= require vue_pipelines_index/pipeline_url require('../../vue_pipelines_index/status');
//= require vue_pipelines_index/stage require('../../vue_pipelines_index/pipeline_url');
//= require vue_shared/components/commit require('../../vue_pipelines_index/stage');
//= require vue_pipelines_index/pipeline_actions require('../../vue_pipelines_index/pipeline_actions');
//= require vue_pipelines_index/time_ago require('../../vue_pipelines_index/time_ago');
require('./commit');
/** /**
* Pipeline table row. * Pipeline table row.
* *
......
/* global pipeline, Vue */ /* global pipeline, Vue */
//= require vue require('vue-resource');
//= require vue-resource require('flash');
//= require flash require('~/commit/pipelines/pipelines_store');
//= require commit/pipelines/pipelines_store require('~/commit/pipelines/pipelines_service');
//= require commit/pipelines/pipelines_service require('~/commit/pipelines/pipelines_table');
//= require commit/pipelines/pipelines_table require('~vue_shared/vue_resource_interceptor');
//= require vue_shared/vue_resource_interceptor require('./mock_data');
//= require ./mock_data
describe('Pipelines table in Commits and Merge requests', () => { describe('Pipelines table in Commits and Merge requests', () => {
preloadFixtures('pipelines_table'); preloadFixtures('pipelines_table');
......
//= require vue require('~commit/pipelines/pipelines_store');
//= require commit/pipelines/pipelines_store
describe('Store', () => { describe('Store', () => {
const store = gl.commits.pipelines.PipelinesStore; const store = gl.commits.pipelines.PipelinesStore;
......
/* global pipeline */ /* global pipeline */
//= require vue require('~vue_shared/components/pipelines_table_row');
//= require vue_shared/components/pipelines_table_row require('./mock_data');
//= require commit/pipelines/mock_data
describe('Pipelines Table Row', () => { describe('Pipelines Table Row', () => {
let component; let component;
......
/* global pipeline */ /* global pipeline */
//= require vue require('~vue_shared/components/pipelines_table');
//= require vue_shared/components/pipelines_table require('~lib/utils/datetime_utility');
//= require commit/pipelines/mock_data require('./mock_data');
//= require lib/utils/datetime_utility
describe('Pipelines Table', () => { describe('Pipelines Table', () => {
preloadFixtures('static/environments/element.html.raw'); preloadFixtures('static/environments/element.html.raw');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment