-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change alias import conversion from runtime to compile-time and minif…
…y output (#12) * Updated tsconfig.json and package.json for upcoming file structure updates * Moved some files around and removed `module-alias` and introduced `babel` dev-dependency * Removed default export for archipelago.js, incremented version number as changes break current API, and configured tsc to not output javascript * Tweaks to .npmignore and .gitignore and misc changes to package.json and tsconfig.json
- Loading branch information
Showing
16 changed files
with
6,750 additions
and
1,748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-typescript", | ||
"minify" | ||
], | ||
"plugins": [ | ||
["babel-plugin-module-resolver", { | ||
"root": ["./src"], | ||
"alias": { | ||
"@enums": "./src/enums", | ||
"@packets": "./src/packets", | ||
"@structs": "./src/structs", | ||
"@managers": "./src/managers", | ||
"@core": "./src" | ||
} | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
# Ignore the following directories. | ||
.idea/ | ||
.github/ | ||
src/ | ||
# Ignore everything except those we manually allow | ||
* | ||
|
||
# Ignore the following config files. | ||
.eslintignore | ||
.eslintrc | ||
.prettierrc | ||
tsconfig.json | ||
|
||
# Ignore any root level typescript files used to testing. | ||
*.ts | ||
!*.d.ts | ||
# JavaScript and Type Definitions | ||
!dist/**/*.d.ts | ||
!dist/**/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.