-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": true, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "master", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
ignore | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
package-lock.json | ||
docs | ||
bin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint", "prettier", "unused-imports"], | ||
"ignorePatterns": ["*.cjs"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2016 | ||
}, | ||
"rules": { | ||
"unused-imports/no-unused-imports": "error" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es2016": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish docs site to GitHub Pages | ||
on: | ||
repository_dispatch: | ||
types: [npm-published] | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
|
||
- run: npm install --frozen-lockfile | ||
- run: | | ||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
npm run docs:publish -- -u "github-actions-bot <[email protected]>" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish to NPM | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
|
||
- run: npm install --frozen-lockfile | ||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: npm run publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Notify if published | ||
if: steps.changesets.outputs.published == 'true' | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
event-type: npm-published |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
docs/ | ||
|
||
## WebStorm | ||
|
||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
|
||
.idea/**/contentModel.xml | ||
|
||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/dbnavigator.xml | ||
|
||
.idea/sonarlint/ | ||
.idea/**/sonarlint/ | ||
.idea/**/sonarIssues.xml | ||
.idea/$CACHE_FILE$ | ||
|
||
.*~$ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.DS_Store | ||
node_modules | ||
coverage | ||
dist | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
package-lock.json | ||
docs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": true, | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 80 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript" | ||
}, | ||
"target": "es2016" | ||
}, | ||
"module": { | ||
"type": "commonjs" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# foundation-types | ||
|
||
Curated package with types I believe all packages and apps need to promote safeness and reduced side effects. | ||
|
||
![npm version](https://badgen.net/npm/v/@web-pacotes/foundation-types) ![npm total downloads](https://badgen.net/npm/dt/@web-pacotes/foundation-types) ![bundlephobia bundle size](https://badgen.net/bundlephobia/min/@web-pacotes/foundation-types) | ||
|
||
--- | ||
|
||
## How to use | ||
|
||
todo: describe usage | ||
|
||
```typescript | ||
todo: include usage code here | ||
``` | ||
|
||
Additionally, you can curated package with types i believe all packages and apps need to promote safeness and reduced side effects.. Execute the following command for more info: | ||
|
||
```bash | ||
foundation-types --help | ||
``` | ||
|
||
## Features | ||
|
||
todo: enumerate features package currently provides | ||
|
||
### Upcoming features | ||
|
||
todo: enumerate features package does not provide | ||
|
||
--- | ||
|
||
## Bugs and Contributions | ||
|
||
Found any bug (including typos) in the package? Do you have any suggestion | ||
or feature to include for future releases? Please create an issue via | ||
GitHub in order to track each contribution. Also, pull requests are very | ||
welcome! | ||
|
||
To contribute, start by setting up your local development environment. The [setup.md](setup.md) document will onboard you on how to do so! | ||
|
||
## Contact | ||
|
||
This template was prepared by: | ||
|
||
- João Freitas, @freitzzz | ||
- Rute Santos, @rutesantos4 | ||
|
||
Contact us for freelancing work! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import sum from 'foundation-types'; | ||
|
||
function main() { | ||
console.log(sum(40, 2)); | ||
} | ||
|
||
main(); |