mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] bundling: Improve owl bundling process and output (#751)
The bundle pipeline can use a bit of a improvement: Most of the process is moved from npm scripts to rollup. Add package keys to smooth out the use of bundlers of the end users. (Rollup by example check amongst others the main, module and browser key to import the right version of a lib when needed). Refactor rollup logic to make it more modular. Add bundled module formats. Add comments to tsconfig to see more clearly what's possible. Add reference tag to help @types discovery in test files. Co-authored-by: Simon Genin (ges) <ges@odoo.com>
This commit is contained in:
+2
-2
@@ -14,9 +14,9 @@ URL = 'http://{0}:{1}/tools'.format(HOST, PORT)
|
||||
# With this, we can simply copy the playground folder as is in the gh-page when
|
||||
# we want to update the playground.
|
||||
class OWLHandler(SimpleHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
def do_GET(self):
|
||||
if self.path == '/tools/owl.js':
|
||||
self.path = '/dist/owl.js'
|
||||
self.path = '/dist/owl.iife.js'
|
||||
return SimpleHTTPRequestHandler.do_GET(self)
|
||||
|
||||
def end_headers(self):
|
||||
|
||||
Reference in New Issue
Block a user