Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics #228

Merged
merged 18 commits into from
Oct 28, 2024
5 changes: 5 additions & 0 deletions .changeset/few-scissors-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'penpot-exporter': minor
---

Added basic analytics
Cenadros marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
dist
ui-src/.env

# Sentry Config File
.env.sentry-build-plugin
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="https://penpot.app/"><b>Penpot Website</b></a> •
<a href="https://community.penpot.app/t/figma-to-penpot-export-plugin/5554"><b>Export Figma to Penpot (Penpot community)</b></a> •
<a href="https://community.penpot.app/"><b>Penpot Community</b></a> •
<a href="https://www.figma.com/community/plugin/1219369440655168734/penpot-exporter"><b>Plugin in Figma community</b></a>
<a href="https://www.figma.com/community/plugin/1219369440655168734/penpot-exporter"><b>Plugin in Figma community</b></a>
</p>

<p align="center">
Expand Down Expand Up @@ -96,6 +96,9 @@ then selecting "Download ZIP". Extract the ZIP file to a location on your comput
3. Once you are in the correct folder, you can run the `npm install` command to install the
dependencies, and then the `npm run build` command to build the plugin.

#### Building for production:
Follow the same steps as above, but instead of running `npm run build`, run `npm run build:prod`.

### Add to Figma

`Figma menu` > `Plugins` > `Development` > `Import plugin from manifest…` To add the plugin to
Expand Down
9 changes: 8 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"main": "dist/code.js",
"ui": "dist/index.html",
"editorType": ["figma"],
"networkAccess": { "allowedDomains": ["none"] },
"networkAccess": {
"allowedDomains": [
"https://o4508138256007168.ingest.de.sentry.io",
"https://api-js.mixpanel.com"
],
"reasoning": "We use Sentry and Mixpanel to monitor the performance of our application and get errors information."
Cenadros marked this conversation as resolved.
Show resolved Hide resolved
},
"permissions": ["currentuser"],
"documentAccess": "dynamic-page"
}
Loading
Loading