Skip to content

Commit

Permalink
Merge pull request #109 from BipanKishore/resizable-panes-js-init
Browse files Browse the repository at this point in the history
resizable-panes-js-init
  • Loading branch information
BipanKishore authored May 15, 2024
2 parents 63d3ed5 + 7316eb3 commit 3f3ccec
Show file tree
Hide file tree
Showing 28 changed files with 1,231 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build-n-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,17 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: ${{format('{0}/{1}', github.workspace, 'packages/resizable-panes-react')}}

- name: Resizable Js Build
run: |
npm run prod
working-directory: ./packages/resizable-panes-js

- name: Resizable JS NPM Publish
if: ${{ github.ref == 'refs/heads/master' }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ${{format('{0}/{1}', github.workspace, 'packages/resizable-panes-js')}}


8 changes: 8 additions & 0 deletions packages/resizable-panes-js/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"@babel/preset-typescript", "@babel/preset-env", "@babel/preset-react"
],
"plugins": [["istanbul", {
"exclude": ["cypress", "src/utils/development-util"]
}]]
}
4 changes: 4 additions & 0 deletions packages/resizable-panes-js/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


REACT_LIB_OPTIMIZE=TRUE

4 changes: 4 additions & 0 deletions packages/resizable-panes-js/.env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@



REACT_LIB_OPTIMIZE=FALSE
83 changes: 83 additions & 0 deletions packages/resizable-panes-js/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

{
"env": {
"browser": true,
"es2021": true
},
"root": true,
"extends": [
"eslint:recommended",
"standard",
"standard-react",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"sort-keys-fix",
"simple-import-sort",
"react-hooks",
"@typescript-eslint"],
"rules": {
"@typescript-eslint/ban-ts-comment":"warn",
"@typescript-eslint/no-explicit-any": 0,
"space-infix-ops": "error",
"camelcase": ["error", {"allow": ["^UNSAFE_"]}],
"complexity": ["error", 5],
"max-len": ["error", {
"code": 120,
"tabWidth": 2
}],
"no-unused-expressions": ["error", {
"allowTernary": true
}],
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"react/default-props-match-prop-types": "error",
"react/no-unused-prop-types": "off", // gives false positives
"react/jsx-closing-bracket-location": "error",
"react/jsx-closing-tag-location": "error",
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent": ["error", 2],
"react/jsx-no-duplicate-props": "error",
"react/jsx-sort-props": ["error", {
"callbacksLast": true
}],
"react/sort-prop-types": ["error", {
"callbacksLast": true,
"sortShapeProp": true
}],
"valid-jsdoc": ["error", {
"prefer": {
"virtual": "abstract",
"extends": "augments",
"constructor": "class",
"const": "constant",
"defaultValue": "default",
"desc": "description",
"host": "external",
"fileoverview": "file",
"emits": "fires",
"func": "function",
"method": "function",
"var": "member",
"arg": "param",
"argument": "param",
"return": "returns",
"exception": "throws"
},
"requireReturn": false
}],
"no-fallthrough": 0
},
"reportUnusedDisableDirectives": true
}
30 changes: 30 additions & 0 deletions packages/resizable-panes-js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
#/coverage
#/.nyc_output

/cypress/screenshots
/cypress/downloads
/coverage
/.nyc_output

# production
/lib


# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
22 changes: 22 additions & 0 deletions packages/resizable-panes-js/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

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


/configs
/src
8 changes: 8 additions & 0 deletions packages/resizable-panes-js/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"check-coverage": true,
"lines": 99.5,
"include": ["src"],
"exclude": ["src/@types", "src/utils/development-util"]
}
15 changes: 15 additions & 0 deletions packages/resizable-panes-js/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) 2023 Bipan Kishore Sharma

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
Loading

0 comments on commit 3f3ccec

Please sign in to comment.