adding eslint
This commit is contained in:
parent
5f395dcf41
commit
084a1a2326
19
.eslintrc.yml
Normal file
19
.eslintrc.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# http://eslint.org/docs/user-guide/configuring
|
||||||
|
# http://eslint.org/docs/2.0.0/rules/
|
||||||
|
env:
|
||||||
|
browser: true
|
||||||
|
jquery: true
|
||||||
|
extends: 'eslint:recommended'
|
||||||
|
rules:
|
||||||
|
indent:
|
||||||
|
- error
|
||||||
|
- 2
|
||||||
|
linebreak-style:
|
||||||
|
- error
|
||||||
|
- unix
|
||||||
|
no-trailing-spaces:
|
||||||
|
- warn
|
||||||
|
quotes: off
|
||||||
|
semi:
|
||||||
|
- error
|
||||||
|
- always
|
@ -19,6 +19,10 @@ RUN apt-get update \
|
|||||||
&& echo "alias la='ls -ahl'" >> /root/.bashrc \
|
&& echo "alias la='ls -ahl'" >> /root/.bashrc \
|
||||||
&& echo "export HISTCONTROL=ignoredups" >> /root/.bashrc
|
&& echo "export HISTCONTROL=ignoredups" >> /root/.bashrc
|
||||||
|
|
||||||
|
# RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
||||||
|
# RUN apt-get update\
|
||||||
|
# && apt-get install --yes nodejs
|
||||||
|
|
||||||
# install current Ruby
|
# install current Ruby
|
||||||
RUN curl -L --progress https://github.com/postmodern/ruby-install/archive/v0.6.0.tar.gz | tar xz \
|
RUN curl -L --progress https://github.com/postmodern/ruby-install/archive/v0.6.0.tar.gz | tar xz \
|
||||||
&& cd ruby-install-0.6.0 \
|
&& cd ruby-install-0.6.0 \
|
||||||
|
2
Gemfile
2
Gemfile
@ -21,10 +21,10 @@ gem 'neat'
|
|||||||
gem 'bitters'
|
gem 'bitters'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
|
gem 'better_errors'
|
||||||
gem 'rack-livereload'
|
gem 'rack-livereload'
|
||||||
gem 'rails-erd'
|
gem 'rails-erd'
|
||||||
gem 'web-console'
|
gem 'web-console'
|
||||||
gem 'better_errors'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
|
11
Guardfile
11
Guardfile
@ -23,7 +23,7 @@ guard :minitest, spring: true do # , all_after_pass: true
|
|||||||
end
|
end
|
||||||
|
|
||||||
guard 'livereload' do
|
guard 'livereload' do
|
||||||
watch(%r{app/assets/.+\.(scss|css|js)})
|
watch(%r{app/assets/.+\.(scss|css|js|erb)})
|
||||||
watch(%r{app/views/.+\.(erb|haml|slim)$})
|
watch(%r{app/views/.+\.(erb|haml|slim)$})
|
||||||
watch(%r{app/controllers/.+\.rb})
|
watch(%r{app/controllers/.+\.rb})
|
||||||
watch(%r{app/helpers/.+\.rb})
|
watch(%r{app/helpers/.+\.rb})
|
||||||
@ -31,7 +31,7 @@ guard 'livereload' do
|
|||||||
watch(%r{config/locales/.+\.yml})
|
watch(%r{config/locales/.+\.yml})
|
||||||
|
|
||||||
# Rails Assets Pipeline
|
# Rails Assets Pipeline
|
||||||
watch(%r{(app|vendor)(/assets/\w+/(.+\.(scss|css|js|html|png|jpg))).*}) do |m|
|
watch(%r{(app|vendor)(/assets/\w+/(.+\.(scss|css|js|erb|html|png|jpg))).*}) do |m|
|
||||||
"/assets/#{m[3]}"
|
"/assets/#{m[3]}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -41,3 +41,10 @@ guard :rubocop do
|
|||||||
watch(/Rakefile/)
|
watch(/Rakefile/)
|
||||||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ESLint
|
||||||
|
guard :shell, all_on_start: true do
|
||||||
|
watch %r{app/assets/javascripts/*/.*} do |file|
|
||||||
|
`eslint #{file[0]}`
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
//= require_self
|
//= require_self
|
||||||
//= require_tree ./channels
|
//= require_tree ./channels
|
||||||
|
|
||||||
(function() {
|
// (function() {
|
||||||
this.App || (this.App = {});
|
// this.App || (this.App = {});
|
||||||
|
//
|
||||||
App.cable = ActionCable.createConsumer();
|
// App.cable = ActionCable.createConsumer();
|
||||||
|
//
|
||||||
}).call(this);
|
// }).call(this);
|
||||||
|
154
app/assets/javascripts/jquery-linedtextarea-moser.js
vendored
154
app/assets/javascripts/jquery-linedtextarea-moser.js
vendored
@ -1,5 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* NOTE: MARK MOSER EDITED COPY. DO NOT USE BOWER.
|
* NOTE: MARK MOSER EDITED COPY. DO NOT USE BOWER.
|
||||||
|
*
|
||||||
* jQuery Lined Textarea Plugin
|
* jQuery Lined Textarea Plugin
|
||||||
* http://alan.blog-city.com/jquerylinedtextarea.htm
|
* http://alan.blog-city.com/jquerylinedtextarea.htm
|
||||||
*
|
*
|
||||||
@ -29,99 +30,96 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
(function($) {
|
(function($) {
|
||||||
|
$.fn.linedtextarea = function(options) {
|
||||||
|
|
||||||
$.fn.linedtextarea = function(options) {
|
// Get the Options
|
||||||
|
var opts = $.extend({}, $.fn.linedtextarea.defaults, options);
|
||||||
|
|
||||||
// Get the Options
|
/*
|
||||||
var opts = $.extend({}, $.fn.linedtextarea.defaults, options);
|
* Helper function to make sure the line numbers are always
|
||||||
|
* kept up to the current system
|
||||||
|
*/
|
||||||
|
var fillOutLines = function(codeLines, h, lineNo){
|
||||||
|
while ( (codeLines.height() - h ) <= 0 ){
|
||||||
|
if ( lineNo == opts.selectedLine )
|
||||||
|
codeLines.append("<div class='lineno lineselect'>" + lineNo + "</div>");
|
||||||
|
else
|
||||||
|
codeLines.append("<div class='lineno'>" + lineNo + "</div>");
|
||||||
|
|
||||||
|
lineNo++;
|
||||||
|
}
|
||||||
|
return lineNo;
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Iterate through each of the elements are to be applied to
|
||||||
|
*/
|
||||||
|
return this.each(function() {
|
||||||
|
var lineNo = 1;
|
||||||
|
var textarea = $(this);
|
||||||
|
|
||||||
|
/* Turn off the wrapping of as we don't want to screw up the line numbers */
|
||||||
|
textarea.attr("wrap", "off");
|
||||||
|
textarea.css({resize:'none'});
|
||||||
|
// var originalTextAreaWidth = textarea.outerWidth();
|
||||||
|
|
||||||
|
/* Wrap the text area in the elements we need */
|
||||||
|
textarea.wrap("<div class='linedtextarea'></div>");
|
||||||
|
var linedTextAreaDiv = textarea.parent().wrap("<div class='linedwrap'></div>");
|
||||||
|
var linedWrapDiv = linedTextAreaDiv.parent();
|
||||||
|
|
||||||
|
linedWrapDiv.prepend("<div class='lines'></div>");
|
||||||
|
|
||||||
|
var linesDiv = linedWrapDiv.find(".lines");
|
||||||
|
linesDiv.height( textarea.height() + 4 );
|
||||||
|
|
||||||
|
|
||||||
/*
|
/* Draw the number bar; filling it out where necessary */
|
||||||
* Helper function to make sure the line numbers are always
|
linesDiv.append( "<div class='codelines'></div>" );
|
||||||
* kept up to the current system
|
var codeLinesDiv = linesDiv.find(".codelines");
|
||||||
*/
|
lineNo = fillOutLines( codeLinesDiv, linesDiv.height(), 1 );
|
||||||
var fillOutLines = function(codeLines, h, lineNo){
|
|
||||||
while ( (codeLines.height() - h ) <= 0 ){
|
|
||||||
if ( lineNo == opts.selectedLine )
|
|
||||||
codeLines.append("<div class='lineno lineselect'>" + lineNo + "</div>");
|
|
||||||
else
|
|
||||||
codeLines.append("<div class='lineno'>" + lineNo + "</div>");
|
|
||||||
|
|
||||||
lineNo++;
|
/* Move the textarea to the selected line */
|
||||||
}
|
if ( opts.selectedLine != -1 && !isNaN(opts.selectedLine) ){
|
||||||
return lineNo;
|
var fontSize = parseInt( textarea.height() / (lineNo-2) );
|
||||||
};
|
var position = parseInt( fontSize * opts.selectedLine ) - (textarea.height()/2);
|
||||||
|
textarea[0].scrollTop = position;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/* Set the width */
|
||||||
* Iterate through each of the elements are to be applied to
|
// var sidebarWidth = linesDiv.outerWidth();
|
||||||
*/
|
// var paddingHorizontal = parseInt( linedWrapDiv.css("border-left-width") ) + parseInt( linedWrapDiv.css("border-right-width") ) + parseInt( linedWrapDiv.css("padding-left") ) + parseInt( linedWrapDiv.css("padding-right") );
|
||||||
return this.each(function() {
|
// var linedWrapDivNewWidth = originalTextAreaWidth - paddingHorizontal;
|
||||||
var lineNo = 1;
|
// var textareaNewWidth = originalTextAreaWidth - sidebarWidth - paddingHorizontal - 20;
|
||||||
var textarea = $(this);
|
//
|
||||||
|
// textarea.width( textareaNewWidth );
|
||||||
/* Turn off the wrapping of as we don't want to screw up the line numbers */
|
// linedWrapDiv.width( linedWrapDivNewWidth );
|
||||||
textarea.attr("wrap", "off");
|
|
||||||
textarea.css({resize:'none'});
|
|
||||||
var originalTextAreaWidth = textarea.outerWidth();
|
|
||||||
|
|
||||||
/* Wrap the text area in the elements we need */
|
|
||||||
textarea.wrap("<div class='linedtextarea'></div>");
|
|
||||||
var linedTextAreaDiv = textarea.parent().wrap("<div class='linedwrap'></div>");
|
|
||||||
var linedWrapDiv = linedTextAreaDiv.parent();
|
|
||||||
|
|
||||||
linedWrapDiv.prepend("<div class='lines'></div>");
|
|
||||||
|
|
||||||
var linesDiv = linedWrapDiv.find(".lines");
|
|
||||||
linesDiv.height( textarea.height() + 4 );
|
|
||||||
|
|
||||||
|
|
||||||
/* Draw the number bar; filling it out where necessary */
|
|
||||||
linesDiv.append( "<div class='codelines'></div>" );
|
|
||||||
var codeLinesDiv = linesDiv.find(".codelines");
|
|
||||||
lineNo = fillOutLines( codeLinesDiv, linesDiv.height(), 1 );
|
|
||||||
|
|
||||||
/* Move the textarea to the selected line */
|
|
||||||
if ( opts.selectedLine != -1 && !isNaN(opts.selectedLine) ){
|
|
||||||
var fontSize = parseInt( textarea.height() / (lineNo-2) );
|
|
||||||
var position = parseInt( fontSize * opts.selectedLine ) - (textarea.height()/2);
|
|
||||||
textarea[0].scrollTop = position;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Set the width */
|
|
||||||
// var sidebarWidth = linesDiv.outerWidth();
|
|
||||||
// var paddingHorizontal = parseInt( linedWrapDiv.css("border-left-width") ) + parseInt( linedWrapDiv.css("border-right-width") ) + parseInt( linedWrapDiv.css("padding-left") ) + parseInt( linedWrapDiv.css("padding-right") );
|
|
||||||
// var linedWrapDivNewWidth = originalTextAreaWidth - paddingHorizontal;
|
|
||||||
// var textareaNewWidth = originalTextAreaWidth - sidebarWidth - paddingHorizontal - 20;
|
|
||||||
//
|
|
||||||
// textarea.width( textareaNewWidth );
|
|
||||||
// linedWrapDiv.width( linedWrapDivNewWidth );
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* React to the scroll event */
|
/* React to the scroll event */
|
||||||
textarea.scroll( function(tn){
|
textarea.scroll( function(){
|
||||||
var domTextArea = $(this)[0];
|
var domTextArea = $(this)[0];
|
||||||
var scrollTop = domTextArea.scrollTop;
|
var scrollTop = domTextArea.scrollTop;
|
||||||
var clientHeight = domTextArea.clientHeight;
|
var clientHeight = domTextArea.clientHeight;
|
||||||
codeLinesDiv.css( {'margin-top': (-1*scrollTop) + "px"} );
|
codeLinesDiv.css( {'margin-top': (-1*scrollTop) + "px"} );
|
||||||
lineNo = fillOutLines( codeLinesDiv, scrollTop + clientHeight, lineNo );
|
lineNo = fillOutLines( codeLinesDiv, scrollTop + clientHeight, lineNo );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/* Should the textarea get resized outside of our control */
|
/* Should the textarea get resized outside of our control */
|
||||||
textarea.resize( function(tn){
|
textarea.resize( function(){
|
||||||
var domTextArea = $(this)[0];
|
var domTextArea = $(this)[0];
|
||||||
linesDiv.height( domTextArea.clientHeight + 4 );
|
linesDiv.height( domTextArea.clientHeight + 4 );
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// default options
|
// default options
|
||||||
$.fn.linedtextarea.defaults = {
|
$.fn.linedtextarea.defaults = {
|
||||||
selectedLine: -1,
|
selectedLine: -1,
|
||||||
selectedClass: 'lineselect'
|
selectedClass: 'lineselect'
|
||||||
};
|
};
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
function updateResults(elem) { var resultsContainer = $(elem).find('[data-id="results"]')[0];
|
function updateResults(elem) {
|
||||||
|
var resultsContainer = $(elem).find('[data-id="results"]')[0];
|
||||||
var codeHtml = $(elem).find('.code-html')[0].value.trim();
|
var codeHtml = $(elem).find('.code-html')[0].value.trim();
|
||||||
var codeCss = $(elem).find('.code-css')[0].value.trim();
|
var codeCss = $(elem).find('.code-css')[0].value.trim();
|
||||||
var codeJs = $(elem).find('.code-js')[0].value.trim();
|
var codeJs = $(elem).find('.code-js')[0].value.trim();
|
||||||
@ -15,7 +16,9 @@ function updateResults(elem) { var resultsContainer = $(elem).find('[data-id="r
|
|||||||
|
|
||||||
var jqueryNode = document.createElement("script");
|
var jqueryNode = document.createElement("script");
|
||||||
jqueryNode.setAttribute("type", "text/javascript");
|
jqueryNode.setAttribute("type", "text/javascript");
|
||||||
jqueryNode.setAttribute("src", "<%= "//#{ENV['full_app_url']}#{javascript_path "jquery"}" %>");
|
// TODO: fix eslint runner to handle erb snippets
|
||||||
|
// jqueryNode.setAttribute("src", "<%= "//#{ENV['full_app_url']}#{javascript_path "jquery"}" %>");
|
||||||
|
jqueryNode.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js");
|
||||||
iHead.appendChild(jqueryNode);
|
iHead.appendChild(jqueryNode);
|
||||||
|
|
||||||
var codeStyle = document.createElement("style");
|
var codeStyle = document.createElement("style");
|
||||||
@ -92,7 +95,7 @@ function indentSelection(e){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
timer = 0;
|
var timer = 0;
|
||||||
$(function(){
|
$(function(){
|
||||||
// wait a half second before updating results
|
// wait a half second before updating results
|
||||||
// restart the timer if they resume typing
|
// restart the timer if they resume typing
|
||||||
|
@ -41,7 +41,7 @@ var editClickHandler = function(e) {
|
|||||||
else if(thisEd.find('input').attr('type') == 'checkbox') {
|
else if(thisEd.find('input').attr('type') == 'checkbox') {
|
||||||
$(thisEd.find('input')).each(function() {
|
$(thisEd.find('input')).each(function() {
|
||||||
if($(this).prop('checked') === true) {
|
if($(this).prop('checked') === true) {
|
||||||
existingValue.push($(this).val());
|
existingValue.push($(this).val());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -66,13 +66,13 @@ var cancelClickHandler = function(e) {
|
|||||||
var thisEd = $(e.delegateTarget);
|
var thisEd = $(e.delegateTarget);
|
||||||
if(thisEd.find('input').attr('type') == 'radio') {
|
if(thisEd.find('input').attr('type') == 'radio') {
|
||||||
$(thisEd.find('input')).each(function() {
|
$(thisEd.find('input')).each(function() {
|
||||||
if($(this).val()!=existingValue) {
|
if($(this).val()!=existingValue) {
|
||||||
$(this).attr('checked', false).prop('checked', false);
|
$(this).attr('checked', false).prop('checked', false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(this).prop('checked', true);
|
$(this).prop('checked', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if(thisEd.find('input').attr('type') == 'checkbox') {
|
else if(thisEd.find('input').attr('type') == 'checkbox') {
|
||||||
$(existingValue).each(function(index, value) {
|
$(existingValue).each(function(index, value) {
|
||||||
@ -137,39 +137,39 @@ var saveClickHandler = function(e) {
|
|||||||
$(thisEd).before('<div class="error">Please select or enter a value.</div>');
|
$(thisEd).before('<div class="error">Please select or enter a value.</div>');
|
||||||
} else {
|
} else {
|
||||||
thisEd.find('textarea:not(.code-answer)').replaceWith('<p class="text-answer answer-container">' + $.trim(thisEd.find('textarea').val()) + '</p>');
|
thisEd.find('textarea:not(.code-answer)').replaceWith('<p class="text-answer answer-container">' + $.trim(thisEd.find('textarea').val()) + '</p>');
|
||||||
url = thisEd.closest('form').attr('action');
|
var postUrl = thisEd.closest('form').attr('action');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: url,
|
url: postUrl,
|
||||||
data: ({
|
data: ({
|
||||||
'answer': $.extend(data, {'question_id': questionId, 'answer_id': answerId}),
|
'answer': $.extend(data, {'question_id': questionId, 'answer_id': answerId}),
|
||||||
'submit': true
|
'submit': true
|
||||||
}),
|
}),
|
||||||
success: function(data){
|
success: function(){ //unused data
|
||||||
executeQuery = true;
|
executeQuery = true;
|
||||||
},
|
},
|
||||||
error: function(data){
|
error: function(){ //unused data
|
||||||
executeQuery = false;
|
executeQuery = false;
|
||||||
}
|
}
|
||||||
}).done(function() {
|
}).done(function() {
|
||||||
if(executeQuery === true) {
|
if(executeQuery === true) {
|
||||||
$('.success, .error').remove();
|
$('.success, .error').remove();
|
||||||
$(thisEd).before('<div class="success">Your answer has been updated successfully!</div>');
|
$(thisEd).before('<div class="success">Your answer has been updated successfully!</div>');
|
||||||
$(thisEd).find('.code-answer').attr('disabled', true);
|
$(thisEd).find('.code-answer').attr('disabled', true);
|
||||||
}
|
}
|
||||||
if(executeQuery === false) {
|
if(executeQuery === false) {
|
||||||
$('.error, .success').remove();
|
$('.error, .success').remove();
|
||||||
$(thisEd).before('<div class="error">Oops! There was an error processing your request. Please try again.</div>');
|
$(thisEd).before('<div class="error">Oops! There was an error processing your request. Please try again.</div>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.button-edit, .submit-button').removeClass('disabled-button');
|
$('.button-edit, .submit-button').removeClass('disabled-button');
|
||||||
thisEd.removeClass('editable');
|
thisEd.removeClass('editable');
|
||||||
thisEd.find('.answer-block').prop('disabled', true);
|
thisEd.find('.answer-block').prop('disabled', true);
|
||||||
thisEd.find('.button-edit').show();
|
thisEd.find('.button-edit').show();
|
||||||
thisEd.find('.button-save, .button-cancel').hide();
|
thisEd.find('.button-save, .button-cancel').hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$('.answer-block').prop('disabled', true);
|
$('.answer-block').prop('disabled', true);
|
||||||
|
@ -1,30 +1,28 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
setTextAreaLimit();
|
setTextAreaLimit();
|
||||||
|
|
||||||
function setTextAreaLimit() {
|
function setTextAreaLimit() {
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
limiter: function(limit, elem) {
|
limiter: function(limit, elem) {
|
||||||
$('textarea').on("keyup focus show", function() {
|
$('textarea').on("keyup focus show", function() {
|
||||||
setCount(this, elem);
|
setCount(this, elem);
|
||||||
});
|
|
||||||
|
|
||||||
function setCount(src, elem) {
|
|
||||||
if(src != undefined) {
|
|
||||||
var chars = src.value.length;
|
|
||||||
if (chars > limit) {
|
|
||||||
src.value = src.value.substr(0, limit);
|
|
||||||
chars = limit;
|
|
||||||
}
|
|
||||||
elem.html(limit - chars);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
setCount($(this)[0], elem);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
var elem = $(".chars span");
|
|
||||||
$('textarea').limiter(1000, elem);
|
|
||||||
//$('input').limiter(1000, elem);
|
|
||||||
//$('.Question-1').addClass('active');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
function setCount(src, elem) {
|
||||||
|
if(src !== undefined) {
|
||||||
|
var chars = src.value.length;
|
||||||
|
if (chars > limit) {
|
||||||
|
src.value = src.value.substr(0, limit);
|
||||||
|
chars = limit;
|
||||||
|
}
|
||||||
|
elem.html(limit - chars);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setCount($(this)[0], elem);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var elem = $(".chars span");
|
||||||
|
$('textarea').limiter(1000, elem);
|
||||||
|
}
|
||||||
});
|
});
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "skill-assessment-app",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "This application manages quizzes intended to be used as pre-interview skill assessments.",
|
||||||
|
"dependencies": {
|
||||||
|
"bower": "^1.7.9",
|
||||||
|
"eslint": "^3.2.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git@gitlab.perficientxd.com:pdr/skill-assessment-app.git"
|
||||||
|
},
|
||||||
|
"license": "ISC"
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
if [ -d '/usr/app' ]; then
|
if [ -d '/usr/app' ]; then
|
||||||
cd /usr/app
|
cd /usr/app
|
||||||
bundle
|
bundle
|
||||||
|
npm install
|
||||||
bower install
|
bower install
|
||||||
cd vendor/assets/ && bitters install && cd /usr/app
|
cd vendor/assets/ && bitters install && cd /usr/app
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
if [ -d '/usr/app' ]; then
|
if [ -d '/usr/app' ]; then
|
||||||
cd /usr/app
|
cd /usr/app
|
||||||
bundle
|
bundle
|
||||||
|
npm install
|
||||||
bower install
|
bower install
|
||||||
cd vendor/assets/ && bitters install && cd /usr/app
|
cd vendor/assets/ && bitters install && cd /usr/app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user