Skip to content

Commit

Permalink
Replace gulp with modern tools or npm scripts (#112)
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

---------

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 Jan 2, 2024
1 parent e4cca9d commit 8b8a381
Show file tree
Hide file tree
Showing 12 changed files with 2,415 additions and 7,100 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- name: Build & test a Mojito container
run: |
npm ci
npm install -g gulp-cli
gulp build
gulp test
npm run build
npm run test
env:
CI: true
16 changes: 5 additions & 11 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ pipelines:
- node
script:
- npm ci
- npm -g config set user root
- npm install -g gulp-cli
- gulp ssa --state $State --waveId $WaveId --traffic $SampleRate --recipe $RecipeToDivertTo
- npm run set -- $State --waveId $WaveId --traffic $SampleRate --recipe $RecipeToDivertTo
- git add --all
- git commit --allow-empty -m "Updating $WaveId test to $State"
- git push
Expand All @@ -47,10 +45,8 @@ pipelines:
- node
script:
- npm ci
- npm -g config set user root
- npm install -g gulp-cli
- gulp build
- gulp publish --awsk $AWS_ACCESS_KEY_ID --awss $AWS_SECRET_ACCESS_KEY --production
- npm run build
- npm run publish -- --awsk $AWS_ACCESS_KEY_ID --awss $AWS_SECRET_ACCESS_KEY --production
# - step: # Uncomment to add Cloudfront Invalidation step
# name: Invalidate Cloudfront objects
# script:
Expand All @@ -70,7 +66,5 @@ pipelines:
- node
script:
- npm ci
- npm -g config set user root
- npm install -g gulp-cli
- gulp build
- gulp publish --awsk $AWS_ACCESS_KEY_ID --awss $AWS_SECRET_ACCESS_KEY
- npm run build
- npm run publish -- --awsk $AWS_ACCESS_KEY_ID --awss $AWS_SECRET_ACCESS_KEY
266 changes: 0 additions & 266 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit 8b8a381

Please sign in to comment.