Skip to content

Commit

Permalink
chore: dynamic-os-script (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshdhande authored Nov 7, 2023
1 parent 7bde97d commit 2be5b23
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"seed": "ts-node --transpile-only ./packages/backend/prisma/seed.ts"
},
"packageManager": "[email protected]"
}
}
5 changes: 4 additions & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Client side javascript sdk",
"scripts": {
"dev": "concurrently --kill-others \"yarn run watch:ts\" \"yarn workspace @revertdotdev/revert-react dev\"",
"watch:ts": "nodemon -w src/index.ts --exec \"yarn run build && cp dist/revert.js ../react/src/lib/build/revert-dev.js && cp dist/revert.js ../vue/src/lib/build/revert-dev.js\"",
"watch:ts": "run-script-os",
"watch:ts:default": "nodemon -w src/index.ts --exec \"yarn run build && cp dist/revert.js ../react/src/lib/build/revert-dev.js && cp dist/revert.js ../vue/src/lib/build/revert-dev.js\"",
"watch:ts:win32": "nodemon -w src/index.ts --exec \"yarn run build && xcopy /s /y dist\\revert.js ..\\react\\src\\lib\\build\\revert-dev.js && echo F | xcopy /s /y dist\\revert.js ..\\vue\\src\\lib\\build\\revert-dev.js\"",
"test": "npm test",
"build": "npm run prebuild && vite build",
"prebuild": "tsc && babel src -d lib && browserify lib/index.js -o lib/bundle.js",
Expand All @@ -24,6 +26,7 @@
"dotenv": "^16.3.1",
"javascript-obfuscator": "^2.10.3",
"nodemon": "^2.0.22",
"run-script-os": "^1.1.6",
"typescript": "4.6.3",
"vite": "^4.4.9"
}
Expand Down
36 changes: 18 additions & 18 deletions packages/vue/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<template>
<div class="container">
<RevertConnect :config="config" />
</div>
<div class="container">
<RevertConnect :config="config" />
</div>
</template>

<script>
import RevertConnect from './components/RevertConnect.vue';
export default {
name: 'App',
components: {
RevertConnect,
},
data() {
return {
config: {
revertToken: 'pk_test_Y2xlcmsuc3Ryb25nLmRlZXItNTYubGNsLmRldiQ',
tenantId: 'testTenantId',
},
};
},
name: 'App',
components: {
RevertConnect,
},
data() {
return {
config: {
revertToken: 'localPublicToken',
tenantId: 'testTenantId',
},
};
},
};
</script>

<style scoped>
.container {
margin: 2rem;
display: flex;
justify-content: center;
margin: 2rem;
display: flex;
justify-content: center;
}
</style>
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5639,6 +5639,7 @@ __metadata:
dotenv: ^16.3.1
javascript-obfuscator: ^2.10.3
nodemon: ^2.0.22
run-script-os: ^1.1.6
typescript: 4.6.3
vite: ^4.4.9
languageName: unknown
Expand Down Expand Up @@ -26056,6 +26057,16 @@ __metadata:
languageName: node
linkType: hard

"run-script-os@npm:^1.1.6":
version: 1.1.6
resolution: "run-script-os@npm:1.1.6"
bin:
run-os: index.js
run-script-os: index.js
checksum: 395c9576c1645867897901bb7f16406a7da06de8962b23e9879c91790248f6b3fb0b2a9dff6821cd77f3a9fb284e956118e39a57aa40280f71b12119555dad84
languageName: node
linkType: hard

"rxjs@npm:^7.8.1":
version: 7.8.1
resolution: "rxjs@npm:7.8.1"
Expand Down

1 comment on commit 2be5b23

@vercel
Copy link

@vercel vercel bot commented on 2be5b23 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

revert-client – ./

revert-client-revertdev.vercel.app
revert-client-git-main-revertdev.vercel.app
app.revert.dev

Please sign in to comment.