Skip to content

Commit aeb08aa

Browse files
authored
Merge pull request #333 from wuda-io/improve-gruntfile
Improve gruntfile
2 parents 84a4547 + 19ad03f commit aeb08aa

File tree

82 files changed

+30455
-13568
lines changed

Some content is hidden

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

82 files changed

+30455
-13568
lines changed

.all-contributorsrc

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

.commitlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: materialize # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Bug Report
2+
description: Report an issue with Materialize.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: checkboxes
7+
id: terms
8+
attributes:
9+
label: Before submitting...
10+
options:
11+
- label: I have searched for [duplicate or closed issues](https://github.com/materializecss/materialize/issues?utf8=%E2%9C%93&q=is%3Aissue).
12+
required: true
13+
- label: I have read the [CONTRIBUTING document](https://github.com/materializecss/materialize/blob/master/CONTRIBUTING.md) and my issue is following the guidelines.
14+
required: true
15+
- label: I have read the template completely before filling it in.
16+
required: true
17+
- type: textarea
18+
id: context
19+
attributes:
20+
label: Context
21+
description: A short summarry of the issue + how has this issue affected you? What are you trying to accomplish?
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: current
26+
attributes:
27+
label: Current Behavior
28+
description: Tell us in detail about what the bug does.
29+
placeholder: What happened?
30+
validations:
31+
required: false
32+
- type: textarea
33+
id: expected
34+
attributes:
35+
label: Expected behavior
36+
description: Tell us in detail what should happen instead.
37+
placeholder: Instead of the previous behavior, the application should do/display...
38+
validations:
39+
required: false
40+
- type: textarea
41+
id: posible-solutions
42+
attributes:
43+
label: Possible Solutions or Causes
44+
description: Not obligatory, but suggest a fix/reason for the bug, or ideas on how to implement the addition or change.
45+
placeholder: Eg. "I think this bug is due do [that piece of code] in the file [xxx]" or "I think we should do [something] to solve this issue."
46+
validations:
47+
required: false
48+
- type: textarea
49+
id: reproduce
50+
attributes:
51+
label: Steps to reproduce
52+
description: |
53+
If relevant, give a set of steps to reproduce this bug.
54+
We encourage you a live example that demonstrates the bug (you may want to use the [following jsfiddle template](https://jsfiddle.net/1es0zhaf/))
55+
placeholder: |
56+
1. Open this link
57+
2. Click there
58+
3. This appears, but...
59+
validations:
60+
required: false
61+
- type: textarea
62+
id: environment
63+
attributes:
64+
label: Your Environment
65+
description: Include as many relevant details about the environment you experienced the bug in.
66+
value: |
67+
* Version used:
68+
* Browser Name and version:
69+
* Operating System and version (desktop or mobile):
70+
* Additional information you want to tell us:
71+
validations:
72+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true;
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Improvement
2+
description: Enhancement, new feature proposal, typo in documentation, etc.
3+
body:
4+
- type: checkboxes
5+
id: terms
6+
attributes:
7+
label: Before submitting...
8+
options:
9+
- label: I have searched for [duplicate or closed issues](https://github.com/materializecss/materialize/issues?utf8=%E2%9C%93&q=is%3Aissue).
10+
required: true
11+
- label: I have read the [CONTRIBUTING document](https://github.com/materializecss/materialize/blob/master/CONTRIBUTING.md) and my issue is following the guidelines.
12+
required: true
13+
- label: I have read the template completely before filling it in.
14+
required: true
15+
- type: textarea
16+
id: context
17+
attributes:
18+
label: Context
19+
description: A short summarry of the issue + how has this issue affected you? What are you trying to accomplish?
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: current
24+
attributes:
25+
label: Current Behavior
26+
description: Tell us in detail about what's happening. We encourage you to link references or upload concept images/screenshots.
27+
validations:
28+
required: false
29+
- type: textarea
30+
id: expected
31+
attributes:
32+
label: Expected behavior
33+
description: Tell us in detail what we should fix.
34+
validations:
35+
required: false
36+
- type: textarea
37+
id: posible-solutions
38+
attributes:
39+
label: Possible Solutions or Causes
40+
description: Not obligatory, but suggest a fix/reason for this issue, or ideas on how to implement the addition or change.
41+
validations:
42+
required: false
43+
- type: textarea
44+
id: environment
45+
attributes:
46+
label: Your Environment
47+
description: If relevant and possible, include as many relevant details about the environment you experienced the issue in.
48+
value: |
49+
* Version used:
50+
* Browser Name and version:
51+
* Operating System and version (desktop or mobile):
52+
* Additional information you want to tell us:
53+
validations:
54+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- Go over all the following points, and put an `x` in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
1616

1717
- [ ] I have read the **[CONTRIBUTING document](https://github.com/materializecss/materialize/blob/main/CONTRIBUTING.md)**.
18-
- [ ] My change requires a change to the documentation.
19-
- [ ] I have updated the documentation accordingly.
18+
- [ ] My commit messages follows the [conventional commit format](https://github.com/materializecss/materialize/blob/main/CONTRIBUTING.md#submitting-your-pull-request)
19+
- [ ] My change requires a change to the documentation, and updated it accordingly.
2020
- [ ] I have added tests to cover my changes.
2121
- [ ] All new and existing tests passed.

.github/workflows/docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Docs
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- main
@@ -10,6 +11,27 @@ jobs:
1011
steps:
1112
- uses: actions/checkout@master
1213

14+
- uses: actions/setup-node@v2
15+
- name: Add Missing Contributors
16+
env:
17+
PRIVATE_TOKEN: ${{ github.token }}
18+
run: |
19+
yarn add all-contributors-cli
20+
# Fetch Contributors and Add them
21+
CONTRIBUTORS="$(yarn all-contributors check)"
22+
CONTRIBUTORS=$(echo $CONTRIBUTORS | sed -E 's/^.*all-contributors check//g' | sed -E 's/Missing contributors in .all-contributorsrc: //g' | sed -E 's/Unknown contributors.*//g' | sed -E 's/Done in.*//g' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed -E 's/\,//g')
23+
# Add Contributors (code)
24+
if [ -z $CONTRIBUTORS ]; then
25+
echo "Everyone has been awarded credits! :D"
26+
else
27+
echo "Adding Contributors $CONTRIBUTORS"
28+
echo $CONTRIBUTORS | xargs -d " " -I '{}' yarn all-contributors add {} code
29+
fi
30+
31+
- name: Generate Contributors Table
32+
run: |
33+
yarn all-contributors generate
34+
1335
- name: Generate docs
1436
run: |
1537
npm i

.husky/commit-msg

100644100755
File mode changed.

0 commit comments

Comments
 (0)