Skip to content

Commit 14dd7e1

Browse files
Revert "script"
This reverts commit 30b389b.
1 parent 30b389b commit 14dd7e1

File tree

15 files changed

+5051
-94
lines changed

15 files changed

+5051
-94
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docs/ @vtex-apps/technical-writers
2+
messages/ @vtex-apps/localization
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
---
5+
6+
**Describe the bug**
7+
A clear and concise description of what the bug is.
8+
9+
**To Reproduce**
10+
Steps to reproduce the behavior:
11+
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
---
5+
6+
**Is your feature request related to a problem? Please describe.**
7+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
8+
9+
**Describe the solution you'd like**
10+
A clear and concise description of what you want to happen.
11+
12+
**Describe alternatives you've considered**
13+
A clear and concise description of any alternative solutions or features you've considered.
14+
15+
**Additional context**
16+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#### What problem is this solving?
2+
3+
<!--- What is the motivation and context for this change? -->
4+
5+
#### How to test it?
6+
7+
<!--- Don't forget to add a link to a Workspace where this branch is linked -->
8+
9+
[Workspace](Link goes here!)
10+
11+
#### Screenshots or example usage:
12+
13+
<!--- Add some images or gifs to showcase changes in behaviour or layout. Example: before and after images -->
14+
15+
#### Describe alternatives you've considered, if any.
16+
17+
<!--- Optional -->
18+
19+
#### Related to / Depends on
20+
21+
<!--- Optional -->
22+
23+
#### How does this PR make you feel? [:link:](http://giphy.com/)
24+
25+
<!-- Go to http://giphy.com/ and pick a gif that represents how this PR makes you feel -->
26+
27+
![](put .gif link here - can be found under "advanced" on giphy)

.github/workflows/danger.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Danger actions
2+
'on':
3+
pull_request:
4+
types: [opened, edited, reopened, synchronize, assigned, unassigned, review_requested, review_request_removed]
5+
jobs:
6+
danger-ci:
7+
name: Danger CI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- uses: actions/setup-node@master
12+
with:
13+
node-version: 12.x
14+
env:
15+
RUNNER_TEMP: /tmp
16+
- name: yarn install
17+
run: yarn install
18+
- name: Danger CI
19+
uses: vtex/danger@master
20+
env:
21+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
22+
REQUIRE_CHANGELOG_VERSION: false

.github/workflows/pull-request.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: IO actions
2+
'on':
3+
pull_request:
4+
jobs:
5+
io-app-test:
6+
name: IO app test
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- uses: actions/setup-node@master
11+
with:
12+
node-version: 12.x
13+
env:
14+
RUNNER_TEMP: /tmp
15+
- name: Get yarn cache directory path
16+
id: yarn-cache-dir-path
17+
run: 'echo "::set-output name=dir::$(yarn cache dir)"'
18+
- uses: actions/cache@v1
19+
id: yarn-cache
20+
with:
21+
path: '${{ steps.yarn-cache-dir-path.outputs.dir }}'
22+
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
25+
- name: Run test on every builder directory
26+
uses: vtex/action-io-app-test@master
27+
lint:
28+
name: Lint
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@master
32+
- uses: actions/setup-node@master
33+
with:
34+
node-version: 12.x
35+
env:
36+
RUNNER_TEMP: /tmp
37+
- name: Get yarn cache directory path
38+
id: yarn-cache-dir-path
39+
run: 'echo "::set-output name=dir::$(yarn cache dir)"'
40+
- uses: actions/cache@v1
41+
id: yarn-cache
42+
with:
43+
path: '${{ steps.yarn-cache-dir-path.outputs.dir }}'
44+
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
45+
restore-keys: |
46+
${{ runner.os }}-yarn-
47+
- name: Lint project
48+
uses: vtex/action-lint@master

manifest.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
2-
"vendor": "fabricasunidas",
3-
"name": "metatags",
4-
"version": "1.0.0",
5-
"title": "MetaTags",
2+
"vendor": "CHANGE_ME",
3+
"name": "CHANGE_ME",
4+
"version": "0.0.0",
5+
"title": "CHANGE_ME",
66
"description": "CHANGE_ME",
77
"builders": {
88
"react": "3.x",
99
"messages": "1.x",
10-
"docs": "0.x",
11-
"store": "0.x"
12-
},
13-
"dependencies": {
14-
"vtex.styleguide": "9.x"
10+
"docs": "0.x"
1511
},
12+
"dependencies": {},
1613
"registries": [
1714
"smartcheckout"
1815
],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "1.0.0",
3-
"name": "metatags",
2+
"version": "0.0.0",
3+
"name": "CHANGE_ME",
44
"private": true,
55
"license": "UNLICENSED",
66
"scripts": {
@@ -42,4 +42,4 @@
4242
"typescript": "^3.9.6",
4343
"@vtex/danger": "^0.2.7"
4444
}
45-
}
45+
}

react/Greeting.test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import { render } from '@vtex/test-tools/react'
3+
4+
import Greeting from './Greeting'
5+
6+
test('greets Fred', () => {
7+
const { queryByText } = render(<Greeting name="Fred" />)
8+
9+
expect(queryByText('Hey, Fred')).toBeInTheDocument()
10+
})

react/Greeting.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
3+
type Props = {
4+
name: string
5+
}
6+
7+
function Greeting({ name }: Props) {
8+
return <div>Hey, {name}</div>
9+
}
10+
11+
export default Greeting

0 commit comments

Comments
 (0)