Ivan - Improve client builder
This commit is contained in:
parent
d10de13626
commit
db79be846d
|
@ -30,7 +30,7 @@ function buildScript(file, watch) {
|
||||||
},
|
},
|
||||||
cache: {},
|
cache: {},
|
||||||
packageCache: {},
|
packageCache: {},
|
||||||
fullPaths: true
|
fullPaths: false
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( watch ) {
|
if ( watch ) {
|
||||||
|
|
|
@ -5,6 +5,6 @@ var config = require('../config');
|
||||||
|
|
||||||
gulp.task('copyFonts', function() {
|
gulp.task('copyFonts', function() {
|
||||||
|
|
||||||
gulp.src(config.sourceDir + 'fonts/**/*').pipe(gulp.dest(config.buildDir + 'fonts/'));
|
return gulp.src(config.fonts.src)
|
||||||
|
.pipe(gulp.dest(config.fonts.dest))
|
||||||
});
|
});
|
|
@ -10,6 +10,6 @@ gulp.task('dev', ['clean'], function(callback) {
|
||||||
global.isProd = false;
|
global.isProd = false;
|
||||||
|
|
||||||
// Run all tasks once
|
// Run all tasks once
|
||||||
return runSequence(['sass', 'imagemin', 'browserify', 'copyFonts', 'copyIndex', 'copyIcons', 'config', 'fonts'], 'watch', callback);
|
return runSequence(['sass', 'imagemin', 'browserify', 'copyFonts', 'copyIndex', 'copyIcons', 'config'], 'watch', callback);
|
||||||
|
|
||||||
});
|
});
|
|
@ -1,10 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var gulp = require('gulp');
|
|
||||||
var config = require('../config');
|
|
||||||
|
|
||||||
gulp.task('fonts', function() {
|
|
||||||
|
|
||||||
return gulp.src(config.fonts.src)
|
|
||||||
.pipe(gulp.dest(config.fonts.dest))
|
|
||||||
});
|
|
|
@ -38,7 +38,7 @@
|
||||||
"gulp-sass-bulk-import": "^0.3.2",
|
"gulp-sass-bulk-import": "^0.3.2",
|
||||||
"gulp-sourcemaps": "^1.5.2",
|
"gulp-sourcemaps": "^1.5.2",
|
||||||
"gulp-streamify": "0.0.5",
|
"gulp-streamify": "0.0.5",
|
||||||
"gulp-uglify": "^1.2.0",
|
"gulp-uglify": "^2.1.2",
|
||||||
"gulp-util": "^3.0.6",
|
"gulp-util": "^3.0.6",
|
||||||
"humps": "^0.6.0",
|
"humps": "^0.6.0",
|
||||||
"jquery-mockjax": "^2.1.0",
|
"jquery-mockjax": "^2.1.0",
|
||||||
|
|
|
@ -21,17 +21,6 @@ const steps = [
|
||||||
|
|
||||||
class InstallLayout extends React.Component {
|
class InstallLayout extends React.Component {
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
API.call({
|
|
||||||
path: '/system/installation-done',
|
|
||||||
data: {}
|
|
||||||
}).then((result) => {
|
|
||||||
if(result.data == 1) {
|
|
||||||
browserHistory.push('/install/step-6');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<DocumentTitle title="OpenSupports Installation">
|
<DocumentTitle title="OpenSupports Installation">
|
||||||
|
|
Loading…
Reference in New Issue