Skip to content

Commit afa307c

Browse files
author
Joshua Simmons
committed
initial commit
0 parents  commit afa307c

File tree

220 files changed

+25001
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+25001
-0
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:10.15.1
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run prettier formatting check
37+
- run: yarn prettier
38+
# run linter
39+
- run: yarn lint
40+
# run tests!
41+
- run: yarn test

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
################################################
2+
# ╔═╗╔╦╗╦╔╦╗╔═╗╦═╗┌─┐┌─┐┌┐┌┌─┐┬┌─┐
3+
# ║╣ ║║║ ║ ║ ║╠╦╝│ │ ││││├┤ ││ ┬
4+
# o╚═╝═╩╝╩ ╩ ╚═╝╩╚═└─┘└─┘┘└┘└ ┴└─┘
5+
#
6+
# > Formatting conventions for your Sails app.
7+
#
8+
# This file (`.editorconfig`) exists to help
9+
# maintain consistent formatting throughout the
10+
# files in your Sails app.
11+
#
12+
# For the sake of convention, the Sails team's
13+
# preferred settings are included here out of the
14+
# box. You can also change this file to fit your
15+
# team's preferences (for example, if all of the
16+
# developers on your team have a strong preference
17+
# for tabs over spaces),
18+
#
19+
# To review what each of these options mean, see:
20+
# http://editorconfig.org/
21+
#
22+
################################################
23+
root = true
24+
25+
[*]
26+
indent_style = space
27+
indent_size = 4
28+
end_of_line = lf
29+
charset = utf-8
30+
trim_trailing_whitespace = true
31+
insert_final_newline = true
32+
quote_type = single

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
assets/dependencies/**/*.js
2+
tasks
3+
views/**/*.ejs

.eslintrc

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
3+
// ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
4+
// o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
5+
// A set of basic code conventions (similar to a .jshintrc file) designed to
6+
// encourage quality and consistency across your Sails app's code base.
7+
// These rules are checked against automatically any time you run `npm test`.
8+
//
9+
// > An additional eslintrc override file is included in the `assets/` folder
10+
// > right out of the box. This is specifically to allow for variations in acceptable
11+
// > global variables between front-end JavaScript code designed to run in the browser
12+
// > vs. backend code designed to run in a Node.js/Sails process.
13+
//
14+
// > Note: If you're using mocha, you'll want to add an extra override file to your
15+
// > `test/` folder so that eslint will tolerate mocha-specific globals like `before`
16+
// > and `describe`.
17+
// Designed for ESLint v4.
18+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19+
// For more information about any of the rules below, check out the relevant
20+
// reference page on eslint.org. For example, to get details on "no-sequences",
21+
// you would visit `http://eslint.org/docs/rules/no-sequences`. If you're unsure
22+
// or could use some advice, come by https://sailsjs.com/support.
23+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24+
25+
"extends": ["eslint:recommended", "prettier/@typescript-eslint"],
26+
27+
"env": {
28+
"node": true
29+
},
30+
31+
"parserOptions": {
32+
"ecmaVersion": 9
33+
},
34+
35+
"globals": {
36+
// If "no-undef" is enabled below, be sure to list all global variables that
37+
// are used in this app's backend code (including the globalIds of models):
38+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39+
"Promise": true,
40+
"sails": true,
41+
"_": true,
42+
"async": true
43+
// …and any others (e.g. `"Organization": true`)
44+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
45+
},
46+
47+
"rules": {
48+
"callback-return": [
49+
"error",
50+
["done", "proceed", "next", "onwards", "callback", "cb"]
51+
],
52+
"comma-style": ["warn", "last"],
53+
"curly": ["error"],
54+
"eqeqeq": ["error", "always"],
55+
"eol-last": ["warn"],
56+
"handle-callback-err": ["error"],
57+
"indent": [
58+
"error",
59+
4,
60+
{
61+
"SwitchCase": 1,
62+
"MemberExpression": "off",
63+
"FunctionDeclaration": { "body": 1, "parameters": "off" },
64+
"FunctionExpression": { "body": 1, "parameters": "off" },
65+
"CallExpression": { "arguments": "off" },
66+
"ArrayExpression": 1,
67+
"ObjectExpression": 1,
68+
"ignoredNodes": ["ConditionalExpression"]
69+
}
70+
],
71+
"linebreak-style": ["error", "unix"],
72+
"no-console": "off",
73+
"no-dupe-keys": ["error"],
74+
"no-duplicate-case": ["error"],
75+
"no-extra-semi": ["error"],
76+
"no-labels": ["error"],
77+
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
78+
"no-redeclare": ["error"],
79+
"no-return-assign": ["error", "always"],
80+
"no-sequences": ["error"],
81+
"no-trailing-spaces": ["error"],
82+
"no-undef": ["off"],
83+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
84+
// ^^Note: If this "no-undef" rule is enabled (set to `["error"]`), then all model globals
85+
// (e.g. `"Organization": true`) should be included above under "globals".
86+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
87+
"no-unexpected-multiline": ["error"],
88+
"no-unreachable": ["error"],
89+
"no-unused-vars": [
90+
"error",
91+
{
92+
"caughtErrors": "all",
93+
"caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)",
94+
"argsIgnorePattern": "^unused($|[A-Z].*$)",
95+
"varsIgnorePattern": "^unused($|[A-Z].*$)"
96+
}
97+
],
98+
"no-use-before-define": ["error", { "functions": false }],
99+
"one-var": ["error", "never"],
100+
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
101+
"semi": ["error", "always"],
102+
"semi-spacing": ["error", { "before": false, "after": true }],
103+
"semi-style": ["error", "last"]
104+
}
105+
}

