Skip to content

Commit 1673788

Browse files
Added initial commit.
0 parents  commit 1673788

File tree

13 files changed

+580
-0
lines changed

13 files changed

+580
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[{.jshintrc,*.json,*.yml}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{*.txt,wp-config-sample.php}]
21+
end_of_line = crlf

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Default behavior
2+
* text=auto
3+
4+
# Text files
5+
*.php eol=lf
6+
7+
# Binary files
8+
*.png binary
9+
*.jpg binary
10+
*.gif binary
11+
*.ico binary

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.DS_Store
2+
composer.lock
3+
/node_modules/
4+
/vendor/
5+
/logs/
6+
/reports/
7+
.idea/

LICENSE.md

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Git Contributing
2+
3+
> An awesome collaborative project to teach you the contributor workflow.
4+
5+
This repository is for the [Git Contributing](https://knowthecode.io/labs/git-contributing) hands-on coding lab.

assets/css/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// oh silly, there's nothing to see in here.

assets/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// oh silly, there's nothing to see in here.

assets/scripts/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// oh silly, there's nothing to see in here.

bootstrap.php

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
/**
3+
* Launches the Git Contributing plugin.
4+
*
5+
* @package KnowTheCode\GitContributing
6+
* @author hellofromTonya
7+
* @license GPL-2.0+
8+
*
9+
* @wordpress-plugin
10+
* Plugin Name: Git Contributing
11+
* Plugin URI: https://github.com/KnowTheCode/git-contributing
12+
* Description: Git Contributing - an awesome collaborative project to teach you the contributor workflow.
13+
* Version: 1.0.0
14+
* Author: Git Contributing Team
15+
* Author URI: https://KnowTheCode.io
16+
* Text Domain: git-contributing
17+
* License: GPL-2.0+
18+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
19+
*/
20+
21+
namespace KnowTheCode\GitContributing;
22+
23+
/**
24+
* Gets this plugin's absolute directory path.
25+
*
26+
* @since 1.0.0
27+
* @ignore
28+
* @access private
29+
*
30+
* @return string
31+
*/
32+
function _get_plugin_directory() {
33+
return __DIR__;
34+
}
35+
36+
/**
37+
* Gets this plugin's URL.
38+
*
39+
* @since 1.0.0
40+
* @ignore
41+
* @access private
42+
*
43+
* @return string
44+
*/
45+
function _get_plugin_url() {
46+
static $plugin_url;
47+
48+
if ( empty( $plugin_url ) ) {
49+
$plugin_url = plugins_url( null, __FILE__ );
50+
}
51+
52+
return $plugin_url;
53+
}
54+
55+
/**
56+
* Checks if this plugin is in development mode.
57+
*
58+
* @since 1.0.0
59+
*
60+
* @return bool
61+
*/
62+
function _is_in_development_mode() {
63+
return defined( WP_DEBUG ) && WP_DEBUG === true;
64+
}
65+
66+
/**
67+
* Autoload the plugin's files.
68+
*
69+
* @since 1.0.0
70+
*
71+
* @return void
72+
*/
73+
function autoload_files() {
74+
$files = array(
75+
// add the list of files to load here.
76+
);
77+
78+
foreach ( $files as $file ) {
79+
require __DIR__ . '/src/' . $file;
80+
}
81+
}
82+
83+
/**
84+
* Launch the plugin.
85+
*
86+
* @since 1.0.0
87+
*
88+
* @return void
89+
*/
90+
function launch() {
91+
autoload_files();
92+
}
93+
94+
launch();

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "knowthecode/git-contributing",
3+
"description": "Git Contributing - an awesome collaborative project to teach you the contributor workflow.",
4+
"type": "wordpress-plugin",
5+
"license": "GPL-2.0+",
6+
"support": {
7+
"issues": "https://github.com/KnowTheCode/git-contributing/issues",
8+
"source": "https://github.com/KnowTheCode/git-contributing"
9+
},
10+
"minimum-stability": "dev",
11+
"prefer-stable": true,
12+
"autoload": {
13+
"exclude-from-classmap": [
14+
"/tests/"
15+
]
16+
},
17+
"config": {
18+
"sort-order": true
19+
}
20+
}

0 commit comments

Comments
 (0)