代码拉取完成,页面将自动刷新
var elixir = require('laravel-elixir'),
gulp = require('gulp'),
gutil = require('gulp-util'),
coffee = require('gulp-coffee');
gulp.task('coffee', function() {
gulp.src('./resources/assets/coffee/**/*.coffee')
.pipe(gulp.dest('./public/dist/coffee/'))
.pipe(coffee({bare: true}).on('error', gutil.log));
});
elixir.config.production = true;
elixir.config.sourcemaps = false;
elixir(function (mix) {
mix
.sass('gitamin.scss', 'public/dist/css/gitamin.css')
.styles([
'vendor/bower_components/prism/themes/prism-okaidia.css',
'vendor/bower_components/nprogress/nprogress.css',
'vendor/bower_components/messenger/build/css/messenger*.css',
'vendor/bower_components/select2/dist/css/select2.css',
'vendor/bower_components/ekko-lightbox/dist/ekko-lightbox.css',
'public/dist/css/gitamin.css'
], 'public/dist/css/all.css', './')
.coffee()
.scripts([
'vendor/bower_components/jquery/dist/jquery.js',
'vendor/bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
'vendor/bower_components/underscore/underscore-min.js',
'vendor/bower_components/backbone/backbone-min.js',
'vendor/bower_components/sweetalert/dist/sweetalert.min.js',
'vendor/bower_components/moment/min/moment-with-locales.js',
'vendor/bower_components/lodash/lodash.js',
'vendor/bower_components/messenger/build/js/messenger.js',
'vendor/bower_components/jquery-pjax/jquery.pjax.js',
'vendor/bower_components/autosize/jquery.autosize.min.js',
'vendor/bower_components/scrollup/dist/jquery.scrollUp.min.js',
'vendor/bower_components/jquery-textcomplete/dist/jquery.textcomplete.min.js',
'vendor/bower_components/nprogress/nprogress.js',
'vendor/bower_components/jquery-serialize-object/jquery.serialize-object.js',
'vendor/bower_components/jquery-caret/jquery.caret.js',
'vendor/bower_components/marked/marked.min.js',
'vendor/bower_components/markdown/lib/markdown.js',
'vendor/bower_components/raphael/raphael.js',
'vendor/bower_components/showdown/src/showdown.js',
'vendor/bower_components/showdown/src/extensions/table.js',
'vendor/bower_components/prism/prism.js',
'vendor/bower_components/prism/components/prism-php*.min.js',
'vendor/bower_components/localforage/dist/localforage.min.js',
'vendor/bower_components/emoji/lib/emoji.js',
'vendor/bower_components/emojify/dist/js/emojify.min.js',
'vendor/bower_components/ekko-lightbox/dist/ekko-lightbox.min.js',
'vendor/bower_components/Sortable/Sortable.js',
'vendor/bower_components/select2/dist/js/select2.min.js',
'vendor/bower_components/inline-attachment/src/inline-attach.js',
'vendor/bower_components/inline-attachment/src/jquery.inline-attach.js',
'resources/assets/js/*.js',
'public/js/app.js'
], 'public/dist/js/all.js', './')
.version(['public/dist/css/all.css', 'public/dist/js/all.js'])
.copy('vendor/bower_components/font-awesome/fonts/', 'public/fonts/')
.copy('vendor/bower_components/octicons/octicons/octicons.{eot,ttf,woff,svg}', 'public/fonts/');
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。