.gitignore

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
################################################
2+
# ┌─┐┬┌┬┐╦╔═╗╔╗╔╔═╗╦═╗╔═╗
3+
# │ ┬│ │ ║║ ╦║║║║ ║╠╦╝║╣
4+
# o└─┘┴ ┴ ╩╚═╝╝╚╝╚═╝╩╚═╚═╝
5+
#
6+
# > Files to exclude from your app's repo.
7+
#
8+
# This file (`.gitignore`) is only relevant if
9+
# you are using git.
10+
#
11+
# It exists to signify to git that certain files
12+
# and/or directories should be ignored for the
13+
# purposes of version control.
14+
#
15+
# This keeps tmp files and sensitive credentials
16+
# from being uploaded to your repository. And
17+
# it allows you to configure your app for your
18+
# machine without accidentally committing settings
19+
# which will smash the local settings of other
20+
# developers on your team.
21+
#
22+
# Some reasonable defaults are included below,
23+
# but, of course, you should modify/extend/prune
24+
# to fit your needs!
25+
#
26+
################################################
27+
28+
29+
################################################
30+
# Local Configuration
31+
#
32+
# Explicitly ignore files which contain:
33+
#
34+
# 1. Sensitive information you'd rather not push to
35+
# your git repository.
36+
# e.g., your personal API keys or passwords.
37+
#
38+
# 2. Developer-specific configuration
39+
# Basically, anything that would be annoying
40+
# to have to change every time you do a
41+
# `git pull` on your laptop.
42+
# e.g. your local development database, or
43+
# the S3 bucket you're using for file uploads
44+
# during development.
45+
#
46+
################################################
47+
48+
config/local.js
49+
50+
51+
################################################
52+
# Dependencies
53+
#
54+
#
55+
# When releasing a production app, you _could_
56+
# hypothetically include your node_modules folder
57+
# in your git repo, but during development, it
58+
# is always best to exclude it, since different
59+
# developers may be working on different kernels,
60+
# where dependencies would need to be recompiled
61+
# anyway.
62+
#
63+
# Most of the time, the node_modules folder can
64+
# be excluded from your code repository, even
65+
# in production, thanks to features like the
66+
# package-lock.json file / NPM shrinkwrap.
67+
#
68+
# But no matter what, since this is a Sails app,
69+
# you should always push up the package-lock.json
70+
# or shrinkwrap file to your repository, to avoid
71+
# accidentally pulling in upgraded dependencies
72+
# and breaking your code.
73+
#
74+
# That said, if you are having trouble with
75+
# dependencies, (particularly when using
76+
# `npm link`) this can be pretty discouraging.
77+
# But rather than just adding the lockfile to
78+
# your .gitignore, try this first:
79+
# ```
80+
# rm -rf node_modules
81+
# rm package-lock.json
82+
# npm install
83+
# ```
84+
#
85+
# [?] For more tips/advice, come by and say hi
86+
# over at https://sailsjs.com/support
87+
#
88+
################################################
89+
90+
node_modules
91+
92+
93+
################################################
94+
#
95+
# > Do you use bower?
96+
# > re: the bower_components dir, see this:
97+
# > http://addyosmani.com/blog/checking-in-front-end-dependencies/
98+
# > (credit Addy Osmani, @addyosmani)
99+
#
100+
################################################
101+
102+
103+
################################################
104+
# Temporary files generated by Sails/Waterline.
105+
################################################
106+
107+
.tmp
108+
109+
110+
################################################
111+
# Miscellaneous
112+
#
113+
# Common files generated by text editors,
114+
# operating systems, file systems, dbs, etc.
115+
################################################
116+
117+
*~
118+
*#
119+
.DS_STORE
120+
.netbeans
121+
nbproject
122+
.idea
123+
.node_history
124+
dump.rdb
125+
.env
126+
npm-debug.log
127+
lib-cov
128+
*.seed
129+
*.log
130+
*.out
131+
*.pid
132+
*.pem

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
yarn.lock
2+
assets/dependencies/**/*.js
3+
views
4+
tasks/
5+
README.md
6+
api/policies/isGithubAuth.js
7+
api/actions/createWorkItem.js
8+
.tmp/

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"singleQuote": true,
3+
"overrides": [
4+
{
5+
"files": "*.ejs",
6+
"options": { "parser": "html" }
7+
},
8+
{ "files": "*.md", "options": { "tabWidth": 1 } }
9+
]
10+
}

.sailsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"generators": {
3+
"modules": {}
4+
},
5+
"_generatedWith": {
6+
"sails": "1.0.2",
7+
"sails-generate": "1.15.28"
8+
}
9+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Debug Node",
11+
"program": "${workspaceFolder}/app.js",
12+
"env": { "NODE_ENV": "development" }
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

0 commit comments

Comments
 (0)