Skip to content

Commit

Permalink
Change alias import conversion from runtime to compile-time and minif…
Browse files Browse the repository at this point in the history
…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
ThePhar committed Jun 16, 2022
1 parent 84d80d3 commit 1601798
Show file tree
Hide file tree
Showing 16 changed files with 6,750 additions and 1,748 deletions.
19 changes: 19 additions & 0 deletions .babelrc
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"
}
}]
]
}
214 changes: 127 additions & 87 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,107 @@

# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,linux,intellij+all,node
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,linux,intellij+all,node

### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/*

### 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-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
Expand All @@ -7,6 +111,7 @@
# Icon must end with two \r
Icon


# Thumbnails
._*

Expand Down Expand Up @@ -100,6 +205,7 @@ web_modules/
.node_repl_history

# Output of 'npm pack'
packs/
*.tgz

# Yarn Integrity file
Expand Down Expand Up @@ -170,96 +276,30 @@ dist
# SvelteKit build / generate output
.svelte-kit

### WebStorm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# Dump file
*.stackdump

# File-based project format
*.iws

# IntelliJ
out/
# Folder config file
[Dd]esktop.ini

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### WebStorm+all Patch ###
# Ignore everything.
.idea/*
# Recycle Bin used on file shares
$RECYCLE.BIN/

### Archipelago ###
# Ignore debug testing file.
__debug__/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Ignore build output.
types/
dist/
# Windows shortcuts
*.lnk

# Ignore .npmrc
.npmrc
# End of https://www.toptal.com/developers/gitignore/api/windows,macos,linux,intellij+all,node
18 changes: 5 additions & 13 deletions .npmignore
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
7 changes: 6 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
"bracketSpacing": true,
"arrowParens": "always",
"proseWrap": "always",
"endOfLine": "lf"
"endOfLine": "lf",

"importOrder": ["^[./]", "@(.*)$"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderGroupNamespaceSpecifiers": true
}
Loading

0 comments on commit 1601798

Please sign in to comment.