Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various TypeScript related resolutions, fixes, additions, and electric boogaloo #25

Merged
merged 21 commits into from
Feb 26, 2019

Conversation

favna
Copy link
Contributor

@favna favna commented Feb 24, 2019

Pretty much thoroughly discussed on Discord already. Opening up the PR so it can be merged.

  • Fix the lib to actually compile
  • Introduce Jest as test framework to test all sites
    • It also tests all other exported functions from index.ts
  • Introduce terser-folder to compress and mangle the build
  • Always run lint and test prior to building
  • Change to MIT license to resolve License change #22
  • Remove youhate.us since it's dead
  • Address some feedback you already gave on Discord prior to PR

@AtoraSuunva AtoraSuunva self-assigned this Feb 24, 2019
@AtoraSuunva AtoraSuunva self-requested a review February 24, 2019 21:35
Copy link
Owner

@AtoraSuunva AtoraSuunva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the comments I've left, but more generally I prefer no semicolon style over semicolons

src/Constants.ts Outdated Show resolved Hide resolved
src/Constants.ts Show resolved Hide resolved
example.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/Utils.ts Outdated Show resolved Hide resolved
src/boorus/Booru.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
- Revert to SMap<V> Generic
- Use NPM in package scripts and CircleCI
- Revert to "sites" as exported member, instead of SiteMap
- Properly reference MIT license
- Target NodeJS LTS (v10) at time of writing
- Further revert to function keyword
- Throw errors, not return them
@favna favna changed the title Typescript Various TypeScript related resolutions, fixes, additions, and electric boogaloo Feb 24, 2019
Terser is more up2date than uglifyjs as described [in their
description](https://www.npmjs.com/package/terser#why-choose-terser)

Also it is future proofing, especially needed if we're going to target
esnext.

Also Also it will be default in webpack starting v5 so like.. community
speaks right?
- Change to lib and target esnext
- Include DS_Store in gitignore
- Revert commonfy back to previous state
- Make example runnable and remove semi's as requested
- Remove requirement of casting to string[] for sites


Signed-off-by: Jeroen Claassens <support@fanva.xyz>
Signed-off-by: Jeroen Claassens <support@fanva.xyz>
@AtoraSuunva AtoraSuunva merged commit ea1c2ef into AtoraSuunva:typescript Feb 26, 2019
@favna favna deleted the typescript branch February 26, 2019 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants