Skip to content

Commit 0100ffd

Browse files
committed
Initial Commit
0 parents  commit 0100ffd

Some content is hidden

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

47 files changed

+1352
-0
lines changed

.circleci/config.yml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
aliases:
2+
- &yarn
3+
yarn install --non-interactive --cache-folder ~/.cache/yarn
4+
5+
- &restore-yarn-cache
6+
restore-cache:
7+
keys:
8+
- yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
9+
# Fallback in case checksum fails
10+
- yarn-{{ .Branch }}-
11+
12+
- &save-yarn-cache
13+
savw-cache:
14+
paths:
15+
- node_modules
16+
- ~/.cache/yarn
17+
key: yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
18+
19+
- &filter-only-master
20+
branches:
21+
only:
22+
- master
23+
24+
- &filter-ignore-gh-pages
25+
branches:
26+
ignore: gh-pages
27+
28+
- &defaults
29+
working_directory: ~/cucumber-extended
30+
docker:
31+
- image: circleci/node:10
32+
33+
version: 2
34+
35+
description: |
36+
CircleCI Config for Cucumber Extended Sublime Text 3 Plugin
37+
38+
jobs:
39+
checkout_code:
40+
<<: *defaults
41+
steps:
42+
- checkout
43+
- *restore-yarn-cache
44+
- run: yarn install
45+
- *save-yarn-cache
46+
- persist_to_workspace:
47+
root: .
48+
paths:
49+
- .
50+
test:
51+
<<: *defaults
52+
steps:
53+
- run:
54+
name: Running Plugin Tests
55+
command: |
56+
yarn lint:plugin
57+
yarn prettier:plugin
58+
yarn test:plugin
59+
60+
- run:
61+
name: Running Site Tests
62+
command: |
63+
yarn lint:site
64+
yarn prettier:site
65+
yarn test:site
66+
build:
67+
<<: *defaults
68+
steps:
69+
- run:
70+
name: Building
71+
command: |
72+
yarn build:site:prod
73+
workflows:
74+
version: 2
75+
production:
76+
jobs:
77+
- checkout_code
78+
- test:
79+
requires:
80+
- checkout_code
81+
- build:
82+
requires:
83+
- test

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitattributes

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
* text eol=lf
4+
5+
# Don't do anything with binaries
6+
*.png binary
7+
*.jpg binary
8+
*.svg binary
9+
*.jpeg binary
10+
*.gif binary
11+
*.ico binary
12+
*.mov binary
13+
*.mp4 binary
14+
*.mp3 binary
15+
*.flv binary
16+
*.fla binary
17+
*.swf binary
18+
*.gz binary
19+
*.zip binary
20+
*.7z binary
21+
*.ttf binary
22+
*.eot binary
23+
*.woff binary
24+
*.pyc binary
25+
*.pdf binary
26+
*.ez binary
27+
*.bz2 binary
28+
*.swp binary
29+
*.webp binary
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Feature Request
2+
@thecodechef
3+
4+
### Requirements
5+
6+
>
7+
Title must be prefixed with: `[Feature Request]: Issue Title Here`.
8+
Labels must include `feature-requests` with `gherkin` or `cucumber`.
9+
10+
---
11+
### What is the Feature Request?
12+
13+
---
14+
### How will this help this repo?
15+
16+
---
17+
### Will this introduce breaking changes?
18+
19+
---
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Feature Request
2+
3+
### Tests
4+
5+
> Did you run any tests Yes/No?
6+
7+
if Yes & errors occured then list them here
8+
each error must be prefixed with `- :broken_heart: **Error:**`
9+
10+
- :broken_heart: **Error:** What Type of error - Short descrption of the error.
11+
__any screenshots or gif of the error output would be put underneath each item__
12+
13+
if No then rerun your tests then do the above example.
14+
15+
if there are no errors with your tests then all good.
16+
17+
**_To run your Tests_**
18+
- Install `Package Control` & `PackageDev` packages
19+
- Make sure the first line in `syntax_test_gherkin.feature` is `# SYNTAX TEST "Packages/Cucumber Extended/Syntaxes/Gherkin (Features).sublime-syntax"`
20+
- Make sure the first line in `syntax_test_cucumber.feature` is `# SYNTAX TEST "Packages/Cucumber Extended/Syntaxes/Cucumber (Features).sublime-syntax"`
21+
- Simply `Tools>Build System>Syntax Tests`
22+
- Then `Ctrl+B`
23+
24+
### Fixes
25+
26+
> each line must be prefixed with `- :green_heart: **Fixed:**`
27+
28+
- :green_heart: **Fixed:** What you fixed? - Fixes `#issue_number`
29+
30+
### Additions
31+
32+
> each line must be prefixed with `- :heart: **Added:**`
33+
34+
- :heart: **Added:** What you added?
35+
36+
### Notes & Questions
37+
38+
> if your making a note each line must be prefixed with `- :blue_heart: **Note:**`
39+
> if your asking a question each line must be prefixed with `- :purple_heart: **Question:**`
40+
41+
- :blue_heart: **Note:** Anything you like to say?
42+
- :purple_heart: **Question:** Anything you like to ask?
43+
44+
45+
46+
---

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
*.cache
2+
*.pyc
3+
4+
/.cache
5+
/node_modules
6+
/scripts/release/node_modules
7+
*.log
8+
/errors
9+
/test.js
10+
/test.ts
11+
/test.css
12+
/.vscode
13+
/dist
14+
/website/node_modules
15+
/website/build
16+
/website/i18n
17+
/website/static/playground.js
18+
/website/static/lib
19+
.DS_Store
20+
coverage
21+
.idea
22+
package-lock.json
23+
/test-results
24+

