Skip to content
Permalink
Browse files

Move theme redist files to affinity directory.

  • Loading branch information...
JixunMoe committed May 15, 2017
1 parent 3b77d0a commit 30590c22d04eba2843e244a687ea5b7bcff7eedf
@@ -7,4 +7,6 @@ demo/
!.csscomb.json
assets/*.min.js
assets/*.min.css
src/css
src/css
affinity/README.md
build/*.zip
@@ -1,2 +1,10 @@
commit = $(shell git rev-parse HEAD)
commit_short = $(shell git rev-parse --short HEAD)
comment = Build from $(shell git symbolic-ref --short HEAD)\#$(commit)

all:
gulp build minify
cp -f README.md affinity/README.md
echo $(comment) > affinity/.build
rm -f build/affinity-$(commit_short).zip
zip -9llrX build/affinity-$(commit_short).zip affinity
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@
This directory is used for holding redist zip files.

该目录用于存放分发用主题文件。
@@ -34,6 +34,8 @@ function move_header (file, enc, cb) {
cb(null, file);
}

var assetsDir = './affinity/assets';

gulp.task('watch', function() {
gulp.watch('./**/*.less', ['build', 'minify']);
});
@@ -55,7 +57,7 @@ gulp.task('minify', function() {
suffix: '.min'
}))
.pipe(through.obj(move_header))
.pipe(gulp.dest('./assets'));
.pipe(gulp.dest(assetsDir));
gulp.src('./src/js/**/*.js')
.pipe(uglify({
preserveComments: 'license',
@@ -68,7 +70,7 @@ gulp.task('minify', function() {
suffix: '.min'
}))
.pipe(through.obj(move_header))
.pipe(gulp.dest('./assets'));
.pipe(gulp.dest(assetsDir));
});

gulp.task('default', ['build']);

0 comments on commit 30590c2

Please sign in to comment.
You can’t perform that action at this time.