1
Fork 0

Remove babel, fix lint

This commit is contained in:
Jake Howard 2017-01-11 08:46:42 +00:00
parent 96f27d1b52
commit 7aafe6a19f
5 changed files with 9 additions and 13 deletions

View file

@ -23,13 +23,10 @@
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "=6.5.0", "autoprefixer": "=6.5.0",
"babel-preset-es2015": "=6.13.2",
"babelify": "=7.3.0",
"browserify": "=13.1.0", "browserify": "=13.1.0",
"clean-css": "=3.4.20", "clean-css": "=3.4.20",
"eslint": "=1.5.0", "eslint": "=1.5.0",
"eslint-config": "git://github.com/dabapps/eslint-config.git", "eslint-config": "git://github.com/dabapps/eslint-config.git#1.1.4",
"eslint-plugin-react": "=3.4.2",
"markdown-spellcheck": "=0.11.0", "markdown-spellcheck": "=0.11.0",
"node-sass": "=3.8.0", "node-sass": "=3.8.0",
"nsp": "=2.6.1", "nsp": "=2.6.1",

View file

@ -43,7 +43,6 @@ def static_build(*args, **kwargs):
run_command('Building jQuery', [node_bin('uglifyjs'), 'node_modules/jquery/dist/jquery.js', UGLIFY_ARGS, '-o', 'theme/static/build/js/jquery.js']) run_command('Building jQuery', [node_bin('uglifyjs'), 'node_modules/jquery/dist/jquery.js', UGLIFY_ARGS, '-o', 'theme/static/build/js/jquery.js'])
run_command('Building Application', [ run_command('Building Application', [
node_bin('browserify'), node_bin('browserify'),
'-t', '[', 'babelify', '--presets', '[', 'es2015', ']', ']',
'theme/static/src/js/app.js', 'theme/static/src/js/app.js',
'-o', 'theme/static/build/js/app.js' '-o', 'theme/static/build/js/app.js'
]) ])

View file

@ -1,9 +1,9 @@
import './creative'; require('./creative');
import ansi_up from 'ansi_up'; var ansi_up = require('ansi_up');
$('.image').each(function () { // setup div-image hybrids $('.image').each(function () { // setup div-image hybrids
const ele = $(this); var ele = $(this);
if (ele.data('image')) { if (ele.data('image')) {
ele.css('background-image', 'url(' + ele.data('image') + ')'); ele.css('background-image', 'url(' + ele.data('image') + ')');
} else { } else {
@ -12,6 +12,6 @@ $('.image').each(function () { // setup div-image hybrids
}); });
$('.ansi-up').each(function () { $('.ansi-up').each(function () {
const ele = $(this); var ele = $(this);
ele.html(ansi_up.ansi_to_html(ele.html())); ele.html(ansi_up.ansi_to_html(ele.html()));
}); });

View file

@ -6,7 +6,7 @@
// jQuery for page scrolling feature - requires jQuery Easing plugin // jQuery for page scrolling feature - requires jQuery Easing plugin
$('a.page-scroll').bind('click', function(event) { $('a.page-scroll').bind('click', function(event) {
const anchor = $(this); var anchor = $(this);
$('html, body').stop().animate( $('html, body').stop().animate(
{ {
scrollTop: ($(anchor.attr('href')).offset().top - 50) scrollTop: ($(anchor.attr('href')).offset().top - 50)

View file

@ -1,6 +1,6 @@
import 'jquery.easing'; require('jquery.easing');
import './creative'; require('./creative');
import WOW from 'wow.js'; var WOW = require('wow.js');
new WOW().init(); new WOW().init();