Skip to content

Commit

Permalink
Merge pull request #64 from dlepaux/feature/upgrade
Browse files Browse the repository at this point in the history
Important update (upgrades, replace deprecated dependencies)
  • Loading branch information
dlepaux authored Jan 28, 2024
2 parents 9bae02b + 74415d3 commit 85b1dde
Show file tree
Hide file tree
Showing 63 changed files with 7,918 additions and 23,180 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ indent_style = space
indent_size = 4

# 2 space indentation
[*.{js, ts, tsx, cjs, mjs, json, vue, css, scss}]
[*.{js, ts, tsx, cjs, mjs, json, vue, css, scss, sh}]
indent_style = space
indent_size = 2

Expand Down
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
tests/*
19 changes: 6 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# Vendors
node_modules

# Coverage
.next
*.DS_Store
coverage

# Documentation
dist
docs

# Others
.next
*.DS_Store

# Datasets
tests/datasets
github-pages/favicons
node_modules
testing/datasets
testing/manifest.json
28 changes: 4 additions & 24 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
.github
.husky
.next
brand
coverage
deploy
docs
node_modules
processor
src
tests
.real-favicon-data.json
.real-favicon.json
.commitlintrc.cjs
.editorconfig
.gitignore
.npmignore
.versionrc.json
changelog.md
code-of-conduct.md
codevoc.yml
contributing.md
licence.md
tsconfig.json
!dist
!licence.md
!package.json
!readme.md
1 change: 0 additions & 1 deletion .real-favicon-data.json

This file was deleted.

59 changes: 0 additions & 59 deletions .real-favicon.json

This file was deleted.

10 changes: 10 additions & 0 deletions bin/build/github-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!bin/bash

rm -Rf docs
typedoc ./src

ts-node --esm --skipProject ./github-pages/favicons-generator.ts
ts-node --esm --skipProject ./github-pages/sitemap-generator.ts
ts-node --esm --skipProject ./github-pages/meta-injector.ts

cp -r ./github-pages/public/* ./docs/
8 changes: 8 additions & 0 deletions bin/build/library.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!bin/bash

# Build Library
ts-node build.ts

# Build Types
tsc src/index.ts --emitDeclarationOnly --declaration --outdir dist
tsc processor/realtime-bpm-processor.ts --emitDeclarationOnly --declaration --outfile dist/realtime-bpm-processor.d.ts
21 changes: 21 additions & 0 deletions bin/build/to-project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!bin/bash

if [ -z "$1" ]; then
echo "\e[31mError: You need to provide the name of the project that is right next to this one\e[0m"
exit 1
fi

rm -Rf dist
npm run build

# If necessary, delete .next repository
if [ -d "../$1/.next/" ]; then
rm -Rf "../$1/.next/"
fi

# Replace the library with the new draft version for further testing
if [ -d "../$1/node_modules/realtime-bpm-analyzer/dist/" ]; then
rm -Rf ../$1/node_modules/realtime-bpm-analyzer/dist/
mkdir ../$1/node_modules/realtime-bpm-analyzer/dist/
cp ./dist/* ../$1/node_modules/realtime-bpm-analyzer/dist/
fi
5 changes: 5 additions & 0 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!bin/bash

rm -Rf docs
npm run build:docs
gh-pages -d docs -b gh-pages
7 changes: 7 additions & 0 deletions bin/release/after.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!bin/bash
set -e
npm test
npm run build
npm publish

bin/deploy.sh
3 changes: 3 additions & 0 deletions bin/release/before.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!bin/bash
set -e
npm test
12 changes: 12 additions & 0 deletions bin/release/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!bin/bash
set -e

if [ -z "$1" ]; then
echo "\e[31mError: You need to provide the version you want to increase (patch, minor or major)\e[0m"
exit 1
fi

bash bin/release/before.sh
standard-version --release-as $1
git push
bash bin/release/after.sh
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Loading

0 comments on commit 85b1dde

Please sign in to comment.