question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create a custom preset?

See original GitHub issue

I’ve read the documentation thoroughly and understand that this action is based on presets like angular and conventionalcommits. However, I’m looking to create my own custom convention with custom types and would like to customize things like which types bump what version number and prevent bumping on breaking changes under 1.0.0.

Is this possible? The closest thing I’ve found is config-file-path and the Conventional Changelog Configuration Spec but I don’t use npm and I’m not sure if this is the right way of going about this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TriPSscommented, Sep 6, 2022

Hmm, I have the feeling we need to do something with the Q library, as the below code is handled in formatting the config:

'use strict'

const Q = require('q')

module.exports = presetResolver

function presetResolver (presetPackage) {
  // start the chain as a Q.Promise
  return Q.resolve().then(() => {
    // handle traditional node-style callbacks
    if (typeof presetPackage === 'function') {
      return Q.nfcall(presetPackage)
    }

    // handle object literal or Promise instance
    if (typeof presetPackage === 'object') {
      return Q(presetPackage)
    }

    throw new Error('preset package must be a promise, function, or object')
  })
}

I will see If I can check this locally somewhere the coming days, will let you know 😃

0reactions
andreilgcommented, Nov 25, 2022

I will see If I can check this locally somewhere the coming days, will let you know 😃

Have you been able to see if this issue had anything to do with the Q library?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make your own presets to create a consistent look on ...
Go into the Develop Module in Lightroom · On the left-hand side, click the Plus button next to Presets · Click the first...
Read more >
How to Make Your Own Presets in Lightroom
Highlight the picture you have edited. Click the plus sign (+) on the left hand side of Lightroom Classic (see below). Select 'Create...
Read more >
How to Create Your Own Lightroom Presets (2022)
Creating a preset in Lightroom · Step 1: Click the Create Preset option · Step 2: Determine which settings should be a part...
Read more >
How to Make and Sell Your Own Lightroom Presets
Select the “Develop Module” in Lightroom; At the top of the navigator on the left panel, you'll see an option that says “Presets.”...
Read more >
How to Create Your Own Custom Lightroom Presets
How to Create a Preset in Adobe Lightroom Classic. If you use Lightroom Classic, you'll need to open your photo in the Develop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found