Skip to content

Commit

Permalink
feat(module): first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adoucoure committed Sep 29, 2023
0 parents commit c25944b
Show file tree
Hide file tree
Showing 35 changed files with 10,706 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/
dist/
node_modules/
.snapshots/
*.min.js
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parser": "babel-eslint",
"extends": [
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react"
],
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
},
"babelOptions": {
"parserOpts": {
"plugins": [
"importAssertions"
]
}
}
},
"settings": {
"react": {
"version": "16"
}
},
"rules": {
"space-before-function-paren": 0,
"react/prop-types": 0,
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"import/export": 0
}
}
93 changes: 93 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# https://github.com/parse-community/parse-server/blob/alpha/.github/workflows/ci.yml

name: Release

on:
push:
branches: [ main, next, next-major, beta, alpha, 'release-[0-9]+.x.x', release ]
pull_request:
branches: '*'
paths-ignore:
- '**/**.md'

jobs:
check-code-analysis:
name: Code Analysis 👀
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
source-root: src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

check-lock-file-version:
name: Check Yarn Lock File Version 🔒
timeout-minutes: 5
runs-on: ubuntu-latest
needs: [check-code-analysis]
steps:
- uses: actions/checkout@v3
- name: Check JS Lockfile
uses: ChromaticHQ/javascript-lockfile-check-action@v1.1.0
with:
package-manager: yarn
# working-directory: web/themes/custom/my-custom-theme

quality:
name: Quality 🐳
runs-on: ${{ matrix.os }}
needs: [check-code-analysis,check-lock-file-version]
strategy:
matrix:
# node-version: [10.x, 12.x, 14.x, 15.x]
node-version: [16.x]
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: mskelton/setup-yarn@v1
- name: Install dependencies
run: yarn --frozen-lockfile
# - run: yarn test

publish:
name: Publish 🚀
runs-on: ubuntu-latest
# if: ${{ github.ref == 'refs/heads/main' }}
needs: [quality,check-code-analysis,check-lock-file-version]
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup yarn
uses: mskelton/setup-yarn@v1
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
run: yarn semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/sizelimit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Size limit"
on:
pull_request:
branches:
- main
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package.dist.json
.npmrc
dist
_archive
23 changes: 23 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.npmrc
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none"
}
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#0F332B",
"titleBar.activeBackground": "#15483C",
"titleBar.activeForeground": "#F5FCFB"
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Yelounak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Pageable Protocol Shared JS Package

![logo](/static/img/polar-bear-4.png)

[![npm Package](https://img.shields.io/npm/v/servable-pageable-shared.svg?style=flat-square)](https://www.npmjs.org/package/servable-pageable-shared)
[![NPM Downloads](https://img.shields.io/npm/dm/servable-pageable-shared.svg)](https://npmjs.org/package/servable-pageable-shared)
[![Build Status](https://github.com/yelounak/servable-pageable-shared/actions/workflows/release.yml/badge.svg)](https://github.com/yelounak/servable-pageable-shared/actions/tests.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Shared js package for [servable-pageable](https://github.com/yelounak/servable-pageable)

## Install
```bash
yarn add servable-pageable-shared
```

## Servable Documentation
You can find here the complete [servable documentation](https://documentation.servable.app/) with guides and api reference.

## License

MIT © [yelounak](https://github.com/yelounak)
3 changes: 3 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"testRegex": "((\\.|/*.)(test))\\.js?$"
}
36 changes: 36 additions & 0 deletions package copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "@yelounak/pageable-parse-classes",
"version": "0.1.1",
"type": "module",
"description": "Collection of custom parse classes.",
"main": "src/index.js",
"engines": {
"node": ">=10"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/yelounak/pageable-parse-classes"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/yelounak"
},
"keywords": [
"parse",
"server"
],
"peerDependencies": {
"parse": "*",
"underscore": ">= 1.0.0",
"moment": ">= 2.0.0"
},
"dependencies": {},
"author": "Aboubacar Doucoure",
"license": "ISC",
"bugs": {
"url": "https://github.com/yelounak/pageable-parse-classes/issues"
},
"homepage": "https://github.com/yelounak/pageable-parse-classes#readme"
}
Loading

0 comments on commit c25944b

Please sign in to comment.