mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
0b5a74aa9f
No styling changes besides making the "primary" button-text bold (aligned with desktop app)
37 lines
918 B
JavaScript
37 lines
918 B
JavaScript
const gulp = require('gulp');
|
|
const googleWebFonts = require('gulp-google-webfonts');
|
|
const del = require('del');
|
|
const package = require('./package.json');
|
|
const fs = require('fs');
|
|
|
|
const paths = {
|
|
node_modules: './node_modules/',
|
|
src: './src/',
|
|
build: './build/',
|
|
cssDir: './src/css/',
|
|
};
|
|
|
|
function clean() {
|
|
return del([paths.cssDir]);
|
|
}
|
|
|
|
function webfonts() {
|
|
return gulp.src('./webfonts.list')
|
|
.pipe(googleWebFonts({
|
|
fontsDir: 'webfonts',
|
|
cssFilename: 'webfonts.css',
|
|
format: 'woff',
|
|
}))
|
|
.pipe(gulp.dest(paths.cssDir));
|
|
};
|
|
|
|
function version(cb) {
|
|
fs.writeFileSync(paths.build + 'version.json', '{"version":"' + package.version + '"}');
|
|
cb();
|
|
}
|
|
|
|
exports.clean = clean;
|
|
exports.webfonts = gulp.series(clean, webfonts);
|
|
exports.prebuild = gulp.series(clean, webfonts);
|
|
exports.version = version;
|
|
exports.postdist = version; |