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

Commit

Permalink
Release (1.16.2) (#1302)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
santiago-elustondo authored May 16, 2018
1 parent 2b6024d commit 31a2a25
Show file tree
Hide file tree
Showing 63 changed files with 15,188 additions and 5,331 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## [1.16.2](https://github.com/rangle/tree/1.16.2)
* Fix bug: component states dont show up sometimes.
- ([1254](https://github.com/rangle/augury/issues/1254))
- ([1114](https://github.com/rangle/augury/issues/1114))
- ([1300](https://github.com/rangle/augury/issues/1300))
- ([1301](https://github.com/rangle/augury/issues/1301))
* Angular AOT compilation (for the front end)
* Webpack 4 upgrade
* Local fonts
* Different builds for Firefox / Chrome
* Remove unnecessary uses of eval() and new Function()
* Angular 6 compatibility

## [1.16.0](https://github.com/rangle/tree/1.16.0)
* Add extendible build configurations for different versions of the augury package (currently for firefox and canary builds).
* Fix edge case bugs that crashed augury (commonly affecting PrimeNG users)
Expand Down
Binary file not shown.
336 changes: 336 additions & 0 deletions assets/fonts/open-sans-v15-latin-ext_latin-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
117 changes: 117 additions & 0 deletions build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/**
* BUILD MODE (prod / dev)
* output: env.PROD_MODE
*/

const isDevelopment = () =>
process.env.NODE_ENV === 'development';

const isProduction = () => !isDevelopment()

const prodModeEntry = isProduction()

// ------

/**
* SENTRY KEY
* defined by `circle.yml`
*/

const getSentryKey = () =>
process.env.SENTRY_KEY;

const sentryKeyEntry = getSentryKey()

// ------

/**
* TARGET BUILD (these configs will turn features on/off, and produce different manifests)
* CROSS-BROWSER COMPATIBILITY (and other builds)
* We use different build configurations depending on browser (or other builds, like canary).
* For example, browsers have different support for properties on manifest.json
* We also inject environment variables into the code, to toggle feature support.
* [see src/build.ts]
*/

// versions we produce
const BUILD = {
FIREFOX: {
GTM_ENABLED: false, // google tag manager
SENTRY_ENABLED: false, // remote error logging service
},
CHROME: {
GTM_ENABLED: true,
SENTRY_ENABLED: true,
},
CANARY: {
GTM_ENABLED: false,
SENTRY_ENABLED: true,
},
}

// grab target build parameter (passed as command arg)
const getBuildRequestRaw = () =>
process.env.BUILD || ''

// target BUILD parameter is case insensitive (default chrome)
const getTargetBuildName = () =>
Object.keys(BUILD)
.find(buildName => buildName == getBuildRequestRaw().toUpperCase())
|| 'CHROME'

const targetEntry = getTargetBuildName()
const buildEntries = BUILD[getTargetBuildName()]

// ------

/**
* ENTRIES (environment values for build)
*/

/**
* This is a map of strings to primitives
* representing the environment variables for the build.
*/
const entries = {
PROD_MODE: prodModeEntry,
TARGET: targetEntry,
SENTRY_KEY: sentryKeyEntry,
...buildEntries,
};

const getEntries = () => entries

// ------

/**
* MANIFEST FILES (these are merged together to generate final `manifest.json`
*/

const getManifestFiles = () =>
[
// base manifest file
'manifest/base.manifest.json',
// each build can extend the base manifest with a file of this form
`manifest/${getTargetBuildName().toLowerCase()}.manifest.json`,
]

// ------

/**
* utils
*/

// general util for stringifying all values in an object.
// this is used to inject env into code via DefinePlugin in webpack.config.js
const stringifyValues = (obj) =>
Object.keys(obj)
.reduce((out, k) =>
Object.assign({}, out, { [k]: JSON.stringify(obj[k]) }), {})

// ------

module.exports = {
entries: getEntries,
manifestFiles: getManifestFiles,
stringifyValues: stringifyValues,
}
1 change: 0 additions & 1 deletion crxmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function grab_files_and_zip {
rm -rf $dir
mkdir $dir
cp -R $files $dir/
rm $dir/build/*.map

# zip up the crx dir
cwd=$(pwd -P)
Expand Down
2 changes: 1 addition & 1 deletion manifest/base.manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Augury",
"short_name": "Augury",
"version": "1.16.0",
"version": "1.16.2",
"description": "Extends the Developer Tools, adding tools for debugging and profiling Angular applications.",
"permissions": [
"storage"
Expand Down
3 changes: 2 additions & 1 deletion manifest/firefox.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"gecko": {
"id": "augury@rangle.io"
}
}
},
"content_security_policy": "script-src 'self'; object-src 'self'"
}
Loading

0 comments on commit 31a2a25

Please sign in to comment.