diff options
Diffstat (limited to 'node_modules/@phntms/use-local-state/.github')
7 files changed, 150 insertions, 0 deletions
diff --git a/node_modules/@phntms/use-local-state/.github/CODEOWNERS b/node_modules/@phntms/use-local-state/.github/CODEOWNERS new file mode 100644 index 0000000..6e3be23 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/CODEOWNERS @@ -0,0 +1 @@ +* @digitaljohn @PauloMFJ
\ No newline at end of file diff --git a/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_BUG.md b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_BUG.md new file mode 100644 index 0000000..aed65f3 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_BUG.md @@ -0,0 +1,41 @@ +--- +name: "\U0001F41B Report a bug" +about: "Is something not working as you expect?" +--- + +<!-- Please answer the following. Issues that do not will be closed. --> + +> Clearly describe the bug + +e.g. "Data does not persist upon refresh." + +> Which version of use-local-state are you using? + +e.g. `0.1.0` + +> What version of React are you using use-local-state within? + +e.g. `16.9.0` + +> What build/platform are you using? + +e.g. "Next.js 10" + +> What did you expect to happen? + +e.g. "Updated value to be persisted." + +> What actually happened (e.g. what warnings or errors did you get)? + +e.g. "Hook always returns default state." + +<!-- +Before posting, please check that the bug hasn't already been discussed previously (https://github.com/phantomstudios/use-local-state/search) + +You can help us fix the bug more quickly by: +1. Figuring out what needs to be done and proposing it +2. Submitting a PR with failing tests. + +Once the bug has been confirmed, you can help out further by: +1. Writing the code and submitting a PR. +--> diff --git a/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_DOCS_ISSUE.md b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_DOCS_ISSUE.md new file mode 100644 index 0000000..bcdd4be --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REPORT_A_DOCS_ISSUE.md @@ -0,0 +1,14 @@ +--- +name: "\U0001F4DD Report a docs issue" +about: "Is something wrong, confusing or missing in the docs?" +--- + +<!-- Please answer the following. Issues that do not will be closed. --> + +> Clearly describe the documentation issue + +e.g. "Documentation for setting updated state is required." + +> What solution would you like to see? + +e.g. "I suggest rewriting it so it covers the following topics in detail..." diff --git a/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REQUEST_A_FEATURE.md b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REQUEST_A_FEATURE.md new file mode 100644 index 0000000..bcf02d4 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/ISSUE_TEMPLATE/REQUEST_A_FEATURE.md @@ -0,0 +1,24 @@ +--- +name: "\U0001F680 Request a feature" +about: "Do you want to suggest a new feature?" +--- + +<!-- Please answer the following. Issues that do not will be closed. --> + +> What is the problem you're trying to solve? + +e.g. "We need the ability reset and or clear the state..." + +> What solution would you like to see? + +e.g. "Expose a new method that..." + +<!-- +Before posting, please check that the feature hasn't already been discussed previously (https://github.com/phantomstudios/use-local-state/search) + +You can help us add the feature more quickly by: +1. Providing as much detail as possible in this issue + +Once the feature is approved, you can help out further by: +1. Writing the code and submitting a PR. +--> diff --git a/node_modules/@phntms/use-local-state/.github/PULL_REQUEST_TEMPLATE.md b/node_modules/@phntms/use-local-state/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..0aaafb8 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,12 @@ +<!--- +Please read the following. Pull requests that do not adhere to these guidelines will very likely be closed. + +Each pull request should, with the exception of minor documentation fixes, be associated with an open issue. If there is an associated open issue, then please continue by answering these two questions: --> + +> Which issue, if any, is this issue related to? + +e.g. "Closes #000" or "None, as it's a documentation fix." + +> Is there anything in the PR that needs further explanation? + +e.g. "No, it's self explanatory." diff --git a/node_modules/@phntms/use-local-state/.github/workflows/npmpublish.yml b/node_modules/@phntms/use-local-state/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..6fb9e41 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/workflows/npmpublish.yml @@ -0,0 +1,30 @@ +name: Node.js Package + +on: + release: + types: [created] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm test + + publish-npm: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/node_modules/@phntms/use-local-state/.github/workflows/test.yml b/node_modules/@phntms/use-local-state/.github/workflows/test.yml new file mode 100644 index 0000000..35f72b1 --- /dev/null +++ b/node_modules/@phntms/use-local-state/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: [pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v1 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + npm run lint + npm test + env: + CI: true |