Skip to content

Commit

Permalink
fix: Various changes
Browse files Browse the repository at this point in the history
Apply prettier format, disable rollup output.banner
  • Loading branch information
DimChtz committed Mar 16, 2024
1 parent 6205cce commit 1bf11ca
Show file tree
Hide file tree
Showing 15 changed files with 94 additions and 74 deletions.
5 changes: 3 additions & 2 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"presets": [
"presets": [
[
"@babel/env", {
"@babel/env",
{
// "targets": {
// "node": "current"
// }
Expand Down
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"node": true,
"es6": true
},
"plugins": [
"jest"
],
"plugins": ["jest"],
"overrides": [
{
"files": ["**/__tests__/**/*", "src/*.(test|spec).js"],
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ trash
public

# Editor
.vscode
.vscode-test
*.sublime-project
*.sublime-workspace
Expand Down
Binary file modified .nvmrc
Binary file not shown.
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"trailingComma": "none",
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "always"
"trailingComma": "none",
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "always"
}
41 changes: 25 additions & 16 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
{
"branches": ["master"],
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "(docs|doc)", "release": "patch" },
{ "type": "refactor", "release": "patch" }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "(docs|doc)", "release": "patch" },
{ "type": "refactor", "release": "patch" }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}
}],
],
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/git", {
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"files.exclude": {
"**/dist": true,
"**/node_modules": true
}
}
1 change: 0 additions & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
//! PostCSS Flexup v1.0.8 Copyright (c) 2024 Dimitris Chatzis
"use strict";function t(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,a,o,l,c=[],i=!0,u=!1;try{if(o=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;i=!1}else for(;!(i=(n=o.call(e)).done)&&(c.push(n.value),c.length!==r);i=!0);}catch(t){u=!0,a=t}finally{try{if(!i&&null!=e.return&&(l=e.return(),Object(l)!==l))return}finally{if(u)throw a}}return c}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var a={matchAlignValues:/^(_|(!?(center|start|end|between|around)))(\/(_|(!?(center|start|end|between|around))))?$/,matchWrapValues:/^!?(wrap|nowrap)$/,matchDirValues:/^!?-?(row|col)$/,matchGapValues:/^(_|(!?(\d+[a-z]+)))(\/(_|(!?(\d+[a-z]+))))?$/,valuesMapper:{start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",wrap:"wrap",nowrap:"nowrap",row:"row",col:"col","-row":"row-reverse","-col":"column-reverse"},baseStyles:["display: flex;"]},o=function(r,e,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=function(t){return t.startsWith("!")?[!0,t.slice(1)]:[!1,t]}(r),c=t(l,2),i=c[0],u=c[1],s=i?" !important":"",p=o?a.valuesMapper[u]:u;return n.push("".concat(e,": ").concat(p).concat(s,";")),n},l=function(t,r,e){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return 1==t.length?(e=o(t[0],r[0],e,n),e=o(t[0],r[1],e,n)):("_"!==t[0]&&(e=o(t[0],r[0],e,n)),"_"!==t[1]&&(e=o(t[1],r[1],e,n)),e)};function c(){return{postcssPlugin:"postcss-flexup",Declaration:{flexup:function(t){var e,n;t.parent.append((e=t.toString(),n=r(a.baseStyles),e.split(" ").forEach((function(t){"_"==t||(t.match(a.matchAlignValues)?n=l(t.split("/"),["justify-content","align-items"],n,!0):t.match(a.matchWrapValues)?n=o(t,"flex-wrap",n):t.match(a.matchDirValues)?n=o(t,"flex-direction",n):t.match(a.matchGapValues)&&(n=l(t.split("/"),["column-gap","row-gap"],n,!1)))})),"\n"+n.join("\n"))),t.remove()}}}}c.postcss=!0,module.exports=c;
//# sourceMappingURL=index.cjs.map
2 changes: 1 addition & 1 deletion dist/index.cjs.map

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

Loading

0 comments on commit 1bf11ca

Please sign in to comment.