Skip to content

Commit

Permalink
Mojito test lifecycle events & metadata log (V1) (#114)
Browse files Browse the repository at this point in the history
* Bump minimist from 1.2.5 to 1.2.6

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update nodejs.yml

* Update dep integrities

* Bump packages

* Update package-lock.json

* Update integrity of glob-parent

* Bump the Node packages & resolve any security updates

Bump the GitHub unit test suite to run against later Node.JS versions

* Update integrity of glob-parent package

* Update integrity of glob-parent package

* Update integrity of decode-uri-component package

* Downgrade decode-uri-component to 0.3.0

* Update integrity of decode-uri-component

* Mojito library feature requests & updates

* Mojito library feature requests & updates

Update integrity of decode-uri-component

Downgrade decode-uri-component to 0.3.0

Update integrity of decode-uri-component package

Update integrity of glob-parent package

Update integrity of glob-parent package

Bump the Node packages & resolve any security updates

Bump the GitHub unit test suite to run against later Node.JS versions

* Remove unused files

* Remove the debug code

* add defensive check to prevent Mojito gets loading multi times

* Wrap the defensive check into a function

* Add unit test for Prevent Mojito gets loading twice

* Minor updates

1. rename insertPreventDuplicateLoadingCheck to insertDuplicateContainerCheck
2. add an example of config.allowMultiInstance setting to config.js and config.example.js

* Fix typo

* Replace gulp with modern tools or npm scripts

* Bump library version to 2.5.0

* Mojito test lifecycle events & metadata log (V1)

* Remove lib/shared-code.js

* Remove the snowplow appId check

* Update config.example.js

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
allmywant and dependabot[bot] authored Apr 10, 2024
1 parent 0a32c0f commit 46be0a8
Show file tree
Hide file tree
Showing 10 changed files with 510 additions and 30 deletions.
14 changes: 13 additions & 1 deletion config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@ module.exports = {
// S3 Region
s3Region: 'ap-southeast-2',
// allow Mojito load more than one times
allowMultiInstance: false
allowMultiInstance: false,
// Lifecycle Events conf
lifecycleEvents: {
ci: {
branch: 'your-production-branch'
},
analytics: {
snowplow: {
appId: 'your-app-id',
collectorUrl: 'your.collector.com'
}
}
}
};
236 changes: 232 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mojito-js-delivery",
"version": "2.5.0",
"version": "2.6.0",
"description": "Utilities to build, launch and measure split tests. Part of the Mojito framework.",
"scripts": {
"build": "node scripts/command.js --command build",
Expand All @@ -9,18 +9,20 @@
"deploy": "node scripts/command.js --command deploy",
"new": "node scripts/command.js --command new",
"set": "node scripts/command.js --command set",
"watch": "nodemon --on-change-only -e js,css,yml --watch ./lib --exec npm run deploy"
"watch": "nodemon --on-change-only -e js,css,yml --watch ./lib --exec npm run deploy",
"getChangedFiles": "node scripts/cli-get-changed-files.js"
},
"devDependencies": {
"chrome-launcher": "^0.15.0",
"chrome-launcher": "^0.15.2",
"clean-css": "^5.1.2",
"mocha": "^10.2.0",
"puppeteer-core": "^18.0.5",
"should": "^13.2.3",
"js-yaml": "^4.1.0",
"terser": "^5.26.0",
"@aws-sdk/client-s3": "^3.478.0",
"cli-table": "^0.3.11"
"cli-table": "^0.3.11",
"@snowplow/node-tracker": "^3.22.1"
},
"dependencies": {}
}
Loading

0 comments on commit 46be0a8

Please sign in to comment.