1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

tests - mascara - move temp build files into dist/mascara

This commit is contained in:
kumavis 2017-09-13 16:52:38 -07:00
parent 56db3999ad
commit cbff5fd450
2 changed files with 10 additions and 10 deletions

View File

@ -28,10 +28,10 @@
"deleteNotice": "node notices/notice-delete.js", "deleteNotice": "node notices/notice-delete.js",
"mascara": "node ./mascara/example/server", "mascara": "node ./mascara/example/server",
"testMascara": "npm run buildMascara && karma start test/mascara.conf.js", "testMascara": "npm run buildMascara && karma start test/mascara.conf.js",
"buildMascara": "npm run buildMascaraUi && npm run buildMascaraBackground && npm run buildMascaraTests", "buildMascara": "mkdir -p dist/mascara && npm run buildMascaraUi && npm run buildMascaraBackground && npm run buildMascaraTests",
"buildMascaraUi": "browserify mascara/test/test-ui.js -o mascara/test/ui-bundle.js", "buildMascaraUi": "browserify mascara/test/test-ui.js -o dist/mascara/ui.js",
"buildMascaraBackground": "browserify mascara/src/background.js -o mascara/test/background.js", "buildMascaraBackground": "browserify mascara/src/background.js -o dist/mascara/background.js",
"buildMascaraTests": "browserify test/integration/lib/first-time.js -o mascara/test/test-bundle.js" "buildMascaraTests": "browserify test/integration/lib/first-time.js -o dist/mascara/tests.js"
}, },
"browserify": { "browserify": {
"transform": [ "transform": [

View File

@ -2,13 +2,13 @@ const getBaseConfig = require('./base.conf.js')
module.exports = function(config) { module.exports = function(config) {
const settings = getBaseConfig(config) const settings = getBaseConfig(config)
settings.files.push('mascara/test/ui-bundle.js')
settings.files.push('mascara/test/test-bundle.js')
// settings.files.push('test/integration/bundle.js')
settings.files.push({ pattern: 'mascara/test/background.js', watched: false, included: false, served: true }),
// /background.js
settings.proxies['/background.js'] = '/base/mascara/test/background.js' // ui and tests
settings.files.push('dist/mascara/ui.js')
settings.files.push('dist/mascara/tests.js')
// service worker background
settings.files.push({ pattern: 'dist/mascara/background.js', watched: false, included: false, served: true }),
settings.proxies['/background.js'] = '/base/dist/mascara/background.js'
config.set(settings) config.set(settings)
} }