mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 11:17:50 +01:00
12 lines
390 B
Plaintext
Executable File
12 lines
390 B
Plaintext
Executable File
cd ../mixpanel-js
|
|
npm run build-dist
|
|
cd ../posthog
|
|
|
|
cp ../mixpanel-js/build/mixpanel.min.js frontend/dist/tr.js
|
|
sed -i -e 's/mixpanel/posthog/g' frontend/dist/tr.js
|
|
sed -i -e 's/Mixpanel/Posthog/g' frontend/dist/tr.js
|
|
sed -i -e 's/mp_/ph_/g' frontend/dist/tr.js
|
|
sed -i -e 's/track\//e\//g' frontend/dist/tr.js
|
|
sed -i -e 's/api-js\./t\./g' frontend/dist/tr.js
|
|
|
|
git add frontend/dist/tr.js -f |