Skip to content

Commit 30cc177

Browse files
authored
Merge pull request #255 from aspiers/dev-build
Document how to build from source
2 parents 30d6621 + 13bc547 commit 30cc177

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ To get started, install the Reactime [extension](https://chrome.google.com/webst
7777

7878
NOTE: The React Developer Tools [extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) is also required for Reactime to run, if you do not already have it installed on your browser.
7979

80-
### <b>Alternative Installation</b>
80+
### Installation
8181

8282
Go to Chrome Extensions (make sure Chrome Extension is in Developer Mode) for manual installation in (https://developer.chrome.com/extensions/faq#faq-dev-01) and click on Load Unpacked. Use `src/extension/build/` to load this extension. Turn on 'Allow access to file URLs' in extension details page if testing locally.
8383

8484
<i>Please refer to Developer Install for a detailed guide:</i>
8585
<a href='/DeveloperREADME.md'>Developer Install</a>
8686

87+
### Building from source
88+
89+
Please see [the developer README](src/README.md) for instructions on building
90+
from source.
91+
8792
## <b>How to Use</b>
8893

8994
After installing the Chrome extension, just open up your project in the browser.

src/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
## Brief
44
Our mission at Reactime is to maintain and iterate constantly, but never at the expense of future developers.<br />We know how hard it is to quickly get up to speed and onboard in a new codebase.<br />So, here are some helpful pointers to help you hit the ground running. 🏃🏾💨
55

6+
## Building from source
7+
8+
1. If you have already installed Reactime from the Chrome Web Store, disable or uninstall it.
9+
2. Run `yarn` to install all dependencies.
10+
3. Run `yarn dev`. This will start a `webpack` process which watches for file changes and whenever it sees some, automatically rebuilds the webpack bundles used by the extension.
11+
4. Go to `chrome://extensions`
12+
5. Ensure Developer mode is enabled
13+
6. Click `Load unpacked`
14+
7. Select the `src/extension/build` directory
15+
16+
Now you should be able to change Reactime code and see the changes instantly reflected in your browser!
17+
618
<b>With release of Node v18.12.1 (LTS) on 11/4/22, the script has been updated to 'npm run dev' | 'npm run build' for backwards compatibility.<br/>
719
For version Node v16.16.0, please use script 'npm run devlegacy' | 'npm run buildlegacy'</b>
820

0 commit comments

Comments
 (0)