Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Production

Konrad Dzwinel edited this page Nov 23, 2015 · 3 revisions

Extension runs out of the box using on the fly transpilation. For better performance, code can be transpiled offline:

Copy all static files

mkdir bin/ bin/lib/
cp -r css bin/css
cp -r device-art bin/device-art
cp -r fonts bin/fonts
cp -r icons bin/icons
cp -r welcome-videos bin/welcome-videos
cp lib/browser-sync.js bin/lib/browser-sync.js
cp manifest.json bin/manifest.json
cp *.html bin/

Transpile code and bundle imports

jspm bundle-sfx lib/background bin/lib/background.js --skip-source-maps -y
jspm bundle-sfx lib/devtools bin/lib/devtools.js --skip-source-maps -y
jspm bundle-sfx lib/edl bin/lib/edl.js --skip-source-maps -y

Fix <script>'s in the HTML files

For all HTML files

<script src="jspm_packages/traceur.js"></script>
<script src="jspm_packages/system.js"></script>

have to be removed and

<script src="lib/loaders/load-SOME_NAME.js"></script>

has to be changed to

<script src="lib/SOME_NAME.js"></script>

Enjoy

Load extension from the bin folder.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.