Skip to content

Commit 22a7fec

Browse files
committed
[refactor] change dir build to dest
1 parent 4ed6b17 commit 22a7fec

File tree

4 files changed

+66
-31
lines changed

4 files changed

+66
-31
lines changed

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.DS_Store
2-
build
2+
dest
33
node_modules

‎gulpfile.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const htmlmin = require('gulp-htmlmin');
1616

1717
constfolder={
1818
src: 'src',
19-
build: 'build/web'
19+
dest: 'dest/web'
2020
}
2121

2222
constfilename={
@@ -26,7 +26,7 @@ const filename ={
2626

2727
functionmanifest(){
2828
returnsrc(folder.src+'/manifest.json')
29-
.pipe(dest(folder.build))
29+
.pipe(dest(folder.dest))
3030
}
3131

3232
functionhtml(){
@@ -36,24 +36,24 @@ function html(){
3636
.pipe(htmlmin({
3737
collapseWhitespace: true
3838
}))
39-
.pipe(dest(folder.build))
39+
.pipe(dest(folder.dest))
4040
}
4141

4242
functionfonts(){
4343
returnsrc(folder.src+'/fonts/**/*.*')
44-
.pipe(dest(folder.build+'/fonts'))
44+
.pipe(dest(folder.dest+'/fonts'))
4545
}
4646

4747
functionicons(){
4848
returnsrc(folder.src+'/icons/**/*.*')
49-
.pipe(dest(folder.build+'/icons'))
49+
.pipe(dest(folder.dest+'/icons'))
5050
}
5151

5252
functioncss(){
5353
returnsrc(folder.src+'/css/*.css')
5454
.pipe(concat(filename.css))
5555
.pipe(csso())
56-
.pipe(dest(folder.build+'/css'))
56+
.pipe(dest(folder.dest+'/css'))
5757
}
5858

5959
functionjs(){
@@ -89,7 +89,7 @@ function js(){
8989
])
9090
.pipe(concat(filename.js))
9191
.pipe(uglify())
92-
.pipe(dest(folder.build+'/js',{
92+
.pipe(dest(folder.dest+'/js',{
9393
sourcemaps: '.'
9494
}))
9595
}

‎package-lock.json‎

Lines changed: 55 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"main": "index.js",
66
"scripts":{
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"build": "npm run clean; npm run build-web; npm run build-webext",
8+
"build": "npm run clean; npm run build-web; npm run build-extension",
99
"build-web": "gulp",
10-
"build-webext": "web-ext build -s build/web -a build/webext",
10+
"build-extension": "web-ext build -s dest/web -a dest/extension",
1111
"lint-webext": "web-ext lint -s",
12-
"clean": "rm -rf build"
12+
"clean": "rm -rf dest"
1313
},
1414
"repository":{
1515
"type": "git",

0 commit comments

Comments
(0)