Skip to content

Commit

Permalink
initial commit - dev configs + dev env..
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Jul 13, 2018
1 parent 3a1a16a commit ff178cb
Show file tree
Hide file tree
Showing 12 changed files with 2,413 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mongo": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-irregular-whitespace": [
"error",
{
"skipStrings": true,
"skipComments": true,
"skipRegExps": true,
"skipTemplates": true
}
],
"no-mixed-spaces-and-tabs": [
"error",
"smart-tabs"
],
"no-console": [
"error",
{
"allow": [
"log",
"warn",
"error",
"time",
"timeEnd"
]
}
],
"prefer-const": [
"error"
],
"no-var": [
"error"
],
"no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": true
}
],
"no-case-declarations": [
"error"
]


}
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# this rule is supposed to fix the line break error when converting through git
*.js text eol=lf
Empty file added configs/.gitkeep
Empty file.
Empty file added docs/.gitkeep
Empty file.
36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "splashtoonbot",
"version": "0.1.0",
"description": "Splashtoon bot - handle rss feed and misc",
"author": "KhaaZ#0001",
"license": "ISC",
"dependencies": {
"bluebird": "^3.5.1",
"eris": "^0.8.6",
"mongoose": "^5.2.3",
"pm2": "^3.0.0"
},
"devDependencies": {
"eslint": "^5.1.0",
"yarn": "^1.7.0"
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Khaazz/splashtoonBot.git"
},
"bugs": {
"url": "https://github.com/Khaazz/splashtoonBot/issues"
},
"homepage": "https://github.com/Khaazz/splashtoonBot#readme",
"keywords": [
"bot",
"discord",
"bot",
"eris"
]
}
30 changes: 30 additions & 0 deletions scripts/startStable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
const pm2 = require('pm2');
//

// Start process
console.log('>> Starting SplashtonBot');
pm2.connect(function(err) {
if (err) {
console.error(err);
process.exit(2);
}
pm2.start({
script: 'stableMain.js',
args: [ '--color' ],
name: 'SplashtonBot',
exec_mode : 'fork',
max_memory_restart : '1G',
cwd: 'src/main',
error: '../../logs/Stable/error.err',
output: '../../logs/Stable/output.log',
pid: '../../logs/Stable/pid.pid',
node_args: '-r esm',
autorestart: true,
wait_ready: true,
}, function(err) {
pm2.disconnect();
if (err) throw err;
});
});
//
22 changes: 22 additions & 0 deletions splashtoon-bot.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.insertSpaces": true,
"editor.autoIndent": true,
"editor.tabSize": 4,

"editor.wordWrap": "off",
"files.eol": "\n",

// files
"files.insertFinalNewline": true,

// vsCode eslint support
"eslint.enable": true,
"eslint.autoFixOnSave": true,
}
}
Empty file added src/main/.gitkeep
Empty file.
Empty file added src/modules/.gitkeep
Empty file.
Empty file added template/.gitkeep
Empty file.
Empty file added test/.gitkeep
Empty file.
Loading

0 comments on commit ff178cb

Please sign in to comment.