Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryB432 committed Feb 5, 2024
1 parent a094490 commit 7bc6f45
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ function makeInfoDiv(color = 'black'): HTMLDivElement {
export {};
"
`;
exports[`extension should work generally 3`] = `
"# Sut0
## Working with your extension
### To install on Chrome
Open chrome://extensions/ and make sure \`Developer mode\` is enabled in the top right corner.
Then click the \`Load unpacked\` button and navigate to the \`dist/apps/sut0\` folder.
Once installed, click the extension's icon in the browser's top right toolbar to see popup.html.
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

## Working with your extension

TODO add resource like icon generation, store portal, tips on workflow
### To install on Chrome

Open chrome://extensions/ and make sure `Developer mode` is enabled in the top right corner.
Then click the `Load unpacked` button and navigate to the `dist/<%= appProjectRoot %>` folder.
Once installed, click the extension's icon in the browser's top right toolbar to see popup.html.
4 changes: 4 additions & 0 deletions packages/browser/src/generators/extension/generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ describe('extension', () => {
}
);

expect(
tree.read(`${directory}/README.md`, 'utf-8')
).toMatchSnapshot();

const rpconf = readProjectConfiguration(tree, name);
expect(rpconf.targets!['build'].executor).toEqual('@nx/webpack:webpack');
expect(rpconf.targets!['zip']).toEqual({
Expand Down

0 comments on commit 7bc6f45

Please sign in to comment.