.prettierrc

Whitespace-only changes.

Base File.sublime-settings

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Delimiters between two cells of the table
3+
"table_cleaner_delimiters": ["|", "\\\\"],
4+
5+
// Align the text of each cell to middle (if set to false, the text will be
6+
// alligned to left)
7+
"table_cleaner_align_to_middle": false,
8+
9+
// The number of whitespaces between the text of a cell and the delimiters
10+
"table_cleaner_delimiter_spaces": 1,
11+
12+
// The separator inserted when formatting a table imported from a website
13+
"table_import_separator": "|",
14+
15+
// Append a separator at the beginning and the end of each line when
16+
// importing a table from an external website.
17+
"table_import_sorround_with_separator": true
18+
}

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# CHANGELOG
2+
3+
## [1.0.0]
4+
5+
## Unreleased
6+
7+
- initial Commit
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+

Comments.tmPreferences

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>name</key>
6+
<string>Comments</string>
7+
<key>scope</key>
8+
<string>text.cucumber.gherkin.feature</string>
9+
<key>settings</key>
10+
<dict>
11+
<key>shellVariables</key>
12+
<array>
13+
<dict>
14+
<key>name</key>
15+
<string>TM_COMMENT_START</string>
16+
<key>value</key>
17+
<string># </string>
18+
</dict>
19+
<dict>
20+
<key>name</key>
21+
<string>TM_COMMENT_START_2</string>
22+
<key>value</key>
23+
<string>=begin
24+
</string>
25+
</dict>
26+
<dict>
27+
<key>name</key>
28+
<string>TM_COMMENT_END_2</string>
29+
<key>value</key>
30+
<string>=end</string>
31+
</dict>
32+
</array>
33+
</dict>
34+
<key>uuid</key>
35+
<string>98793a40-e7e7-473a-89ad-74d872ad3a3b</string>
36+
</dict>
37+
</plist>
38+

Dangerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
project = github.api.
2+
maintainer = "thecodechef"
3+
4+
def warn_if_wip()
5+
if github.pr_title.include? "[WIP]: "
6+
warn <<-MSG
7+
### This PR is a [Work in Progess]
8+
9+
> Please keep in mind this is PR a [WIP] and is subject to change in the future.
10+
If you do not mind this then download away.
11+
MSG
12+
end
13+
end
14+
15+
if git.modified_files.include? [%r{^(\.(github|circleci)|(Gem|Guard|Danger)file)/(.+)$}]
16+
github_files = git.modified_files.select { |path| path.include? ".github/*" }
17+
circleci_files = git.modified_files.select { |path| path.include? ".circleci/*" }
18+
ruby_files = git.modified_files.select { |path| path.include? %r{^(Gem|Guard|Danger)file$} }
19+
danger_files = [github_files,circleci_files,ruby_files,"TODO.md",%r{table_(.+).py}]
20+
21+
warn <<-WARNING
22+
> This PR changes these files:
23+
24+
#{ github.html_link(danger_files){ |f| "- #{f}" }}
25+
26+
Please **DO NOT CHANGE** these files unless you have a good reason to.
27+
If you do then comment your reason below
28+
Thank You very Much
29+
WARNING
30+
end
31+
32+
warn_if_wip()

Default (Linux).sublime-keymap

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[
2+
{
3+
"keys": ["alt+;"],
4+
"command": "table_cleaner",
5+
"context": [
6+
{
7+
"key": "selector",
8+
"operator": "equal",
9+
"operand": "source.ruby.rspec.cucumber.steps,text.gherkin.feature"
10+
}
11+
]
12+
},
13+
{
14+
"keys": ["alt+shift+;"],
15+
"command": "table_import",
16+
"context": [
17+
{
18+
"key": "selector",
19+
"operator": "equal",
20+
"operand": "source.ruby.rspec.cucumber.steps,text.gherkin.feature"
21+
}
22+
]
23+
}
24+
]

Default (OSX).sublime-keymap

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[
2+
{
3+
"keys": ["alt+;"],
4+
"command": "table_cleaner",
5+
"context": [
6+
{
7+
"key": "selector",
8+
"operator": "equal",
9+
"operand": "source.ruby.rspec.cucumber.steps,text.gherkin.feature"
10+
}
11+
]
12+
},
13+
{
14+
"keys": ["alt+shift+;"],
15+
"command": "table_import",
16+
"context": [
17+
{
18+
"key": "selector",
19+
"operator": "equal",
20+
"operand": "source.ruby.rspec.cucumber.steps,text.gherkin.feature"
21+
}
22+
]
23+
}
24+
]

0 commit comments

Comments
 (0)