1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

rename: dist => build, releases => dist

This commit is contained in:
Kyle Spearrin 2017-11-16 11:23:53 -05:00
parent cd4c2d6d10
commit 4d3a471049
3 changed files with 14 additions and 14 deletions

2
.gitignore vendored
View File

@ -9,5 +9,5 @@ webfonts/
*.crx
*.pem
*.zip
releases/
build/
package-lock.json

View File

@ -12,7 +12,7 @@ const gulp = require('gulp'),
del = require('del');
const paths = {
releases: './releases/',
build: './build/',
dist: './dist/',
libDir: './src/lib/',
npmDir: './node_modules/',
@ -21,18 +21,18 @@ const paths = {
};
const fontsFilter = [
'!dist/popup/fonts/*',
'dist/popup/fonts/Open_Sans*.woff',
'dist/popup/fonts/fontawesome*.woff'
'!build/popup/fonts/*',
'build/popup/fonts/Open_Sans*.woff',
'build/popup/fonts/fontawesome*.woff'
];
function dist(browserName, manifest) {
return gulp.src(paths.dist + '**/*')
.pipe(filter(['**', '!dist/edge/**/*'].concat(fontsFilter)))
return gulp.src(paths.build + '**/*')
.pipe(filter(['**', '!build/edge/**/*'].concat(fontsFilter)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
.pipe(gulpif('manifest.json', jeditor(manifest)))
.pipe(zip(`dist-${browserName}.zip`))
.pipe(gulp.dest(paths.releases));
.pipe(gulp.dest(paths.dist));
}
gulp.task('dist', ['dist:firefox', 'dist:chrome', 'dist:opera', 'dist:edge']);
@ -63,12 +63,12 @@ gulp.task('dist:chrome', (cb) => {
// Since Edge extensions require makeappx to be run we temporarily store it in a folder.
gulp.task('dist:edge', (cb) => {
const edgePath = paths.releases + 'Edge/';
const edgePath = paths.dist + 'Edge/';
const extensionPath = edgePath + 'Extension/';
const appxPath = paths.releases + 'dist-edge.appx';
const appxPath = paths.dist + 'dist-edge.appx';
return del([edgePath, appxPath])
.then(() => edgeCopyDist(paths.dist + '**/*', extensionPath))
.then(() => edgeCopyBuild(paths.build + '**/*', extensionPath))
.then(() => edgeCopyAssets('./store/windows/**/*', edgePath))
.then(() => {
// makeappx.exe must be in your system's path already
@ -79,7 +79,7 @@ gulp.task('dist:edge', (cb) => {
});
});
function edgeCopyDist(source, dest) {
function edgeCopyBuild(source, dest) {
return new Promise((resolve, reject) => {
gulp.src(source)
.on('error', reject)

View File

@ -60,7 +60,7 @@ module.exports = {
},
plugins: [
new CleanWebpackPlugin([
path.resolve(__dirname, 'dist/*')
path.resolve(__dirname, 'build/*')
]),
new webpack.optimize.CommonsChunkPlugin({
name: 'popup/vendor',
@ -100,6 +100,6 @@ module.exports = {
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist')
path: path.resolve(__dirname, 'build')
}
};