Skip to content
Open
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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ snippet.min.js
snippet.rokt.min.js
test/lib
mparticle.js
test/
test/
kits/adobe/AdobeSDKs/
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ module.exports = {
// The built mParticle.js file needs to exist for integration tests
setupFiles: ['./test/jest/setup.ts', './dist/mparticle.js'],
setupFilesAfterEnv: ['jest-expect-message'],
// Exclude Adobe kit test files — Adobe uses Jest but via its own kit-level
// jest.config.js; running them from the root would be missing kit setup.
// Other kits use Karma and name their tests `tests.js` (plural), which
// doesn't match Jest's default testMatch, so they don't need exclusion.
testPathIgnorePatterns: ['<rootDir>/kits/adobe'],
transform: {
'^.+\\.(js)$': 'ts-jest',
},
Expand Down
53 changes: 53 additions & 0 deletions kits/adobe/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"root": true,
"env": {
"node": true
Comment on lines 1 to 4
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexs-mparticle @rmi22186 @jaissica12 @khushi1033 Will have a follow up PR in cleanup to align all the formatting configs and resolve the differences to align with the root config.

},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"globals": {
"window": true,
"document": true,
"Visitor": true,
"AppMeasurement": true,
"ADB": true
},
"extends": "eslint:recommended",
"rules": {
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-unneeded-ternary": [
"error",
{
"defaultAssignment": false
}
],
"comma-dangle": ["error", "never"],
"curly": ["error", "multi-line"],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"quote-props": [
"error",
"as-needed",
{
"keywords": false,
"unnecessary": true,
"numbers": false
}
],
"no-multi-spaces": "error",
"no-prototype-builtins": 0,
"no-implicit-globals": "error"
}
}
26 changes: 26 additions & 0 deletions kits/adobe/.github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Pull Requests

on:
pull_request

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
1 change: 1 addition & 0 deletions kits/adobe/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
92 changes: 92 additions & 0 deletions kits/adobe/AdobeSDKs/AppMeasurement.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions kits/adobe/AdobeSDKs/VisitorAPI.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions kits/adobe/HeartbeatKit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
test/test-bundle.js
test/end-to-end-testapp/compilation.js
14 changes: 14 additions & 0 deletions kits/adobe/HeartbeatKit/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
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
19 changes: 19 additions & 0 deletions kits/adobe/HeartbeatKit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Adobe Heartbeat Mapping

This Adobe Heartbeat mapping is imported by both the Adobe Client and Adobe Server integrations located in the `packages/` directory. It is not a separate integration, but instead contains code to map an mParticle Media event that is sent to the Client or Server integrations.

## License

Copyright 2019 mParticle, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading
Loading