-
Notifications
You must be signed in to change notification settings - Fork 3
feat: implement rokt launcher into initForwarder #2
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
Merged
alexs-mparticle
merged 15 commits into
development
from
feat/implement-rokt-mparticle-poc
Mar 7, 2025
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
746db89
feat: implement rokt launcher into initForwarder
crisryantan 897b60a
Merge branch 'development' into feat/implement-rokt-mparticle-poc
crisryantan 6a9b918
feat: update implementation in creating launcher
crisryantan ce891a0
feat: add lint command to fix build
crisryantan c6fda9d
fix: run lint script and fix errors
crisryantan 766531c
fix: resolve conflict on .nvmrc
crisryantan 476222f
feat: add moduleId
crisryantan 7754185
refactor: implement suggested changes
crisryantan 6573575
fix: additional cleanup
crisryantan 4c3dcb9
fix: typo on filename
crisryantan 67ff9ff
fix: update references to match accurately generated filename
crisryantan daad169
fix: typo
crisryantan 71ad7eb
Refactor sandbox mode initialization logic
crisryantan 94261cf
fix: lint fix
crisryantan e93e79b
Update src/initialization.js
crisryantan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Dependabot Auto Merge | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| name: Run tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Git checkout | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Install dependencies, build, then test | ||
| run: | | ||
| npm install | ||
| npm run build | ||
| npm run test | ||
|
|
||
| automerge: | ||
| needs: build-and-test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: fastify/github-action-merge-dependabot@v1 | ||
| if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} | ||
| with: | ||
| github-token: ${{secrets.github_token}} | ||
| merge-method: 'squash' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: Web Kit Build & Test | ||
|
crisryantan marked this conversation as resolved.
Outdated
|
||
|
|
||
| on: pull_request | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| name: Build and Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: NPM install | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20.x | ||
|
|
||
| - name: Run NPM CI | ||
| run: npm ci | ||
|
|
||
| - name: Build Files | ||
| run: npm run build | ||
|
|
||
| - name: Run Core tests | ||
| run: npm run test | ||
|
|
||
| - name: Archive npm failure logs | ||
| uses: actions/upload-artifact@v4 | ||
| if: failure() | ||
| with: | ||
| name: npm-logs | ||
| path: ~/.npm/_logs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ node_modules/ | |
| test/test-bundle.js | ||
| .DS_Store | ||
| test/end-to-end-testapp/build/compilation.js | ||
| dist/ | ||
| dist/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| v20.13.1 | ||
| <<<<<<< HEAD | ||
| v20.13.1 | ||
| ======= | ||
| v20.13.1 | ||
| >>>>>>> development | ||
|
crisryantan marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| language: node_js | ||
|
crisryantan marked this conversation as resolved.
Outdated
|
||
| node_js: | ||
| - "7" | ||
| dist: trusty | ||
| sudo: required | ||
| addons: | ||
| chrome: stable | ||
| firefox: latest | ||
| cache: | ||
| directories: | ||
| - node_modules | ||
| script: | ||
| - npm install | ||
| - npm run testKarma -- --single-run=true --browsers=ChromeHeadless,FirefoxHeadless | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,26 @@ | ||
| # mparticle-javascript-integration-rokt | ||
| # mParticle JS Example Web Integration | ||
|
crisryantan marked this conversation as resolved.
Outdated
|
||
|
|
||
| A web integration (or a kit) is an extension to the core [mParticle Web SDK](https://github.com/mParticle/mparticle-web-sdk). A kit works as a bridge between the mParticle SDK and a partner SDK. It abstracts the implementation complexity, simplifying the implementation for developers. | ||
|
|
||
| A kit takes care of initializing and forwarding information depending on what you've configured in [mParticle's dashboard](https://app.mparticle.com). | ||
|
|
||
| ## Create Your Own Integration | ||
|
|
||
| Detailed instructions on how to implement your own integration with the mParticle Web SDK can be found [here](https://docs.mparticle.com/developers/partners/kit-integrations/javascript-kit), but you can view a quick start guide below. | ||
|
|
||
| ## Quick Start Guide | ||
|
|
||
| 1. Fork this repo and `cd` into it locally on your computer. | ||
| 2. Run `npm install` to install dependencies. | ||
| 3. Run `KIT=YOURKITNAME npm run watch` to watch files in the `src/` folder, and automatically build your kit to `dist/YOURKITNAME-Kit.iife.js`. Your kit will continuously build as your save your edits. | ||
| 4. Following examples such as [Optimizely](https://github.com/mparticle-integrations/mparticle-javascript-integration-optimizely), edit files in `src/`. | ||
| 5. As you map mParticle's methods to your own in `src/`, stub your SDK methods and create tests in `test/tests.js`. | ||
| 6. Submit a pull request to this repo. A developer from mParticle will review it and once complete, we will help provide you with a repo for your integration. | ||
|
|
||
| ## Support | ||
|
|
||
| Questions? Give us a shout at <support@mparticle.com> | ||
|
|
||
| ## License | ||
|
|
||
| This mParticle Web Kit is available under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). See the LICENSE file for more info. | ||
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.