From 22270be14ba304f05f6a50da3fa7410c5a14585c Mon Sep 17 00:00:00 2001 From: Shubham Kaushal Date: Wed, 20 Sep 2023 11:02:49 +0530 Subject: [PATCH 1/5] update css package --- packages/css/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/css/package.json b/packages/css/package.json index ae06a03..7788eb3 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/outposthq/searchjs.git" }, "files": [ - "style.css" + "index.css" ], "license": "MIT", "exports": { From 4ff1281393ceaa02a2cbab81e71fcfc15780a3f3 Mon Sep 17 00:00:00 2001 From: Shubham Kaushal Date: Wed, 20 Sep 2023 11:05:51 +0530 Subject: [PATCH 2/5] move composite sction file --- .github/{workflows => }/composite-actions/install/action.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => }/composite-actions/install/action.yml (100%) diff --git a/.github/workflows/composite-actions/install/action.yml b/.github/composite-actions/install/action.yml similarity index 100% rename from .github/workflows/composite-actions/install/action.yml rename to .github/composite-actions/install/action.yml From 497a1cfc5d794e6511dd91923eb325a7f6539d29 Mon Sep 17 00:00:00 2001 From: Shubham Kaushal Date: Wed, 20 Sep 2023 11:09:37 +0530 Subject: [PATCH 3/5] fix build pipeline --- .github/workflows/codeql.yml | 28 ++++++++++++++++++---------- package.json | 10 +++++----- packages/css/package.json | 8 ++++---- packages/web/package.json | 8 ++++---- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3235724..56995ae 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,12 +18,18 @@ on: # The branches below must be a subset of the branches above branches: [ "main" ] schedule: - - cron: '39 5 * * 1' + - cron: '35 17 * * 6' jobs: analyze: name: Analyze - runs-on: ubuntu-latest + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners + # Consider using larger runners for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: actions: read contents: read @@ -33,7 +39,9 @@ jobs: fail-fast: false matrix: language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: @@ -48,12 +56,12 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v2 @@ -61,12 +69,12 @@ jobs: # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/package.json b/package.json index c311b57..30d5fe6 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,16 @@ { "name": "searchjs", - "private": true, "version": "0.0.0", + "private": true, "type": "module", "scripts": { "build": "pnpm run -r build", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "changeset": "changeset", - "version": "changeset version", - "version:dev": "changeset version --snapshot dev", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "release": "changeset publish", "release:dev": "changeset publish --tag dev", - "release": "changeset publish" + "version": "changeset version", + "version:dev": "changeset version --snapshot dev" }, "dependencies": { "@radix-ui/react-dialog": "^1.0.4", diff --git a/packages/css/package.json b/packages/css/package.json index 7788eb3..b4162f2 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -5,11 +5,11 @@ "type": "git", "url": "https://github.com/outposthq/searchjs.git" }, - "files": [ - "index.css" - ], "license": "MIT", "exports": { ".": "./index.css" - } + }, + "files": [ + "index.css" + ] } diff --git a/packages/web/package.json b/packages/web/package.json index b2596fc..6e91440 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -7,6 +7,10 @@ }, "license": "MIT", "type": "module", + "exports": { + ".": "./dist/index.js", + "./init": "./dist/init.js" + }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ @@ -14,10 +18,6 @@ "dist/init.*", "dist/types.*" ], - "exports": { - ".": "./dist/index.js", - "./init": "./dist/init.js" - }, "scripts": { "analyze": "node scripts/analyze.js", "build": "node scripts/build.js", From dc1f3152aa346f3b7e91ed20a22e14fda92be74e Mon Sep 17 00:00:00 2001 From: Shubham Kaushal Date: Wed, 20 Sep 2023 11:18:12 +0530 Subject: [PATCH 4/5] Add License and Readme --- packages/css/LICENSE | 21 +++++++++++++++++++++ packages/css/README.md | 32 ++++++++++++++++++++++++++++++++ packages/react/LICENSE | 21 +++++++++++++++++++++ packages/react/README.md | 15 +++++++++++++++ packages/web/LICENSE | 21 +++++++++++++++++++++ packages/web/README.md | 15 +++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 packages/css/LICENSE create mode 100644 packages/css/README.md create mode 100644 packages/react/LICENSE create mode 100644 packages/react/README.md create mode 100644 packages/web/LICENSE create mode 100644 packages/web/README.md diff --git a/packages/css/LICENSE b/packages/css/LICENSE new file mode 100644 index 0000000..ab92ed0 --- /dev/null +++ b/packages/css/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Outpost Innovations, Inc. + +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. diff --git a/packages/css/README.md b/packages/css/README.md new file mode 100644 index 0000000..b676e95 --- /dev/null +++ b/packages/css/README.md @@ -0,0 +1,32 @@ +# @searchjs/css + +Common CSS for Search.js components. + +## Installation + +```sh +npm install @searchjs/css +``` + +## Usage + +With a bundler: + +```sh +import '@searchjs/css'; +``` + +With a CDN: + +```sh + +``` + +## License + +Search.js is a project by [Outpost](https://outpost.run). + +Released under the MIT License. diff --git a/packages/react/LICENSE b/packages/react/LICENSE new file mode 100644 index 0000000..ab92ed0 --- /dev/null +++ b/packages/react/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Outpost Innovations, Inc. + +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. diff --git a/packages/react/README.md b/packages/react/README.md new file mode 100644 index 0000000..f58eb27 --- /dev/null +++ b/packages/react/README.md @@ -0,0 +1,15 @@ +# @searchjs/react + +React component for Search.js + +## Installation + +```sh +npm install @searchjs/react +``` + +## License + +Search.js is a project by [Outpost](https://outpost.run). + +Released under the MIT License. diff --git a/packages/web/LICENSE b/packages/web/LICENSE new file mode 100644 index 0000000..ab92ed0 --- /dev/null +++ b/packages/web/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Outpost Innovations, Inc. + +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. diff --git a/packages/web/README.md b/packages/web/README.md new file mode 100644 index 0000000..9b99638 --- /dev/null +++ b/packages/web/README.md @@ -0,0 +1,15 @@ +# @searchjs/web + +Web component for Search.js Use with vanilla JavaScript or any framework. + +## Installation + +```sh +npm install @searchjs/web +``` + +## License + +Search.js is a project by [Outpost](https://outpost.run). + +Released under the MIT License. From 6b28b309cee37c0bf5bd1b1ea5da035b8c8baea1 Mon Sep 17 00:00:00 2001 From: Shubham Kaushal Date: Wed, 20 Sep 2023 11:20:22 +0530 Subject: [PATCH 5/5] update codeql --- .github/workflows/codeql.yml | 63 ++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 56995ae..835e102 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: ["main"] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: ["main"] schedule: - - cron: '35 17 * * 6' + - cron: "18 15 * * 1" jobs: analyze: @@ -38,45 +38,44 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: ["javascript"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] # Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v3 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" \ No newline at end of file + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file