Skip to content

Commit

Permalink
v3.1.3 (#41)
Browse files Browse the repository at this point in the history
* Update ignores

* minor updates to bin files

* Update to version 3.1.3
(and update dependencies)

* remove yarn.lock

Co-authored-by: Tokimon <tvo@leapwork.com>
  • Loading branch information
Tokimon and Tokimon authored Jan 4, 2022
1 parent e6667a0 commit fe0c6c6
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 3,992 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ mjs
cjs
_tests
.vscode
src/index.ts
15 changes: 5 additions & 10 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
.babelrc
.travis.yml
.coveralls.yml
.github
.vscode
.eslintrc
.eslintignore
.nyc_output
.nycrc
.vscode
.github
docs
bin
coverage
tasks
docs
src
bin
jest.config.js
tsconfig.json
tsconfig.cjs.json
tsconfig.mjs.json
Expand Down
24 changes: 15 additions & 9 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/sh
#!/bin/bash

print_done() {
echo -e '\e[1;32mdone\e[0m'
}

print_building() {
printf "Building \e[1;33m.$1\e[0m ... "
printf "Building \e[1;33m$1\e[0m ... "
}

build() {
print_building $1
print_building .$1

# Compile the typescript files
npx tsc -p tsconfig.$1.json
Expand All @@ -24,14 +24,20 @@ build() {
print_done
}

# Preparing the accumulated index file
rm -f ./src/index.ts
build_index() {
print_building index

for file in ./src/*.ts; do
name=$(basename $file .ts)
echo "export { default as $name } from './$name';" >> ./src/index.ts
done
rm -f ./src/index.ts

for file in ./src/*.ts; do
name=$(basename $file .ts)
echo "export { default as $name } from './$name';" >> ./src/index.ts
done

print_done
}

build_index
build mjs
build cjs

Expand Down
2 changes: 1 addition & 1 deletion bin/clean.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

ok() {
echo -e "\e[1;32m🗸\e[0m \e[1;33m$1\e[0m removed"
Expand Down
2 changes: 2 additions & 0 deletions bin/missing.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

missing=0

for file in ./src/*.ts; do
Expand Down
Loading

0 comments on commit fe0c6c6

Please sign in to comment.