Skip to content

Commit 83951b1

Browse files
committed
somme updated
1 parent 3ebbb99 commit 83951b1

9 files changed

Lines changed: 25 additions & 26 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160218105514
2+
# Build: 20160218053107
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎gulpfile.js‎

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
require('date-utils');
2+
var path = require('path');
23
var gulp = require('gulp');
34
var through2 = require('through2');
45
var $ = require('gulp-load-plugins')();
56
var runSequence = require('run-sequence');
67
var browserSync = require('browser-sync');//http://www.browsersync.io/docs/gulp/
78
var reload = browserSync.reload;
89
var cachebust = new $.cachebust();
9-
var webpack = require("webpack");
10+
var webpack = require("webpack-stream");
1011

1112
//build version:
1213
//script version
@@ -73,21 +74,19 @@ gulp.task('dist:libjs', function () {
7374
.pipe(cachebust.resources())
7475
.pipe(gulp.dest('./src/lib/'));
7576
});
76-
gulp.task("dist:appjs", function(callback) {
77-
// run webpack
78-
webpack({
79-
entry: "./static/app/src/App.js",
80-
output: {
81-
path: __dirname + "/static/app/src",
82-
filename: "AppBundle.js"
83-
}
84-
}, function(err, stats) {
85-
if(err) throw new $.util.PluginError("webpack", err);
86-
$.util.log("[webpack]", stats.toString({
87-
// output options
88-
}));
89-
callback();
90-
});
77+
gulp.task("dist:appjs", function() {
78+
return gulp.src(['./static/app/src/App.js'])
79+
.pipe(webpack({
80+
resolve: {
81+
root: [
82+
path.resolve('./static/app/src')
83+
]
84+
},
85+
output: {
86+
filename: "AppBundle.js"
87+
}
88+
}))
89+
.pipe(gulp.dest('./static/app/src'));
9190
});
9291
gulp.task('dist:html', function () {
9392
return gulp.src(['./static/app/*.html'])

‎static/app/src/model/BookmarkModel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Util = require('../Util.js');
1+
var Util = require('Util.js');
22

33
module.exports = new function () {
44
var BM = this;

‎static/app/src/model/DDMSModel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Util = require('../Util.js');
1+
var Util = require('Util.js');
22

33
module.exports = new function () {
44
var postAction = 'http://ddmsapi.mihtool.com/apis/v1/formdata/';

‎static/app/src/model/Model.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Util = require('../Util.js');
1+
var Util = require('Util.js');
22

33
//model
44
//http://githut.info/

‎static/app/src/model/SearchcodeModel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Util = require('../Util.js');
1+
var Util = require('Util.js');
22

33
module.exports = new function () {
44
var persistLangsName = 'codelf_langs_selected';

‎static/app/src/model/YoudaoTranslateModel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Util = require('../Util.js');
1+
var Util = require('Util.js');
22

33
module.exports = new function () {
44
var lastVal;

‎static/app/src/view/BookmarkView.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var Util = require('../Util.js');
2-
var Model = require('../model/Model.js');
1+
var Util = require('Util.js');
2+
var Model = require('model/Model.js');
33

44
//view and render
55
var els = {

‎static/app/src/view/View.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var Util = require('../Util.js');
2-
var Model = require('../model/Model.js');
1+
var Util = require('Util.js');
2+
var Model = require('model/Model.js');
33

44
//view and render
55
var els = {

0 commit comments

Comments
 (0)