0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/bin/copy_tr
2020-01-24 20:08:10 -08:00

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