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

chore: dynamic-os-script #350

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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