Skip to content

Commit

Permalink
added --no-events flag
Browse files Browse the repository at this point in the history
updated dependencies

added contribution guideline
  • Loading branch information
muratgozel committed Jun 21, 2023
1 parent 66d5776 commit 98f2b0e
Show file tree
Hide file tree
Showing 10 changed files with 330 additions and 280 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
patreon: muratgozel # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: muratgozel
ko_fi: # muratgozel
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ typings/

# dotenv environment variables file
.env
.test.env
.env

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ releaser --help
![Sample output of help command.](assets/releaser-help.gif)

## Contributing
Fork, make changes, test and make a pull request. Take a look at the `.test.env.example` file reference for `.test.env`. You can't run tests without filling the `.test.env` file.
If you're interested in contributing, read the [CONTRIBUTING.md](muratgozel/CONTRIBUTING.md) first, please.

---

Expand All @@ -188,4 +188,4 @@ Version management of this repository done by [releaser](https://github.com/mura

Thanks for watching 🐬

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F1RFO7)
[![ko-fi](https://cdn.muratgozel.com.tr/support-me-on-patreon.v1.png)](https://patreon.com/muratgozel?utm_medium=organic&utm_source=github_repo&utm_campaign=github&utm_content=join_link)
4 changes: 2 additions & 2 deletions cli/actions/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default async function push(opts, command) {
}
}

await events.emit('beforePush')
if (!opts.noEvents) await events.emit('beforePush')

if (!spinner) spinner = ora({text: `Pushing changes`, color: 'cyan', indent: 2}).start()
else spinner.start(`Pushing changes`)
Expand All @@ -59,5 +59,5 @@ export default async function push(opts, command) {
}
spinner.succeed(`Pushing changes`)

await events.emit('afterPush')
if (!opts.noEvents) await events.emit('afterPush')
}
4 changes: 3 additions & 1 deletion cli/index.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import path from "node:path";
import {fileURLToPath} from 'node:url';
import {Command} from "commander";
import {config} from "../lib/infrastructure/config.js";
// import pkg from "../package.json" assert {type: "json"};
import check from "./actions/check.js";
import commit from "./actions/commit.js";
import push from "./actions/push.js";
Expand Down Expand Up @@ -63,6 +62,7 @@ program.command('push')
.option('-a, --auto-configure', 'Creates configuration file automatically by looking at the codebase, this option disables any user input in check phase.', false)
.option('-p, --project-path <path>', 'Specify different project path. It is where command executed by default.')
.option('--prefer-config <loc>', 'Preferred location for the releaser config, only taken into account with auto-configure', '.releaser.json')
.option('-ne, --no-events', 'Do not trigger any events such as github/npm/docker releases.', false)
.hook('preAction', preAction)
.action(push)

Expand All @@ -77,6 +77,7 @@ program.command('release')
.option('--initial-release', 'Force releaser to treat this as initial release.', false)
.hook('preAction', preAction)
.action(release)

/*
program.command('docker')
.description('Builds and pushes the container to a docker registry.')
Expand All @@ -87,4 +88,5 @@ program.command('docker')
.hook('preAction', preAction)
.action(docker)
*/

await program.parseAsync(process.argv)
Loading

0 comments on commit 98f2b0e

Please sign in to comment.