mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Move more stuff into src/ for target-chromium.
This commit is contained in:
parent
7a46271487
commit
9978279d00
@ -5,7 +5,7 @@ module.exports =
|
||||
'index.js': 'index.coffee'
|
||||
options:
|
||||
transform: ['coffeeify']
|
||||
exclude: ['bluebird', 'omega-pac']
|
||||
exclude: ['bluebird', 'omega-pac', 'omega-target']
|
||||
browserifyOptions:
|
||||
extensions: '.coffee'
|
||||
builtins: []
|
||||
@ -30,7 +30,7 @@ module.exports =
|
||||
omega_webext_proxy_script:
|
||||
files:
|
||||
'build/js/omega_webext_proxy_script.min.js':
|
||||
'omega_webext_proxy_script.js'
|
||||
'src/js/omega_webext_proxy_script.js'
|
||||
options:
|
||||
alias:
|
||||
'omega-pac': 'omega-pac/omega_pac.min.js'
|
||||
|
@ -1,13 +1,7 @@
|
||||
module.exports =
|
||||
target_web:
|
||||
files:
|
||||
'build/js/omega_target_web.js': 'omega_target_web.coffee'
|
||||
background:
|
||||
files:
|
||||
'build/js/background.js': 'background.coffee'
|
||||
background_preload:
|
||||
files:
|
||||
'build/js/background_preload.js': 'background_preload.coffee'
|
||||
omega_debug:
|
||||
files:
|
||||
'build/js/omega_debug.js': 'omega_debug.coffee'
|
||||
coffee:
|
||||
expand: true
|
||||
cwd: 'src/coffee'
|
||||
src: ['**/*.coffee']
|
||||
dest: 'build/js/'
|
||||
ext: '.js'
|
||||
|
@ -12,6 +12,8 @@ module.exports =
|
||||
src: 'omega_target_chromium_extension.min.js'
|
||||
dest: 'build/js/'
|
||||
target_popup:
|
||||
expand: true
|
||||
cwd: 'src/js'
|
||||
src: 'omega_target_popup.js'
|
||||
dest: 'build/js/'
|
||||
overlay:
|
||||
|
@ -18,14 +18,11 @@ module.exports =
|
||||
files: ['overlay/**/*']
|
||||
tasks: ['copy:overlay']
|
||||
copy_target_popup:
|
||||
files: ['omega_target_popup.js']
|
||||
files: ['src/js/omega_target_popup.js']
|
||||
tasks: ['copy:target_popup']
|
||||
src:
|
||||
files: ['src/**/*.coffee']
|
||||
tasks: ['coffeelint:src', 'browserify', 'copy:target_self']
|
||||
browserify_omega_webext_proxy_script:
|
||||
files: ['omega_webext_proxy_script.js']
|
||||
tasks: ['browserify:omega_webext_proxy_script']
|
||||
coffee:
|
||||
files: ['src/**/*.coffee', '*.coffee']
|
||||
tasks: ['coffeelint:src', 'coffee', 'copy:target_self']
|
||||
files: ['src/**/*.coffee']
|
||||
tasks: ['coffeelint:src', 'browserify', 'coffee', 'copy:target_self']
|
||||
browserify_omega_webext_proxy_script:
|
||||
files: ['src/js/omega_webext_proxy_script.js']
|
||||
tasks: ['browserify:omega_webext_proxy_script']
|
||||
|
@ -1,12 +1 @@
|
||||
module.exports =
|
||||
Storage: require('./src/storage')
|
||||
Options: require('./src/options')
|
||||
ChromeTabs: require('./src/tabs')
|
||||
SwitchySharp: require('./src/switchysharp')
|
||||
ExternalApi: require('./src/external_api.coffee')
|
||||
WebRequestMonitor: require('./src/web_request_monitor')
|
||||
Inspect: require('./src/inspect')
|
||||
Url: require('url')
|
||||
|
||||
for name, value of require('omega-target')
|
||||
module.exports[name] ?= value
|
||||
module.exports = require('./src/module')
|
||||
|
12
omega-target-chromium-extension/src/module/index.coffee
Normal file
12
omega-target-chromium-extension/src/module/index.coffee
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports =
|
||||
Storage: require('./storage')
|
||||
Options: require('./options')
|
||||
ChromeTabs: require('./tabs')
|
||||
SwitchySharp: require('./switchysharp')
|
||||
ExternalApi: require('./external_api')
|
||||
WebRequestMonitor: require('./web_request_monitor')
|
||||
Inspect: require('./inspect')
|
||||
Url: require('url')
|
||||
|
||||
for name, value of require('omega-target')
|
||||
module.exports[name] ?= value
|
Loading…
Reference in New Issue
Block a user