forked from sergiodxa/remix-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update code and setup * Import Outlet from remix package * Create new bodyParser interface * Add initial new docs * Update tests * Delete size.yml * Replace main workflow with simplified ci workflow * Update Node version * Update bump.yml * Update action version * Update code * Update server.ts * Install Prettier * Update responses.ts * Renamte bodyParser.toParams to toSearchParams and add toString * Add more docs * Fix typo * Fix typos and reference to argument * Add docs for CSRF functions * Remove unknown default generic on json * Update linter
- Loading branch information
Showing
34 changed files
with
36,396 additions
and
9,082 deletions.
There are no files selected for viewing
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,2 @@ | ||
/* eslint-disable unicorn/prefer-module */ | ||
module.exports = require("./config/eslint"); |
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 |
---|---|---|
|
@@ -16,20 +16,24 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
- name: Setup Node.js | ||
|
||
- name: Setup Node LTS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: 'lts/*' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Setup Git | ||
run: | | ||
git config user.name 'Sergio Xalambrí' | ||
git config user.email '[email protected]' | ||
- name: bump version | ||
- name: Bump package.json versino | ||
run: npm version ${{ github.event.inputs.version }} | ||
|
||
- name: Push latest version | ||
|
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,97 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node LTS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Build | ||
run: npm run setup && npm run build | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
typecheck: | ||
name: Typechecker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node LTS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Typecheck | ||
run: npm run setup && npm run typecheck | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
test: | ||
name: Unit and Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node LTS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Test | ||
run: npm run setup && npm run test -- --ci --coverage --maxWorkers=2 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
lint: | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node LTS | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Build | ||
run: npm run setup && npm run build | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} | ||
|
||
- name: Lint | ||
run: npm run lint | ||
env: | ||
REMIX_TOKEN: ${{ secrets.REMIX_TOKEN }} |
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
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,4 +1,11 @@ | ||
*.log | ||
.DS_Store | ||
node_modules | ||
dist | ||
|
||
/react | ||
/react.js | ||
/react.d.ts | ||
|
||
/server | ||
/server.js | ||
/server.d.ts |
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,9 @@ | ||
/.github | ||
/config | ||
/src | ||
/test | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
tsconfig.json |
Oops, something went wrong.