Remove babel, fix lint
This commit is contained in:
parent
96f27d1b52
commit
7aafe6a19f
5 changed files with 9 additions and 13 deletions
|
@ -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",
|
||||||
|
|
|
@ -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'
|
||||||
])
|
])
|
||||||
|
|
|
@ -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()));
|
||||||
});
|
});
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Reference in a new issue