@jeromefitz/conventional-gitmoji 2.0.0 → 2.0.1-design-system.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/getGitmojiConventional.cjs +1 -1
- package/getGitmojiConventional.js +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +11 -6
- package/config/rewrites.cjs +0 -1
- package/config/rewrites.d.ts +0 -13
- package/config/rewrites.js +0 -1
- package/config/types.cjs +0 -1
- package/config/types.d.ts +0 -20
- package/config/types.js +0 -1
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var d=e=>n(e,"__esModule",{value:!0});var p=(e,o)=>{for(var r in o)n(e,r,{get:o[r],enumerable:!0})},u=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of m(o))!i.call(e,s)&&(r||s!=="default")&&n(e,s,{get:()=>o[s],enumerable:!(t=c(o,s))||t.enumerable});return e};var h=(e=>(o,r)=>e&&e.get(o)||(r=u(d({}),o,1),e&&e.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var N={};p(N,{default:()=>v});var b=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"
|
|
1
|
+
var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var d=e=>n(e,"__esModule",{value:!0});var p=(e,o)=>{for(var r in o)n(e,r,{get:o[r],enumerable:!0})},u=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of m(o))!i.call(e,s)&&(r||s!=="default")&&n(e,s,{get:()=>o[s],enumerable:!(t=c(o,s))||t.enumerable});return e};var h=(e=>(o,r)=>e&&e.get(o)||(r=u(d({}),o,1),e&&e.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var N={};p(N,{default:()=>v});var b=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],f=b;var w={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},a=w;var y=require("gitmojis").gitmojis,k=()=>(y.map(e=>{let o=f.find(r=>(r==null?void 0:r.from)===e.name);if(o){let r=o.releaseNotes===void 0?!0:o.releaseNotes||null,t=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;a[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,releaseNotes:r,section:e==null?void 0:e.description,semver:t?t.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(a).sort().reduce((e,o)=>(e[o]=a[o],e),{})),v=k;module.exports=h(N);0&&(module.exports={});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,r)=>(typeof require!="undefined"?require:o)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var c=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"
|
|
1
|
+
var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,r)=>(typeof require!="undefined"?require:o)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var c=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],l=c;var m={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},t=m;var i=f("gitmojis").gitmojis,d=()=>(i.map(e=>{let o=l.find(r=>(r==null?void 0:r.from)===e.name);if(o){let r=o.releaseNotes===void 0?!0:o.releaseNotes||null,s=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;t[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,releaseNotes:r,section:e==null?void 0:e.description,semver:s?s.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(t).sort().reduce((e,o)=>(e[o]=t[o],e),{})),y=d;export{y as default};
|
package/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var y=Object.create;var n=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var i=e=>n(e,"__esModule",{value:!0});var N=(e,o)=>{for(var r in o)n(e,r,{get:o[r],enumerable:!0})},p=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of k(o))!x.call(e,s)&&(r||s!=="default")&&n(e,s,{get:()=>o[s],enumerable:!(t=g(o,s))||t.enumerable});return e},P=(e,o)=>p(i(n(e!=null?y(w(e)):{},"default",!o&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),T=(e=>(o,r)=>e&&e.get(o)||(r=p(i({}),o,1),e&&e.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var q={};N(q,{default:()=>$,releaseRules:()=>G,typeSpecs:()=>I,types:()=>m});var R=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"
|
|
1
|
+
var y=Object.create;var n=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var i=e=>n(e,"__esModule",{value:!0});var N=(e,o)=>{for(var r in o)n(e,r,{get:o[r],enumerable:!0})},p=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of k(o))!x.call(e,s)&&(r||s!=="default")&&n(e,s,{get:()=>o[s],enumerable:!(t=g(o,s))||t.enumerable});return e},P=(e,o)=>p(i(n(e!=null?y(w(e)):{},"default",!o&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),T=(e=>(o,r)=>e&&e.get(o)||(r=p(i({}),o,1),e&&e.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var q={};N(q,{default:()=>$,releaseRules:()=>G,typeSpecs:()=>I,types:()=>m});var R=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],u=R;var C={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},l=C;var S=require("gitmojis").gitmojis,_=()=>(S.map(e=>{let o=u.find(r=>(r==null?void 0:r.from)===e.name);if(o){let r=o.releaseNotes===void 0?!0:o.releaseNotes||null,t=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;l[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,releaseNotes:r,section:e==null?void 0:e.description,semver:t?t.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(l).sort().reduce((e,o)=>(e[o]=l[o],e),{})),f=_;var c=[],O=e=>(Object.keys(e).map(o=>{var r;c.push({release:e[o].semver,type:!!e[o]&&((r=e[o])==null?void 0:r.code.replace(/(:[^:]*):/g,"$1"))}),c.push({release:e[o].semver,type:e[o].commit}),c.push({release:e[o].semver,type:e[o].emoji})}),c),d=O;var h=P(require("title"),1),b=[],D=e=>(Object.keys(e).map(o=>{b.push({code:e[o].code,emoji:e[o].emoji,releaseNotes:e[o].releaseNotes||!1,section:(0,h.default)(e[o].commit)+`
|
|
2
2
|
#### `+e[o].section,semver:e[o].semver,type:e[o].commit,value:e[o].commit})}),b),v=D;var m=f(),G=d(m),I=v(m);var $=f;module.exports=T(q);0&&(module.exports={releaseRules,typeSpecs,types});
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var d=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,r)=>(typeof require!="undefined"?require:o)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var h=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"
|
|
1
|
+
var d=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,r)=>(typeof require!="undefined"?require:o)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var h=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"patch"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],f=h;var b={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},a=b;var v=d("gitmojis").gitmojis,y=()=>(v.map(e=>{let o=f.find(r=>(r==null?void 0:r.from)===e.name);if(o){let r=o.releaseNotes===void 0?!0:o.releaseNotes||null,c=o.semver===void 0?(e==null?void 0:e.semver)||null:o.semver||(e==null?void 0:e.semver)||null;a[o.to]={branch:Boolean(o==null?void 0:o.branch)?o.branch:!1,code:e==null?void 0:e.code,commit:o.to,description:e==null?void 0:e.description,emoji:e==null?void 0:e.emoji,entity:e==null?void 0:e.entity,name:e==null?void 0:e.name,releaseNotes:r,section:e==null?void 0:e.description,semver:c?c.replace("fix","patch").replace("feature","minor").replace("breaking","major"):null}}else console.dir(`@todo(conventional-gitmoji) create rewrite for: ${e.name}`)}),Object.keys(a).sort().reduce((e,o)=>(e[o]=a[o],e),{})),l=y;var n=[],g=e=>(Object.keys(e).map(o=>{var r;n.push({release:e[o].semver,type:!!e[o]&&((r=e[o])==null?void 0:r.code.replace(/(:[^:]*):/g,"$1"))}),n.push({release:e[o].semver,type:e[o].commit}),n.push({release:e[o].semver,type:e[o].emoji})}),n),m=g;import k from"title";var i=[],w=e=>(Object.keys(e).map(o=>{i.push({code:e[o].code,emoji:e[o].emoji,releaseNotes:e[o].releaseNotes||!1,section:k(e[o].commit)+`
|
|
2
2
|
#### `+e[o].section,semver:e[o].semver,type:e[o].commit,value:e[o].commit})}),i),p=w;var u=l(),$=m(u),q=p(u);var z=l;export{z as default,$ as releaseRules,q as typeSpecs,u as types};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeromefitz/conventional-gitmoji",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1-design-system.1",
|
|
4
4
|
"description": "Helper package for dual gitmoji / conventional commits",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jerome Fitzgerald",
|
|
@@ -21,15 +21,20 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": false,
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "tsup-node
|
|
25
|
-
"dev": "tsup-node
|
|
24
|
+
"build": "tsup-node",
|
|
25
|
+
"dev": "tsup-node --watch",
|
|
26
26
|
"---": "",
|
|
27
27
|
"clean": "rm -rf .turbo && rm -rf dist",
|
|
28
28
|
"clean:install": "yarn clean && rm -rf node_modules",
|
|
29
29
|
"copy": "mkdir -p ./dist && ./scripts/copy.sh",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
30
|
+
"--- ": "",
|
|
31
|
+
"lint:eslint": "eslint ./src --ext cjs,js,jsx,mjs,ts,tsx --max-warnings=0",
|
|
32
|
+
"lint:prettier": "prettier \"./src/**/*.{cjs,js,jsx,mjs,ts,tsx,json,md,mdx,css,html,yml,yaml,scss}\" --ignore-unknown --loglevel warn",
|
|
33
|
+
"lint": "yarn lint:prettier --check && yarn lint:eslint",
|
|
34
|
+
"lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write",
|
|
35
|
+
"--- ": "",
|
|
36
|
+
"semantic-release": "semantic-release",
|
|
37
|
+
"semantic-release:mono": "semantic-release -e semantic-release-monorepo"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|
|
35
40
|
"@types/title": "3.4.1",
|
package/config/rewrites.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var i=e=>a(e,"__esModule",{value:!0});var n=(e,o)=>{for(var r in o)a(e,r,{get:o[r],enumerable:!0})},c=(e,o,r,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of m(o))!l.call(e,t)&&(r||t!=="default")&&a(e,t,{get:()=>o[t],enumerable:!(s=f(o,t))||s.enumerable});return e};var p=(e=>(o,r)=>e&&e.get(o)||(r=c(i({}),o,1),e&&e.set(o,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var g={};n(g,{default:()=>d});var h=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"major"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],d=h;module.exports=p(g);0&&(module.exports={});
|
package/config/rewrites.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @note pseudo-map to conventional-commits
|
|
3
|
-
*/
|
|
4
|
-
declare type RewritesProps = {
|
|
5
|
-
branch?: string | null;
|
|
6
|
-
from: string;
|
|
7
|
-
releaseNotes?: boolean | null;
|
|
8
|
-
semver?: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
|
|
9
|
-
to: string;
|
|
10
|
-
};
|
|
11
|
-
declare const rewrites: RewritesProps[];
|
|
12
|
-
|
|
13
|
-
export { rewrites as default };
|
package/config/rewrites.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=[{from:"art",to:"style"},{from:"zap",to:"perf"},{from:"fire",to:"prune"},{from:"bug",to:"fix",branch:"fix"},{from:"ambulance",to:"hotfix",branch:"hotfix"},{from:"sparkles",to:"feat",branch:"feature"},{from:"memo",to:"docs"},{from:"rocket",to:"deploy"},{from:"lipstick",to:"ui"},{from:"tada",to:"init",semver:"major"},{from:"white-check-mark",to:"test",branch:"test"},{from:"lock",to:"security"},{from:"bookmark",to:"release",branch:"release",releaseNotes:!1},{from:"rotating-light",to:"lint"},{from:"construction",to:"wip",releaseNotes:!1},{from:"green-heart",to:"fix-ci"},{from:"arrow-down",to:"downgrade"},{from:"arrow-up",to:"upgrade"},{from:"pushpin",to:"pushpin"},{from:"construction-worker",to:"ci",branch:"ci"},{from:"chart-with-upwards-trend",to:"analytics"},{from:"recycle",to:"refactor",branch:"refactor"},{from:"heavy-plus-sign",to:"dep-add"},{from:"heavy-minus-sign",to:"dep-rm"},{from:"wrench",to:"config"},{from:"hammer",to:"build"},{from:"globe-with-meridians",to:"i18n"},{from:"pencil2",to:"typo",releaseNotes:!1},{from:"poop",to:"poo",releaseNotes:!1},{from:"rewind",to:"revert",releaseNotes:!1},{from:"twisted-rightwards-arrows",to:"merge",releaseNotes:!1},{from:"package",to:"dep-up"},{from:"alien",to:"compat"},{from:"truck",to:"mv",releaseNotes:!1},{from:"page-facing-up",to:"license"},{from:"boom",to:"breaking",semver:"major"},{from:"bento",to:"assets"},{from:"wheelchair",to:"access"},{from:"bulb",to:"docs-code"},{from:"beers",to:"beer",releaseNotes:!1},{from:"speech-balloon",to:"texts"},{from:"card-file-box",to:"db"},{from:"loud-sound",to:"log-add",releaseNotes:!1},{from:"mute",to:"log-rm",releaseNotes:!1},{from:"busts-in-silhouette",to:"contrib-add"},{from:"children-crossing",to:"ux"},{from:"building-construction",to:"arch"},{from:"iphone",to:"iphone"},{from:"clown-face",to:"mock"},{from:"egg",to:"egg",releaseNotes:!1},{from:"see-no-evil",to:"ignore",releaseNotes:!1},{from:"camera-flash",to:"snapshot",releaseNotes:!1},{from:"alembic",to:"experiment",releaseNotes:!1},{from:"mag",to:"seo"},{from:"label",to:"types"},{from:"seedling",to:"seed"},{from:"triangular-flag-on-post",to:"flags"},{from:"goal-net",to:"catch"},{from:"animation",to:"animation"},{from:"wastebasket",to:"clean"},{from:"passport-control",to:"roles"},{from:"adhesive-bandage",to:"patch"},{from:"monocle-face",to:"data"},{from:"coffin",to:"rip",releaseNotes:!1},{from:"test-tube",to:"test-fail"},{from:"necktie",to:"logic"},{from:"stethoscope",to:"healthcheck"},{from:"bricks",to:"inf"},{from:"technologist",to:"dx"}],t=o;export{t as default};
|
package/config/types.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=o=>n(o,"__esModule",{value:!0});var d=(o,e)=>{for(var r in e)n(o,r,{get:e[r],enumerable:!0})},m=(o,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!l.call(o,t)&&(r||t!=="default")&&n(o,t,{get:()=>e[t],enumerable:!(s=i(e,t))||s.enumerable});return o};var f=(o=>(e,r)=>o&&o.get(e)||(r=m(c({}),e,1),o&&o.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var y={};d(y,{default:()=>p});var u={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},p=u;module.exports=f(y);0&&(module.exports={});
|
package/config/types.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @note default from git-cz
|
|
3
|
-
*/
|
|
4
|
-
declare type TypesProps = {
|
|
5
|
-
[x: string]: {
|
|
6
|
-
branch: string | boolean | null | undefined;
|
|
7
|
-
code: any | null;
|
|
8
|
-
description: any;
|
|
9
|
-
emoji: any;
|
|
10
|
-
entity: string;
|
|
11
|
-
name: string;
|
|
12
|
-
releaseNotes: boolean | null;
|
|
13
|
-
section: string;
|
|
14
|
-
semver: 'breaking' | 'feature' | 'fix' | 'major' | 'minor' | 'patch' | null;
|
|
15
|
-
commit: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
declare const types: TypesProps;
|
|
19
|
-
|
|
20
|
-
export { types as default };
|
package/config/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={chore:{branch:"chore",code:":computer_disk:",commit:"chore",description:"Changes that don\u2019t modify src or test files",emoji:"\u{1F4BD}\uFE0F",entity:"💽",name:"computer-disk",releaseNotes:!1,section:"Changes that don\u2019t modify src or test files",semver:null},rollforward:{branch:!1,code:":fast_forward:",commit:"rollforward",description:"Create rollforward version.",emoji:"\u23E9\uFE0F",entity:"E9;",name:"rollforward",releaseNotes:!1,section:"Create rollforward version.",semver:null},"run-build":{branch:!1,code:":rocket:",commit:"run-build",description:"Custom type for CI/CD to hook into run build override.",emoji:"\u{1F680}\uFE0F",entity:"F680;",name:"run-build",releaseNotes:!1,section:"Custom type for CI/CD to hook into run build override.",semver:"patch"}},t=e;export{t as default};
|