Skip to content

Commit

Permalink
chore(restructure/git): Add .gitattributes etc. from skeleton-module
Browse files Browse the repository at this point in the history
Removed useless directories
Made crossplatform with gitattributes and dos2unix
Added new CMakeFile
.editorconfig
.gitignore
  • Loading branch information
BarbzYHOOL committed Feb 18, 2019
1 parent 411fa45 commit 2828e5e
Show file tree
Hide file tree
Showing 14 changed files with 1,531 additions and 1,317 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*]
charset = utf-8
indent_style = space
indent_size = 4
tab_width = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
49 changes: 49 additions & 0 deletions .git_commit_template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
### TITLE
## Type(Scope/Subscope): Commit ultra short explanation
## |---- Write below the examples with a maximum of 50 characters ----|
## Example 1: fix(DB/SAI): Missing spell to NPC Hogger
## Example 2: fix(CORE/Raid): Phase 2 of Ragnaros
## Example 3: feat(CORE/Commands): New GM command to do something


### DESCRIPTION
## Explain why this change is being made, what does it fix etc...
## |---- Write below the examples with a maximum of 72 characters per lines ----|
## Example: Hogger (id: 492) was not charging player when being engaged.


## Provide links to any issue, commit, pull request or other resource
## Example 1: Closes issue #23
## Example 2: Ported from other project's commit (link)
## Example 3: References taken from wowpedia / wowhead / wowwiki / https://wowgaming.altervista.org/aowow/



## =======================================================
## EXTRA INFOS
## =======================================================
## "Type" can be:
## feat (new feature)
## fix (bug fix)
## refactor (refactoring production code)
## style (formatting, missing semi colons, etc; no code change)
## docs (changes to documentation)
## test (adding or refactoring tests; no production code change)
## chore (updating bash scripts, git files etc; no production code change)
## --------------------
## Remember to
## Capitalize the subject line
## Use the imperative mood in the subject line
## Do not end the subject line with a period
## Separate subject from body with a blank line
## Use the body to explain what and why rather than how
## Can use multiple lines with "-" for bullet points in body
## --------------------
## More info here https://www.conventionalcommits.org/en/v1.0.0-beta.2/
## =======================================================
## "Scope" can be:
## CORE (core related, c++)
## DB (database related, sql)
## =======================================================
## "Subscope" is optional and depends on the nature of the commit.
## =======================================================
105 changes: 105 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
## AUTO-DETECT
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto eol=lf

# Text
*.conf text
*.conf.dist text
*.cmake text

## Scripts
*.sh text
*.fish text
*.lua text

## SQL
*.sql text

## C++
*.c text
*.cc text
*.cxx text
*.cpp text
*.c++ text
*.hpp text
*.h text
*.h++ text
*.hh text


## For documentation

# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

## DOCUMENTATION
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

## GRAPHICS
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary


## ARCHIVES
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

## EXECUTABLES
*.exe binary
*.pyc binary
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
!.gitignore

#
#Generic
#

.directory
.mailmap
*.orig
*.rej
*.*~
.hg/
*.kdev*
.DS_Store
CMakeLists.txt.user
*.bak
*.patch
*.diff
*.REMOTE.*
*.BACKUP.*
*.BASE.*
*.LOCAL.*

#
# IDE & other softwares
#
/.settings/
/.externalToolBuilders/*
# exclude in all levels
nbproject/
.sync.ffs_db
*.kate-swp

#
# Eclipse
#
*.pydevproject
.metadata
.gradle
tmp/
*.tmp
*.swp
*~.nib
local.properties
.settings/
.loadpath
.project
.cproject
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/MyPlayer.cpp")
AC_ADD_SCRIPT_LOADER("MyPlayer" "${CMAKE_CURRENT_LIST_DIR}/src/loader.h")

AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/my_custom.conf.dist")
18 changes: 9 additions & 9 deletions module/TemplateNPC/conf/conf.sh.dist → conf/conf.sh.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

#
# CUSTOM
#

DB_WORLD_CUSTOM_PATHS+=(
$TEMPLATENPC_ROOT"/data/sql/db-characters/"
)
#!/usr/bin/env bash

#
# CUSTOM
#

DB_WORLD_CUSTOM_PATHS+=(
$TEMPLATENPC_ROOT"/data/sql/db-characters/"
)
18 changes: 9 additions & 9 deletions module/TemplateNPC/include.sh → include.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

TEMPLATENPC_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"

source $TEMPLATENPC_ROOT"/conf/conf.sh.dist"

if [ -f $TEMPLATENPC_ROOT"/conf/conf.sh" ]; then
source $TEMPLATENPC_ROOT"/conf/conf.sh"
fi
#!/usr/bin/env bash

TEMPLATENPC_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"

source $TEMPLATENPC_ROOT"/conf/conf.sh.dist"

if [ -f $TEMPLATENPC_ROOT"/conf/conf.sh" ]; then
source $TEMPLATENPC_ROOT"/conf/conf.sh"
fi
4 changes: 0 additions & 4 deletions module/TemplateNPC/CMakeLists.txt

This file was deleted.

4 changes: 4 additions & 0 deletions setup_git_commit_template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

## Set a local git commit template
git config --local commit.template ".git_commit_template.txt" ;
File renamed without changes.
10 changes: 5 additions & 5 deletions module/TemplateNPC/src/CMakeLists.txt → src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CU_SET_PATH("CMAKE_TEMPLATE_SRC_DIR" "${CMAKE_CURRENT_LIST_DIR}")

AC_ADD_SCRIPT("${CMAKE_TEMPLATE_SRC_DIR}/TemplateNPC.cpp")
AC_ADD_SCRIPT("${CMAKE_TEMPLATE_SRC_DIR}/TemplateNPC.h")

CU_SET_PATH("CMAKE_TEMPLATE_SRC_DIR" "${CMAKE_CURRENT_LIST_DIR}")

AC_ADD_SCRIPT("${CMAKE_TEMPLATE_SRC_DIR}/TemplateNPC.cpp")
AC_ADD_SCRIPT("${CMAKE_TEMPLATE_SRC_DIR}/TemplateNPC.h")

AC_ADD_SCRIPT_LOADER("Template" "${CMAKE_TEMPLATE_SRC_DIR}/template_scripts_loader.h")
Loading

0 comments on commit 2828e5e

Please sign in to comment.