-
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.
- Loading branch information
Jason R. Sadler
authored and
Jason R. Sadler
committed
Jun 22, 2021
0 parents
commit 539d16c
Showing
640 changed files
with
47,377 additions
and
0 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,11 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"subject-case": [2, "always", "sentence-case"], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
["build", "ci", "chore", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test"] | ||
] | ||
} | ||
} |
Validating CODEOWNERS rules …
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 @@ | ||
* @jasonrsadler |
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,18 @@ | ||
## Submitter Checklist: | ||
|
||
- [ ] Submitted a [ticket](https://github.com/dsentr/dsentr-toolkit/issues) for my issue if one did not already exist. | ||
- [ ] Used Github [auto-closing keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) in the commit message. | ||
- [ ] Added/updated tests for this change (for new code or code which already has tests). | ||
- [ ] Ran `git rebase -i` to squash commits (if needed). | ||
|
||
## Test Plan: | ||
|
||
|
||
## Reviewer Checklist: | ||
|
||
Tests | ||
|
||
|
||
- [ ] Adequate test coverage exists to prevent regressions | ||
- [ ] Tests should be independent and work correctly when run individually or as a suite | ||
|
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,23 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run Build | ||
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Storybook | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
storybook: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build Storybook | ||
run: yarn storybook:build | ||
|
||
- name: Deploy Storybook | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./packages/dsentr-uikit/storybook-static | ||
publish_branch: gh-pages | ||
user_name: "github-actions" | ||
user_email: "[email protected]" |
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,29 @@ | ||
name: Format | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v2 | ||
with: | ||
configFile: .commitlintrc.json | ||
helpURL: https://docs.dsentr.org/code/contributing#committing | ||
code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Run check | ||
run: yarn format:check |
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,23 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run ESLint | ||
run: yarn lint |
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,22 @@ | ||
name: Tests | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run Jest tests | ||
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,19 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# testing | ||
coverage | ||
|
||
# production | ||
dist | ||
storybook-static | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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 @@ | ||
# 1.0.0 (2021-03-18) | ||
|
||
|
||
### Feature | ||
|
||
Initial fork from PancakeSwap | ||
|
||
|
||
|
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 @@ | ||
# DSentr Toolkit | ||
|
||
This repository is a PancakeSwap forked monorepo managed with [yarn workspaces](https://classic.yarnpkg.com/en/docs/workspaces/) and [Lerna](https://lerna.js.org/). | ||
|
||
## Packages | ||
|
||
- [dsentr-uikit](https://github.com/dsentr-glass/dsentr-toolkit/tree/master/packages/dsentr-uikit) : React components used to build the DSentr UI | ||
|
||
## How to use | ||
|
||
Clone the repository | ||
|
||
``` | ||
git clone [email protected]:dsentr-glass/dsentr-toolkit.git | ||
``` | ||
|
||
Run yarn at the root of the workspace. | ||
Some packages may be very large and yarn will assume a network issue. Use `yarn network-timeout 100000` if errors persist. | ||
|
||
``` | ||
cd dsentr-toolkit | ||
yarn | ||
``` | ||
|
||
Then, refer to the readme of each project. |
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,13 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"version": "independent", | ||
"npmClient": "yarn", | ||
"workspaces": true, | ||
"ignoreChanges": ["**/__tests__/**", "**/*.md", "**/.storybook/**"], | ||
"command": { | ||
"version": { | ||
"conventionalCommits": true, | ||
"message": "chore(release): Publish" | ||
} | ||
} | ||
} |
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,66 @@ | ||
{ | ||
"name": "dsentr-toolkit", | ||
"version": "1.0.0", | ||
"description": "DSentr frontend packages", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dsentr-glass/dsentr-toolkit.git" | ||
}, | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/dsentr-glass/dsentr-toolkit/issues" | ||
}, | ||
"homepage": "https://github.com/dsentr-glass/dsentr-toolkit#readme", | ||
"scripts": { | ||
"build": "lerna run build", | ||
"test": "lerna run test", | ||
"lint": "lerna run lint", | ||
"format:check": "lerna run format:check", | ||
"storybook:build": "lerna run storybook:build", | ||
"release": "npm run build && npm run lerna publish" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run format:check", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.14.3", | ||
"@babel/preset-env": "^7.14.4", | ||
"@commitlint/cli": "^12.1.1", | ||
"@commitlint/config-conventional": "^12.1.1", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@rollup/plugin-typescript": "^8.2.1", | ||
"@rollup/plugin-url": "^6.0.0", | ||
"@storybook/addon-a11y": "^6.2.9", | ||
"@storybook/addon-actions": "^6.2.9", | ||
"@storybook/addon-essentials": "^6.2.9", | ||
"@storybook/addon-links": "^6.2.9", | ||
"@storybook/react": "^6.2.9", | ||
"@types/jest": "^26.0.23", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^15.12.2", | ||
"@types/react": "^17.0.5", | ||
"@types/react-router-dom": "^5.1.7", | ||
"@types/react-transition-group": "^4.4.1", | ||
"@types/styled-components": "^5.1.9", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-styled-components": "^1.12.0", | ||
"husky": "4.3.5", | ||
"lerna": "^4.0.0", | ||
"react-is": "^17.0.2", | ||
"rollup": "^2.47.0", | ||
"snazzy": "^9.0.0", | ||
"themeprovider-storybook": "^1.7.1", | ||
"ts-jest": "^26.5.6", | ||
"ts-standard": "^10.0.0", | ||
"tslib": "^2.2.0", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
Oops, something went wrong.