Fix prettify-task
This commit is contained in:
@@ -14,7 +14,6 @@ var electron = require('electron-connect').server.create({
|
|||||||
var packager = require('electron-packager');
|
var packager = require('electron-packager');
|
||||||
|
|
||||||
var sources = ['**/*.js', '**/*.css', '**/*.html', '!**/node_modules/**', '!**/build/**', '!release/**'];
|
var sources = ['**/*.js', '**/*.css', '**/*.html', '!**/node_modules/**', '!**/build/**', '!release/**'];
|
||||||
var app_root = 'dist';
|
|
||||||
|
|
||||||
gulp.task('prettify', ['prettify:sources', 'prettify:jsx']);
|
gulp.task('prettify', ['prettify:sources', 'prettify:jsx']);
|
||||||
|
|
||||||
@@ -43,7 +42,7 @@ gulp.task('prettify:jsx', function() {
|
|||||||
},
|
},
|
||||||
plugins: ['esformatter-jsx']
|
plugins: ['esformatter-jsx']
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest(app_root));
|
.pipe(gulp.dest('src/browser'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('build', ['sync-meta', 'webpack', 'copy'], function() {
|
gulp.task('build', ['sync-meta', 'webpack', 'copy'], function() {
|
||||||
@@ -141,7 +140,7 @@ gulp.task('watch', ['build'], function() {
|
|||||||
function makePackage(platform, arch, callback) {
|
function makePackage(platform, arch, callback) {
|
||||||
var packageJson = require('./src/package.json');
|
var packageJson = require('./src/package.json');
|
||||||
packager({
|
packager({
|
||||||
dir: './' + app_root,
|
dir: './dist',
|
||||||
name: packageJson.name,
|
name: packageJson.name,
|
||||||
platform: platform,
|
platform: platform,
|
||||||
arch: arch,
|
arch: arch,
|
||||||
|
@@ -16,7 +16,7 @@ const ListGroup = ReactBootstrap.ListGroup;
|
|||||||
const ListGroupItem = ReactBootstrap.ListGroupItem;
|
const ListGroupItem = ReactBootstrap.ListGroupItem;
|
||||||
const Glyphicon = ReactBootstrap.Glyphicon;
|
const Glyphicon = ReactBootstrap.Glyphicon;
|
||||||
|
|
||||||
function backToIndex(){
|
function backToIndex() {
|
||||||
window.location = 'index.html';
|
window.location = 'index.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user