Skip to content

Commit

Permalink
Revert "script"
Browse files Browse the repository at this point in the history
This reverts commit 30b389b.
  • Loading branch information
georgebrindeiro committed Apr 13, 2023
1 parent 30b389b commit 14dd7e1
Show file tree
Hide file tree
Showing 15 changed files with 5,051 additions and 94 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs/ @vtex-apps/technical-writers
messages/ @vtex-apps/localization
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#### What problem is this solving?

<!--- What is the motivation and context for this change? -->

#### How to test it?

<!--- Don't forget to add a link to a Workspace where this branch is linked -->

[Workspace](Link goes here!)

#### Screenshots or example usage:

<!--- Add some images or gifs to showcase changes in behaviour or layout. Example: before and after images -->

#### Describe alternatives you've considered, if any.

<!--- Optional -->

#### Related to / Depends on

<!--- Optional -->

#### How does this PR make you feel? [:link:](http://giphy.com/)

<!-- Go to http://giphy.com/ and pick a gif that represents how this PR makes you feel -->

![](put .gif link here - can be found under "advanced" on giphy)
22 changes: 22 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Danger actions
'on':
pull_request:
types: [opened, edited, reopened, synchronize, assigned, unassigned, review_requested, review_request_removed]
jobs:
danger-ci:
name: Danger CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12.x
env:
RUNNER_TEMP: /tmp
- name: yarn install
run: yarn install
- name: Danger CI
uses: vtex/danger@master
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
REQUIRE_CHANGELOG_VERSION: false
48 changes: 48 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: IO actions
'on':
pull_request:
jobs:
io-app-test:
name: IO app test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12.x
env:
RUNNER_TEMP: /tmp
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: 'echo "::set-output name=dir::$(yarn cache dir)"'
- uses: actions/cache@v1
id: yarn-cache
with:
path: '${{ steps.yarn-cache-dir-path.outputs.dir }}'
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
restore-keys: |
${{ runner.os }}-yarn-
- name: Run test on every builder directory
uses: vtex/action-io-app-test@master
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12.x
env:
RUNNER_TEMP: /tmp
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: 'echo "::set-output name=dir::$(yarn cache dir)"'
- uses: actions/cache@v1
id: yarn-cache
with:
path: '${{ steps.yarn-cache-dir-path.outputs.dir }}'
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
restore-keys: |
${{ runner.os }}-yarn-
- name: Lint project
uses: vtex/action-lint@master
15 changes: 6 additions & 9 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"vendor": "fabricasunidas",
"name": "metatags",
"version": "1.0.0",
"title": "MetaTags",
"vendor": "CHANGE_ME",
"name": "CHANGE_ME",
"version": "0.0.0",
"title": "CHANGE_ME",
"description": "CHANGE_ME",
"builders": {
"react": "3.x",
"messages": "1.x",
"docs": "0.x",
"store": "0.x"
},
"dependencies": {
"vtex.styleguide": "9.x"
"docs": "0.x"
},
"dependencies": {},
"registries": [
"smartcheckout"
],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.0.0",
"name": "metatags",
"version": "0.0.0",
"name": "CHANGE_ME",
"private": true,
"license": "UNLICENSED",
"scripts": {
Expand Down Expand Up @@ -42,4 +42,4 @@
"typescript": "^3.9.6",
"@vtex/danger": "^0.2.7"
}
}
}
10 changes: 10 additions & 0 deletions react/Greeting.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import { render } from '@vtex/test-tools/react'

import Greeting from './Greeting'

test('greets Fred', () => {
const { queryByText } = render(<Greeting name="Fred" />)

expect(queryByText('Hey, Fred')).toBeInTheDocument()
})
11 changes: 11 additions & 0 deletions react/Greeting.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'

type Props = {
name: string
}

function Greeting({ name }: Props) {
return <div>Hey, {name}</div>
}

export default Greeting
3 changes: 0 additions & 3 deletions react/MetaTags.js

This file was deleted.

20 changes: 0 additions & 20 deletions react/components/MetaTags.js

This file was deleted.

Loading

0 comments on commit 14dd7e1

Please sign in to comment.