Skip to content

Commit be866a7

Browse files
committed
rename build to dist
1 parent be33611 commit be866a7

9 files changed

Lines changed: 11 additions & 11 deletions

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<title>APlayer Demo</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<link rel="stylesheet" href="../build/APlayer.min.css">
7+
<link rel="stylesheet" href="../dist/APlayer.min.css">
88
<style>
99
body {
1010
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
@@ -60,7 +60,7 @@ <h3>Narrow style and no autoplay</h3>
6060
<div style="padding: 10px; font-size: 10px; text-align: center;">(>﹏<) APlayer 加载中,好累的说...</div>
6161
</div>
6262
</div>
63-
<script src="../build/APlayer.min.js"></script>
63+
<script src="../dist/APlayer.min.js"></script>
6464
<script>
6565
var ap1 = new APlayer({
6666
element: document.getElementById('player1'),

gulpfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var minifyCSS = require('gulp-minify-css');
77
var rename = require('gulp-rename');
88
var browserSync = require('browser-sync').create();
99

10-
// Static server
10+
// Launch the server
1111
gulp.task('browser-sync', function() {
1212
browserSync.init({
1313
server: {
@@ -17,24 +17,24 @@ gulp.task('browser-sync', function() {
1717
});
1818
});
1919

20-
// Move font file
20+
// Move font files
2121
gulp.task('copy', function () {
2222
return gulp.src('src/font/*')
23-
.pipe(gulp.dest('build/font'));
23+
.pipe(gulp.dest('dist/font'));
2424
});
2525

26-
// Build src js files
26+
// Build js files
2727
gulp.task('compressJS', function() {
2828
gulp.src(['src/*.js'])
2929
.pipe(uglify())
3030
.pipe(rename({
3131
suffix: ".min"
3232
}))
33-
.pipe(gulp.dest('build'))
33+
.pipe(gulp.dest('dist'))
3434
.pipe(browserSync.stream());
3535
});
3636

37-
// Build src css files
37+
// Build css files
3838
gulp.task('compressCSS', function() {
3939
gulp.src('src/*.scss')
4040
.pipe(sass())
@@ -43,7 +43,7 @@ gulp.task('compressCSS', function() {
4343
.pipe(rename({
4444
suffix: ".min"
4545
}))
46-
.pipe(gulp.dest('build'))
46+
.pipe(gulp.dest('dist'))
4747
.pipe(browserSync.stream());
4848
});
4949

@@ -55,5 +55,5 @@ gulp.task('watch', function () {
5555
gulp.watch('demo/font/*', ['copy']);
5656
});
5757

58-
// Default task, running just `gulp` will move font, compress js and scss, start server, watch files.
58+
// Default task, running just `gulp` will move font, compress js and scss, launch server, watch files.
5959
gulp.task('default', ['copy', 'compressJS', 'compressCSS', 'browser-sync', 'watch']);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aplayer",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Wow, such a beautiful html5 music player",
55
"main": "APlayer.js",
66
"scripts": {

0 commit comments

Comments
 (0)