-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julian Schleemann
committed
Feb 20, 2024
1 parent
3409b68
commit 91c5376
Showing
15 changed files
with
1,133 additions
and
556 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: build | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn build | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: Publish to NPM | ||
|
||
on: | ||
release: | ||
types: [created] | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn test | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- run: yarn install | ||
- run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
node_modules | ||
build | ||
dist | ||
storybook-static | ||
.next | ||
.turbo | ||
.yarn | ||
|
||
package.json | ||
|
||
# Lockfiles | ||
package-lock.json | ||
pnpm-lock.yaml | ||
yarn.lock | ||
|
||
# Generated files | ||
generated | ||
__generated__ | ||
*.generated* | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @type {import('eslint').Linter.FlatConfig[]} | ||
*/ | ||
module.exports = [ | ||
...require('@atmina/linting/eslint/recommended'), | ||
require('@atmina/linting/eslint/react'), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "jsdom", | ||
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"], | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,11 @@ | |
"scripts": { | ||
"build": "rimraf lib && microbundle --jsx React.createElement src/index.ts", | ||
"prepublishOnly": "npm test && npm run build", | ||
"lint": "yarn lint:eslint:fix && yarn prettier:fix", | ||
"lint:eslint": "eslint .", | ||
"lint:eslint:fix": "eslint . --fix", | ||
"prettier:check": "prettier --check \"src/**/*.{tsx,graphql,ts,js,css}\"", | ||
"prettier:fix": "prettier --write \"src/**/*.{tsx,graphql,ts,js,css}\"", | ||
"lint": "yarn run lint:fix && yarn run prettier:fix", | ||
"lint:check": "eslint . --report-unused-disable-directives --max-warnings 0", | ||
"lint:fix": "eslint . --fix --report-unused-disable-directives --max-warnings 0", | ||
"prettier:check": "prettier . --check", | ||
"prettier:fix": "prettier . --write", | ||
"test": "jest src" | ||
}, | ||
"repository": { | ||
|
@@ -38,26 +38,21 @@ | |
}, | ||
"homepage": "https://github.com/atmina/formbuilder#readme", | ||
"devDependencies": { | ||
"@atmina/linting": "^2.1.2", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.2.0", | ||
"@testing-library/user-event": "^14.1.1", | ||
"@types/eslint": "^8.56.2", | ||
"@types/jest": "^27.5.0", | ||
"@types/react": "^18.0.8", | ||
"@types/react": "^18.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"eslint": "^8.16.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-standard-with-typescript": "^21.0.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.30.0", | ||
"eslint": "^8.56.0", | ||
"expect-type": "^0.13.0", | ||
"jest": "^28.0.3", | ||
"jest-environment-jsdom": "^28.0.2", | ||
"microbundle": "^0.15.0", | ||
"prettier": "^2.7.1", | ||
"prettier": "^3.2.5", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0", | ||
"react-hook-form": "^7.33.0", | ||
|
@@ -74,5 +69,6 @@ | |
"optional": true | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha256.dbed5b7e10c552ba0e1a545c948d5473bc6c5a28ce22a8fd27e493e3e5eb6370" | ||
"packageManager": "[email protected]+sha256.dbed5b7e10c552ba0e1a545c948d5473bc6c5a28ce22a8fd27e493e3e5eb6370", | ||
"prettier": "@atmina/linting/prettier" | ||
} |
Oops, something went wrong.