Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 31a2a25

Browse files
Release (1.16.2) (#1302)
* fix bug: frontend doesnt clear error screen when app detected (#1274) * FireFox compatibility using WebExtensions format. (#1268) * modify manifest for compatibility * add web extensions packing * remove augury.xpi * fix popup size in firefox * browser-specific builds * browser-specific builds * manifest.json merging & npm script naming scheme * uncomment sentry_key check * add uglify * add canary to builds * add canary to builds * version up * add yihua fix * linter * version up * Updating docs and text to reflect Firefox support (#1278) * small patch for PrimeNG * linter * version up * fix dependencies thing yet again * version up * include canary build in ISSUE_TEMPLATE.md * Update README.md with canary * remove comma * version up for release (manifest) * version up for release (package) * Update dev branch to match master. (#1292) * Release (1.16.0) (#1284) * fix bug: frontend doesnt clear error screen when app detected (#1274) * FireFox compatibility using WebExtensions format. (#1268) * modify manifest for compatibility * add web extensions packing * remove augury.xpi * fix popup size in firefox * browser-specific builds * browser-specific builds * manifest.json merging & npm script naming scheme * uncomment sentry_key check * add uglify * add canary to builds * add canary to builds * version up * add yihua fix * linter * version up * Updating docs and text to reflect Firefox support (#1278) * small patch for PrimeNG * linter * version up * fix dependencies thing yet again * version up * include canary build in ISSUE_TEMPLATE.md * Update README.md with canary * remove comma * version up for release (manifest) * version up for release (package) * remove update_url from manifest.json for chrome * Update CHANGELOG (1.16.0) * Release (1.16.0) - Tag Version * Fix firefox xml viewer (#1290) * Release (1.16.0) (#1284) * fix bug: frontend doesnt clear error screen when app detected (#1274) * FireFox compatibility using WebExtensions format. (#1268) * modify manifest for compatibility * add web extensions packing * remove augury.xpi * fix popup size in firefox * browser-specific builds * browser-specific builds * manifest.json merging & npm script naming scheme * uncomment sentry_key check * add uglify * add canary to builds * add canary to builds * version up * add yihua fix * linter * version up * Updating docs and text to reflect Firefox support (#1278) * small patch for PrimeNG * linter * version up * fix dependencies thing yet again * version up * include canary build in ISSUE_TEMPLATE.md * Update README.md with canary * remove comma * version up for release (manifest) * version up for release (package) * remove update_url from manifest.json for chrome * Update CHANGELOG (1.16.0) * tag version * #1289: set script.textContent only if the document is HTML (Avoids breaking Firefox XML formatter) * Upgrading to webpack 4 (#1285) * Angular AOT Build (#1295) * Upgrading to webpack 4 * Adding aot compilation support * Removing uncessary imports in aot build * version up for merge-jsons plugin. prev versions crash with Webpack4 * Fixing test and build * local fonts (#1297) * Build conditionals (#1296) * Release (1.16.0) (#1284) * fix bug: frontend doesnt clear error screen when app detected (#1274) * FireFox compatibility using WebExtensions format. (#1268) * modify manifest for compatibility * add web extensions packing * remove augury.xpi * fix popup size in firefox * browser-specific builds * browser-specific builds * manifest.json merging & npm script naming scheme * uncomment sentry_key check * add uglify * add canary to builds * add canary to builds * version up * add yihua fix * linter * version up * Updating docs and text to reflect Firefox support (#1278) * small patch for PrimeNG * linter * version up * fix dependencies thing yet again * version up * include canary build in ISSUE_TEMPLATE.md * Update README.md with canary * remove comma * version up for release (manifest) * version up for release (package) * remove update_url from manifest.json for chrome * Update CHANGELOG (1.16.0) * Release (1.16.0) - Tag Version * add build configs accessible from code * explanatory note on types * merge in all build configs * correction * clean up env config * linter * touchups * linter * csp update * use destructuring import * json5-parsing * version up * linter * fix function-name.ts (state bug) * ready for release * update package-lock.json
1 parent 2b6024d commit 31a2a25

File tree

63 files changed

+15188
-5331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+15188
-5331
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Change Log
22

3+
## [1.16.2](https://github.com/rangle/tree/1.16.2)
4+
* Fix bug: component states dont show up sometimes.
5+
- ([1254](https://github.com/rangle/augury/issues/1254))
6+
- ([1114](https://github.com/rangle/augury/issues/1114))
7+
- ([1300](https://github.com/rangle/augury/issues/1300))
8+
- ([1301](https://github.com/rangle/augury/issues/1301))
9+
* Angular AOT compilation (for the front end)
10+
* Webpack 4 upgrade
11+
* Local fonts
12+
* Different builds for Firefox / Chrome
13+
* Remove unnecessary uses of eval() and new Function()
14+
* Angular 6 compatibility
15+
316
## [1.16.0](https://github.com/rangle/tree/1.16.0)
417
* Add extendible build configurations for different versions of the augury package (currently for firefox and canary builds).
518
* Fix edge case bugs that crashed augury (commonly affecting PrimeNG users)
Binary file not shown.

assets/fonts/open-sans-v15-latin-ext_latin-regular.svg

+336
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

build.config.js

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/**
2+
* BUILD MODE (prod / dev)
3+
* output: env.PROD_MODE
4+
*/
5+
6+
const isDevelopment = () =>
7+
process.env.NODE_ENV === 'development';
8+
9+
const isProduction = () => !isDevelopment()
10+
11+
const prodModeEntry = isProduction()
12+
13+
// ------
14+
15+
/**
16+
* SENTRY KEY
17+
* defined by `circle.yml`
18+
*/
19+
20+
const getSentryKey = () =>
21+
process.env.SENTRY_KEY;
22+
23+
const sentryKeyEntry = getSentryKey()
24+
25+
// ------
26+
27+
/**
28+
* TARGET BUILD (these configs will turn features on/off, and produce different manifests)
29+
* CROSS-BROWSER COMPATIBILITY (and other builds)
30+
* We use different build configurations depending on browser (or other builds, like canary).
31+
* For example, browsers have different support for properties on manifest.json
32+
* We also inject environment variables into the code, to toggle feature support.
33+
* [see src/build.ts]
34+
*/
35+
36+
// versions we produce
37+
const BUILD = {
38+
FIREFOX: {
39+
GTM_ENABLED: false, // google tag manager
40+
SENTRY_ENABLED: false, // remote error logging service
41+
},
42+
CHROME: {
43+
GTM_ENABLED: true,
44+
SENTRY_ENABLED: true,
45+
},
46+
CANARY: {
47+
GTM_ENABLED: false,
48+
SENTRY_ENABLED: true,
49+
},
50+
}
51+
52+
// grab target build parameter (passed as command arg)
53+
const getBuildRequestRaw = () =>
54+
process.env.BUILD || ''
55+
56+
// target BUILD parameter is case insensitive (default chrome)
57+
const getTargetBuildName = () =>
58+
Object.keys(BUILD)
59+
.find(buildName => buildName == getBuildRequestRaw().toUpperCase())
60+
|| 'CHROME'
61+
62+
const targetEntry = getTargetBuildName()
63+
const buildEntries = BUILD[getTargetBuildName()]
64+
65+
// ------
66+
67+
/**
68+
* ENTRIES (environment values for build)
69+
*/
70+
71+
/**
72+
* This is a map of strings to primitives
73+
* representing the environment variables for the build.
74+
*/
75+
const entries = {
76+
PROD_MODE: prodModeEntry,
77+
TARGET: targetEntry,
78+
SENTRY_KEY: sentryKeyEntry,
79+
...buildEntries,
80+
};
81+
82+
const getEntries = () => entries
83+
84+
// ------
85+
86+
/**
87+
* MANIFEST FILES (these are merged together to generate final `manifest.json`
88+
*/
89+
90+
const getManifestFiles = () =>
91+
[
92+
// base manifest file
93+
'manifest/base.manifest.json',
94+
// each build can extend the base manifest with a file of this form
95+
`manifest/${getTargetBuildName().toLowerCase()}.manifest.json`,
96+
]
97+
98+
// ------
99+
100+
/**
101+
* utils
102+
*/
103+
104+
// general util for stringifying all values in an object.
105+
// this is used to inject env into code via DefinePlugin in webpack.config.js
106+
const stringifyValues = (obj) =>
107+
Object.keys(obj)
108+
.reduce((out, k) =>
109+
Object.assign({}, out, { [k]: JSON.stringify(obj[k]) }), {})
110+
111+
// ------
112+
113+
module.exports = {
114+
entries: getEntries,
115+
manifestFiles: getManifestFiles,
116+
stringifyValues: stringifyValues,
117+
}

crxmake.sh

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ function grab_files_and_zip {
4747
rm -rf $dir
4848
mkdir $dir
4949
cp -R $files $dir/
50-
rm $dir/build/*.map
5150

5251
# zip up the crx dir
5352
cwd=$(pwd -P)

manifest/base.manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Augury",
33
"short_name": "Augury",
4-
"version": "1.16.0",
4+
"version": "1.16.2",
55
"description": "Extends the Developer Tools, adding tools for debugging and profiling Angular applications.",
66
"permissions": [
77
"storage"

manifest/firefox.manifest.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"gecko": {
44
55
}
6-
}
6+
},
7+
"content_security_policy": "script-src 'self'; object-src 'self'"
78
}

0 commit comments

Comments
 (0)