aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2019-03-12 21:47:21 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-03-12 21:47:21 +0800
commit48047f81947c28cc21f0fb93fe98a2d308078714 (patch)
treefb7a60317d331fadc640149bea15a257b9dd8d06 /gulpfile.js
parent70e7e592aee53c672639841f029c963331cfae81 (diff)
downloadtangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.gz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.bz2
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.lz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.xz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.zst
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.zip
mascara - remove from project (#6283)
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/gulpfile.js b/gulpfile.js
index c672a9eff..c1012d5aa 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -51,8 +51,6 @@ const browserPlatforms = [
'opera',
]
const commonPlatforms = [
- // browser webapp
- 'mascara',
// browser extensions
...browserPlatforms,
]
@@ -110,14 +108,6 @@ createCopyTasks('manifest', {
destinations: browserPlatforms.map(platform => `./dist/${platform}`),
})
-// copy mascara
-
-createCopyTasks('html:mascara', {
- source: './mascara/',
- pattern: 'proxy/index.html',
- destinations: [`./dist/mascara/`],
-})
-
function createCopyTasks (label, opts) {
if (!opts.devOnly) {
const copyTaskName = `copy:${label}`
@@ -298,8 +288,6 @@ const buildJsFiles = [
createTasksForBuildJsUIDeps({ dependenciesToBundle: uiDependenciesToBundle, filename: 'libs' })
createTasksForBuildJsExtension({ buildJsFiles, taskPrefix: 'dev:extension:js', devMode: true })
createTasksForBuildJsExtension({ buildJsFiles, taskPrefix: 'build:extension:js' })
-createTasksForBuildJsMascara({ taskPrefix: 'build:mascara:js' })
-createTasksForBuildJsMascara({ taskPrefix: 'dev:mascara:js', devMode: true })
function createTasksForBuildJsUIDeps ({ dependenciesToBundle, filename }) {
const destinations = browserPlatforms.map(platform => `./dist/${platform}`)
@@ -340,22 +328,6 @@ function createTasksForBuildJsExtension ({ buildJsFiles, taskPrefix, devMode, bu
createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1, buildPhase2 })
}
-function createTasksForBuildJsMascara ({ taskPrefix, devMode, bundleTaskOpts = {} }) {
- // inpage must be built before all other scripts:
- const rootDir = './mascara/src/'
- const buildPhase1 = ['ui', 'proxy', 'background', 'metamascara']
- const destinations = ['./dist/mascara']
- bundleTaskOpts = Object.assign({
- buildSourceMaps: true,
- sourceMapDir: './',
- minifyBuild: !devMode,
- buildWithFullPaths: devMode,
- watch: devMode,
- devMode,
- }, bundleTaskOpts)
- createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1 })
-}
-
function createTasksForBuildJs ({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1 = [], buildPhase2 = [] }) {
// bundle task for each file
const jsFiles = [].concat(buildPhase1, buildPhase2)
@@ -405,7 +377,6 @@ gulp.task('dev',
'dev:scss',
gulp.parallel(
'dev:extension:js',
- 'dev:mascara:js',
'dev:copy',
'dev:reload'
)
@@ -424,18 +395,6 @@ gulp.task('dev:extension',
)
)
-gulp.task('dev:mascara',
- gulp.series(
- 'clean',
- 'dev:scss',
- gulp.parallel(
- 'dev:mascara:js',
- 'dev:copy',
- 'dev:reload'
- )
- )
-)
-
gulp.task('build',
gulp.series(
'clean',
@@ -443,7 +402,6 @@ gulp.task('build',
gulpParallel(
'build:extension:js:uideps',
'build:extension:js',
- 'build:mascara:js',
'copy'
)
)
@@ -460,17 +418,6 @@ gulp.task('build:extension',
)
)
-gulp.task('build:mascara',
- gulp.series(
- 'clean',
- 'build:scss',
- gulp.parallel(
- 'build:mascara:js',
- 'copy'
- )
- )
-)
-
gulp.task('dist',
gulp.series(
'build',