Skip to content

Commit

Permalink
Restructured package
Browse files Browse the repository at this point in the history
  • Loading branch information
smikhalevski committed Aug 29, 2023
1 parent c355e4e commit 24d89f1
Show file tree
Hide file tree
Showing 43 changed files with 3,359 additions and 3,874 deletions.
145 changes: 4 additions & 141 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,141 +1,4 @@
/lib/
/docs/
*.tgz

# IntelliJ Idea file-based project settings
*.iws
/out/
.idea

# VSCode
*.tsbuildinfo

# Android studio
.gradle/
local.properties
.DS_Store
build/
captures/
.externalNativeBuild
local.properties

# Cache files for SublimeText
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
*.sublime-project

# sFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings

# Node
*.moved-aside
*.xccheckout
*.xcscmblueprint
# Out of memory reports
report.*.json

# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Dependency directories
node_modules
flow-typed
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Build generated
build/
DerivedData/

# OSX
*.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Linux
*~

# Temporary files which can be created if a process still has a handle
# open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# Windows
*.bak
*.tmp
*.swp

# Image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle bin used on file shares
$RECYCLE.BIN/

# Installer files
*.cab
*.msi
*.msm
*.msp

# Shortcuts
*.lnk
node_modules/
lib/
docs/
coverage/
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"endOfLine": "auto",
"singleAttributePerLine": true
}
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Savva Mikhalevski
Copyright (c) 2023 Savva Mikhalevski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ Bitwise operations [`left`](https://smikhalevski.github.io/algomatic/modules.htm
and [`xor`](https://smikhalevski.github.io/algomatic/modules.html#xor) for _unsigned_ integers that exceed 32-bit range:

```ts
left(0xAB, 8); // Same as 0xAB << 8
//0xAB_00
left(0xab, 8); // Same as 0xab << 8
//0xab_00

left(0xAB_CD_EF_AB_CD, 24)
//0xAB_CD_EF_AB_CD_00_00_00
left(0xab_cd_ef_ab_cd, 24)
//0xab_cd_ef_ab_cd_00_00_00

right(0xAB_CD, 8); // Same as 0xAB_CD >> 8
//0xAB
right(0xab_cd, 8); // Same as 0xab_cd >> 8
//0xab
```
10 changes: 10 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"preset": "ts-jest",
"testMatch": [
"<rootDir>/src/test/**/*.test.ts"
],
"modulePathIgnorePatterns": [
"<rootDir>/gen",
"<rootDir>/lib"
]
}
Loading

0 comments on commit 24d89f1

Please sign in to comment.