Skip to content

Commit

Permalink
DTSHOPSCE-4476: [MUSE] turn off autoloading of pptm.js in JS SDK (#192)
Browse files Browse the repository at this point in the history
* Add flow-typed in repo
* Update build script
* Skip test, this test failed beacuese of issue with SDK Moke
  • Loading branch information
yehor-anisimov authored Jan 7, 2025
1 parent e509e94 commit d61c153
Show file tree
Hide file tree
Showing 21 changed files with 2,984 additions and 26 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ jobs:
with:
useLockFile: false

- name: ▶️ Run flow-typed script
run: npm run flow-typed
- name: ▶️ Run lint
run: npm run lint

- name: ▶️ Run flow type check
run: npm run flow

- name: ▶️ Run test script
run: npm run test
run: npm run jest

- name: ⬆️ Upload jest coverage report
uses: codecov/codecov-action@v2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules
dist
coverage
flow-typed
npm-debug.log
.idea
.vscode
2 changes: 1 addition & 1 deletion __sdk__.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
},
muse: {
entry: './src/index',
automatic: true
automatic: false
},
tracker: {
entry: './src/tracker',
Expand Down
275 changes: 275 additions & 0 deletions flow-typed/npm/@krakenjs/belter_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
// flow-typed signature: f6edd3e4a8d4da40c25372e37d809ef4
// flow-typed version: <<STUB>>/@krakenjs/belter_v^2.0.1/flow_v0.100.0

/**
* This is an autogenerated libdef stub for:
*
* '@krakenjs/belter'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@krakenjs/belter' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@krakenjs/belter/dist/belter' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/belter.min' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/constants' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/css' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/decorators' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/device' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/dom' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/experiment' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/global' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/http' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/index.flow' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/screenHeights' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/storage' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/storage.test' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/test' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/types' {
declare module.exports: any;
}

declare module '@krakenjs/belter/dist/module/util' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/constants' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/css' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/decorators' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/device' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/dom' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/experiment' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/global' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/http' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/index.flow' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/screenHeights' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/storage' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/storage.test' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/test' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/types' {
declare module.exports: any;
}

declare module '@krakenjs/belter/src/util' {
declare module.exports: any;
}

// Filename aliases
declare module '@krakenjs/belter/dist/belter.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/belter'>;
}
declare module '@krakenjs/belter/dist/belter.min.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/belter.min'>;
}
declare module '@krakenjs/belter/dist/module/constants.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/constants'>;
}
declare module '@krakenjs/belter/dist/module/css.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/css'>;
}
declare module '@krakenjs/belter/dist/module/decorators.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/decorators'>;
}
declare module '@krakenjs/belter/dist/module/device.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/device'>;
}
declare module '@krakenjs/belter/dist/module/dom.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/dom'>;
}
declare module '@krakenjs/belter/dist/module/experiment.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/experiment'>;
}
declare module '@krakenjs/belter/dist/module/global.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/global'>;
}
declare module '@krakenjs/belter/dist/module/http.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/http'>;
}
declare module '@krakenjs/belter/dist/module/index.flow.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/index.flow'>;
}
declare module '@krakenjs/belter/dist/module/index' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module'>;
}
declare module '@krakenjs/belter/dist/module/index.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module'>;
}
declare module '@krakenjs/belter/dist/module/screenHeights.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/screenHeights'>;
}
declare module '@krakenjs/belter/dist/module/storage.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/storage'>;
}
declare module '@krakenjs/belter/dist/module/storage.test.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/storage.test'>;
}
declare module '@krakenjs/belter/dist/module/test.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/test'>;
}
declare module '@krakenjs/belter/dist/module/types.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/types'>;
}
declare module '@krakenjs/belter/dist/module/util.js' {
declare module.exports: $Exports<'@krakenjs/belter/dist/module/util'>;
}
declare module '@krakenjs/belter/index' {
declare module.exports: $Exports<'@krakenjs/belter'>;
}
declare module '@krakenjs/belter/index.js' {
declare module.exports: $Exports<'@krakenjs/belter'>;
}
declare module '@krakenjs/belter/src/constants.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/constants'>;
}
declare module '@krakenjs/belter/src/css.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/css'>;
}
declare module '@krakenjs/belter/src/decorators.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/decorators'>;
}
declare module '@krakenjs/belter/src/device.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/device'>;
}
declare module '@krakenjs/belter/src/dom.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/dom'>;
}
declare module '@krakenjs/belter/src/experiment.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/experiment'>;
}
declare module '@krakenjs/belter/src/global.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/global'>;
}
declare module '@krakenjs/belter/src/http.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/http'>;
}
declare module '@krakenjs/belter/src/index.flow.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/index.flow'>;
}
declare module '@krakenjs/belter/src/index' {
declare module.exports: $Exports<'@krakenjs/belter/src'>;
}
declare module '@krakenjs/belter/src/index.js' {
declare module.exports: $Exports<'@krakenjs/belter/src'>;
}
declare module '@krakenjs/belter/src/screenHeights.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/screenHeights'>;
}
declare module '@krakenjs/belter/src/storage.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/storage'>;
}
declare module '@krakenjs/belter/src/storage.test.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/storage.test'>;
}
declare module '@krakenjs/belter/src/test.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/test'>;
}
declare module '@krakenjs/belter/src/types.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/types'>;
}
declare module '@krakenjs/belter/src/util.js' {
declare module.exports: $Exports<'@krakenjs/belter/src/util'>;
}
67 changes: 67 additions & 0 deletions flow-typed/npm/@krakenjs/grumbler-scripts_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// flow-typed signature: 394a3df10a67357687fa8dfd49aca769
// flow-typed version: <<STUB>>/@krakenjs/grumbler-scripts_v^8.0.7/flow_v0.100.0

/**
* This is an autogenerated libdef stub for:
*
* '@krakenjs/grumbler-scripts'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@krakenjs/grumbler-scripts' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@krakenjs/grumbler-scripts/config/karma.conf' {
declare module.exports: any;
}

declare module '@krakenjs/grumbler-scripts/config/webpack.config' {
declare module.exports: any;
}

declare module '@krakenjs/grumbler-scripts/test/component' {
declare module.exports: any;
}

declare module '@krakenjs/grumbler-scripts/test/dependency' {
declare module.exports: any;
}

declare module '@krakenjs/grumbler-scripts/test/module' {
declare module.exports: any;
}

declare module '@krakenjs/grumbler-scripts/webpack.config' {
declare module.exports: any;
}

// Filename aliases
declare module '@krakenjs/grumbler-scripts/config/karma.conf.js' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/karma.conf'>;
}
declare module '@krakenjs/grumbler-scripts/config/webpack.config.js' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/webpack.config'>;
}
declare module '@krakenjs/grumbler-scripts/test/component.jsx' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/component'>;
}
declare module '@krakenjs/grumbler-scripts/test/dependency.js' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/dependency'>;
}
declare module '@krakenjs/grumbler-scripts/test/module.js' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/module'>;
}
declare module '@krakenjs/grumbler-scripts/webpack.config.js' {
declare module.exports: $Exports<'@krakenjs/grumbler-scripts/webpack.config'>;
}
Loading

0 comments on commit d61c153

Please sign in to comment.