Skip to content

Commit 455bf6e

Browse files
Merge pull request #16 from zendesk/react-proposal-scaffold
Adding new scaffold to the react folder
2 parents 99ab2c4 + cd2694b commit 455bf6e

Some content is hidden

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

62 files changed

+9259
-11424
lines changed

.github/workflows/actions.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ jobs:
1414
include:
1515
- task: Lint
1616
allow_failures: false
17-
command: yarn lerna run lint
17+
command: pnpm lerna run lint
1818
- task: Test
1919
allow_failures: false
20-
command: yarn lerna run test
20+
command: pnpm lerna run test
2121
steps:
2222
- uses: zendesk/checkout@v2
2323
- name: Use Node.js
2424
uses: zendesk/setup-node@v3
2525
with:
2626
node-version: 18.12.1
27+
- name: Install pnpm
28+
run: npm install -g pnpm
2729
- name: install packages
28-
run: yarn install
30+
run: pnpm install
2931
- name: ${{ matrix.env.TASK }}
30-
run: TASK=${{ matrix.env.TASK }} ${{ matrix.command }}
32+
run: TASK=${{ matrix.env.TASK }} ${{ matrix.command }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This repo contains various scaffolds to help developers build [apps for Zendesk
1414
### Setup
1515
1. Clone or fork this repo
1616
2. Change (`cd`) into the `app_scaffolds` directory
17-
3. Run `yarn install`
17+
3. Run `pnpm install`
1818
4. `packages/react` contains react app scaffold. Please follow [React README](./packages/react/README.md)
1919
5. `packages/basic` contains basic app scaffold. Please follow [Basic README](./packages/basic/README.md)
2020

lerna.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
5-
"version": "0.0.0",
6-
"useWorkspaces": true
7-
}
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.0"
6+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"lerna": "^4.0.0"
3+
"lerna": "^8.1.5"
44
},
55
"name": "app_scaffolds",
66
"private": true,

packages/react/.babelrc

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

packages/react/.browserslistrc

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

packages/react/.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_ZENDESK_LOCATION="http://localhost:3000/"

packages/react/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_ZENDESK_LOCATION="assets/index.html"

packages/react/.eslintrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"root": true,
3+
"env": { "browser": true, "es2020": true },
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:react/recommended",
7+
"plugin:react/jsx-runtime",
8+
"plugin:react-hooks/recommended",
9+
"standard",
10+
"prettier"
11+
],
12+
"ignorePatterns": ["dist", "node_modules"],
13+
"parserOptions": {
14+
"ecmaVersion": "latest",
15+
"sourceType": "module",
16+
"ecmaFeatures": {
17+
"jsx": true
18+
}
19+
},
20+
"settings": { "react": { "version": "detect" } },
21+
"rules": {
22+
"react/prop-types": "off"
23+
},
24+
"overrides": [
25+
{
26+
"files": ["rollup/**/*.js"],
27+
"env": { "node": true }
28+
}
29+
]
30+
}

packages/react/.gitignore

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1-
tmp/
2-
dist/
3-
node_modules/
4-
coverage/
5-
npm-debug.log
6-
yarn-error.log
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

0 commit comments

Comments
 (0)