Skip to content

Commit

Permalink
fix(build): refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Dec 19, 2021
1 parent 81bb55d commit f54f742
Show file tree
Hide file tree
Showing 37 changed files with 13,410 additions and 16,191 deletions.
15 changes: 0 additions & 15 deletions .appveyor.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .babelrc

This file was deleted.

24 changes: 20 additions & 4 deletions .branchlintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
{
"branchNameLinter": {
"prefixes": ["feature", "hotfix", "release"],
"prefixes": [
"feature",
"hotfix",
"release",
"renovate",
"beta",
"next"
],
"suggestions": {
"features": "feature",
"feat": "feature",
"fix": "hotfix",
"releases": "release"
},
"banned": ["wip"],
"skip": ["skip-ci"],
"disallowed": ["master", "develop", "staging"],
"banned": [
"wip"
],
"skip": [
"skip-ci"
],
"disallowed": [
"main",
"master",
"next",
"staging"
],
"seperator": "/",
"msgBranchBanned": "Branches with the name \"%s\" are not allowed.",
"msgBranchDisallowed": "Pushing to \"%s\" is not allowed, use git-flow.",
Expand Down
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaults
not IE 11
maintained node versions
18 changes: 15 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"mocha": true
"es6": true,
"node": true
},
"parserOptions": {
"parser": "@babel/eslint-parser",
"sourceType": "module",
"requireConfigFile": false,
"ecmaVersion": "latest"
},
"extends": [
"eslint:recommended"
],
"rules": {
"comma-dangle": ["error", "only-multiline"],
"class-methods-use-this": "off",
Expand All @@ -23,6 +31,10 @@
{
"code": 140
}
],
"semi": [
2,
"always"
]
}
}
7 changes: 7 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

npx --no-install commitlint --edit $1
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

npx --no-install lint-staged
7 changes: 7 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

npx branch-name-lint .branchlintrc
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.(js)": [
"npm run lint"
]
}
9 changes: 9 additions & 0 deletions .mocharc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default {
diff: true,
extension: ['ts', 'tsx', 'js'], // include extensions
package: './package.json',
reporter: 'spec',
slow: 75,
timeout: 2000,
ui: 'bdd'
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.1
16.13.0
10 changes: 0 additions & 10 deletions .nycrc

This file was deleted.

83 changes: 0 additions & 83 deletions .rolluprc

This file was deleted.

18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { build } from 'esbuild';
import browserslistToEsbuild from 'browserslist-to-esbuild';

build({
entryPoints: ['./src/index.js'],
bundle: true,
minify: true,
sourcemap: true,
target: browserslistToEsbuild(),
outfile: './build/out.js',
}).catch(() => global.process.exit(1));
5 changes: 5 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
]
};
Loading

0 comments on commit f54f742

Please sign in to comment.