Skip to content

Commit

Permalink
🏰 Rewrite to TypeScript
Browse files Browse the repository at this point in the history
  - Codebase switched to TypeScript
  - TSLint configured
  - Priority-aware synchronous event dispatcher introduced
  - Provided typings for used libraries
  - The response now build through events
  - CLI interface not responsible anymore for calling modules
  - Release process has been adopted for TypeScript
  • Loading branch information
igrybkov committed Jan 29, 2019
1 parent cd0d450 commit fe404ef
Show file tree
Hide file tree
Showing 47 changed files with 7,904 additions and 6,629 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.js,*.ts}]
indent_size = 2

[{package.json,*.yml}]
indent_style = space
indent_size = 2
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
.env
/settings.plist
dist/
*.alfredworkflow
/build/
/lib/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/src/
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ switch-to-dev:
alfredworkflow:
$(eval name=$(shell /usr/libexec/PlistBuddy -c Print:name info.plist | sed -e 's/ //g'))
$(eval archive=$(shell npm pack 2>&1 | tail -n1))
rm -rf dist
mkdir dist
tar -xzf $(archive) -C dist
rm -rf build
mkdir build
tar -xzf $(archive) -C build
rm -rf $(archive)
cp package-lock.json dist/package/
cd dist/package; npm ci --production --ignore-scripts
cd dist/package; zip -r ../$(name).alfredworkflow .
rm -rf dist/package
cp package-lock.json build/package/
cd build/package; npm ci --production --ignore-scripts
cd build/package; zip -r ../$(name).alfredworkflow .
rm -rf build/package
201 changes: 0 additions & 201 deletions app.js

This file was deleted.

Loading

0 comments on commit fe404ef

Please sign in to comment.