Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ab1bd2699 |
@@ -1,15 +0,0 @@
|
|||||||
# EditorConfig is awesome: https://EditorConfig.org
|
|
||||||
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
||||||
max_line_length = 140
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1,4 +0,0 @@
|
|||||||
/.yarn/** linguist-vendored
|
|
||||||
/.yarn/releases/* binary
|
|
||||||
/.yarn/plugins/**/* binary
|
|
||||||
/.pnp.* binary linguist-generated
|
|
||||||
14
.github/workflows/dependency-review.yaml
vendored
14
.github/workflows/dependency-review.yaml
vendored
@@ -4,17 +4,6 @@ name: Dependency Review
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
base_ref:
|
|
||||||
description: 'The base ref for the dependency review'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: 'next'
|
|
||||||
head_ref:
|
|
||||||
description: 'The head ref for the dependency review'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: 'next'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -30,6 +19,3 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Dependency Review
|
- name: 🚀 Dependency Review
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
with:
|
|
||||||
base-ref: ${{ inputs.base_ref }}
|
|
||||||
head-ref: ${{ inputs.head_ref }}
|
|
||||||
|
|||||||
19
.github/workflows/publish-npm.yaml
vendored
19
.github/workflows/publish-npm.yaml
vendored
@@ -10,16 +10,14 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
type: string
|
type: string
|
||||||
npm-registry-url:
|
|
||||||
description: 'NPM registry url'
|
|
||||||
required: false
|
|
||||||
default: 'https://registry.npmjs.org'
|
|
||||||
type: string
|
|
||||||
secrets:
|
secrets:
|
||||||
NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
description: 'NPM token'
|
description: 'NPM token'
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: lts/*
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -38,8 +36,7 @@ jobs:
|
|||||||
- name: 🔧 Setup Node.js
|
- name: 🔧 Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.NODE_VERSION }}
|
||||||
registry-url: ${{ inputs.npm-registry-url }}
|
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
@@ -63,11 +60,15 @@ jobs:
|
|||||||
run: yarn build
|
run: yarn build
|
||||||
env:
|
env:
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
NODE_ENV: production
|
|
||||||
|
- name: 🧹 Run ESLint
|
||||||
|
run: yarn lint
|
||||||
|
env:
|
||||||
|
WIREIT_LOGGER: metrics
|
||||||
|
|
||||||
- name: 🚀 Publish
|
- name: 🚀 Publish
|
||||||
run: yarn run publish -- --yes
|
run: yarn run publish -- --yes
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
NPM_CONFIG_PROVENANCE: true
|
NPM_CONFIG_PROVENANCE: true
|
||||||
WIREIT_LOGGER: metrics
|
WIREIT_LOGGER: metrics
|
||||||
|
|||||||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@@ -5,7 +5,7 @@ name: Build & Lint & Test & Release
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
node-version:
|
NODE_VERSION:
|
||||||
description: 'Node.js version'
|
description: 'Node.js version'
|
||||||
required: true
|
required: true
|
||||||
default: 'lts/*'
|
default: 'lts/*'
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: 🔧 Setup Node.js
|
- name: 🔧 Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.NODE_VERSION }}
|
||||||
|
|
||||||
- name: 🛠️ Setup Node.js Corepack
|
- name: 🛠️ Setup Node.js Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|||||||
28
.github/workflows/sync-labels.yaml
vendored
Normal file
28
.github/workflows/sync-labels.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||||
|
|
||||||
|
name: Sync labels
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
description: "GitHub token"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
name: Sync labels
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ⤵️ Check out code from GitHub
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚀 Run Label Syncer
|
||||||
|
uses: micnncim/action-label-syncer@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
44
.gitignore
vendored
44
.gitignore
vendored
@@ -1,44 +0,0 @@
|
|||||||
# Specifies intentionally untracked files to ignore when using Git
|
|
||||||
# http://git-scm.com/docs/gitignore
|
|
||||||
|
|
||||||
# OSX
|
|
||||||
.DS_STORE
|
|
||||||
.DS_Store
|
|
||||||
._*
|
|
||||||
|
|
||||||
# Windows
|
|
||||||
Thumbs.db
|
|
||||||
Desktop.ini
|
|
||||||
|
|
||||||
# Logs
|
|
||||||
*.log*
|
|
||||||
|
|
||||||
# package managers
|
|
||||||
.yarn/*
|
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/sdks
|
|
||||||
!.yarn/versions
|
|
||||||
#!.yarn/cache
|
|
||||||
.pnp.*
|
|
||||||
node_modules
|
|
||||||
package-lock.json
|
|
||||||
|
|
||||||
# Build
|
|
||||||
dist
|
|
||||||
*.tsbuildinfo
|
|
||||||
*.map
|
|
||||||
*.d.ts
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
|
|
||||||
.tmp
|
|
||||||
|
|
||||||
.wireit
|
|
||||||
|
|
||||||
.eslintcache
|
|
||||||
17
.vscode/extensions.json
vendored
17
.vscode/extensions.json
vendored
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"cardinal90.multi-cursor-case-preserve",
|
|
||||||
"christian-kohler.path-intellisense",
|
|
||||||
"davidanson.vscode-markdownlint",
|
|
||||||
"editorconfig.editorconfig",
|
|
||||||
"esbenp.prettier-vscode",
|
|
||||||
"github.copilot-chat",
|
|
||||||
"github.vscode-github-actions",
|
|
||||||
"github.vscode-pull-request-github",
|
|
||||||
"streetsidesoftware.code-spell-checker-persian",
|
|
||||||
"streetsidesoftware.code-spell-checker",
|
|
||||||
"yzhang.markdown-all-in-one",
|
|
||||||
"gruntfuggly.todo-tree",
|
|
||||||
"arcanis.vscode-zipfs"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
33
.vscode/settings.json
vendored
33
.vscode/settings.json
vendored
@@ -1,35 +1,6 @@
|
|||||||
{
|
{
|
||||||
"cSpell.language": "en,fa,fa-IR",
|
"prettier.singleQuote": true,
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll": "explicit"
|
|
||||||
},
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
||||||
"editor.formatOnPaste": false,
|
|
||||||
"editor.formatOnSave": false,
|
|
||||||
"editor.wordWrapColumn": 120,
|
|
||||||
"explorer.fileNesting.enabled": true,
|
|
||||||
"explorer.fileNesting.expand": false,
|
|
||||||
"git.autoStash": true,
|
|
||||||
"git.branchProtection": ["next"],
|
|
||||||
"githubPullRequests.ignoredPullRequestBranches": ["next"],
|
|
||||||
"npm.packageManager": "yarn",
|
|
||||||
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
|
|
||||||
"prettier.useEditorConfig": true,
|
|
||||||
"search.exclude": {
|
|
||||||
"**/.pnp.*": true,
|
|
||||||
"**/.yarn": true,
|
|
||||||
"**/*.lock": true
|
|
||||||
},
|
|
||||||
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
||||||
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
"nexim",
|
|
||||||
"wireit"
|
"wireit"
|
||||||
],
|
|
||||||
"todo-tree.tree.scanMode": "workspace only",
|
|
||||||
"github.copilot.chat.codeGeneration.instructions": [
|
|
||||||
{
|
|
||||||
"file": ".github/copilot-instruction.md"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
5
.yarn/sdks/integrations.yml
vendored
5
.yarn/sdks/integrations.yml
vendored
@@ -1,5 +0,0 @@
|
|||||||
# This file is automatically generated by @yarnpkg/sdks.
|
|
||||||
# Manual changes might be lost!
|
|
||||||
|
|
||||||
integrations:
|
|
||||||
- vscode
|
|
||||||
30
.yarn/sdks/prettier/bin/prettier.cjs
vendored
30
.yarn/sdks/prettier/bin/prettier.cjs
vendored
@@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
const { existsSync } = require(`fs`);
|
|
||||||
const { createRequire, register } = require(`module`);
|
|
||||||
const { resolve } = require(`path`);
|
|
||||||
const { pathToFileURL } = require(`url`);
|
|
||||||
|
|
||||||
const relPnpApiPath = '../../../../.pnp.cjs';
|
|
||||||
|
|
||||||
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
|
||||||
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
|
|
||||||
const absRequire = createRequire(absPnpApiPath);
|
|
||||||
|
|
||||||
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
|
|
||||||
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
|
|
||||||
|
|
||||||
if (existsSync(absPnpApiPath)) {
|
|
||||||
if (!process.versions.pnp) {
|
|
||||||
// Setup the environment to be able to require prettier/bin/prettier.cjs
|
|
||||||
require(absPnpApiPath).setup();
|
|
||||||
if (isPnpLoaderEnabled && register) {
|
|
||||||
register(pathToFileURL(absPnpLoaderPath));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const wrapWithUserWrapper = existsSync(absUserWrapperPath) ? (exports) => absRequire(absUserWrapperPath)(exports) : (exports) => exports;
|
|
||||||
|
|
||||||
// Defer to the real prettier/bin/prettier.cjs your application uses
|
|
||||||
module.exports = wrapWithUserWrapper(absRequire(`prettier/bin/prettier.cjs`));
|
|
||||||
30
.yarn/sdks/prettier/index.cjs
vendored
30
.yarn/sdks/prettier/index.cjs
vendored
@@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
const { existsSync } = require(`fs`);
|
|
||||||
const { createRequire, register } = require(`module`);
|
|
||||||
const { resolve } = require(`path`);
|
|
||||||
const { pathToFileURL } = require(`url`);
|
|
||||||
|
|
||||||
const relPnpApiPath = '../../../.pnp.cjs';
|
|
||||||
|
|
||||||
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
|
||||||
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
|
|
||||||
const absRequire = createRequire(absPnpApiPath);
|
|
||||||
|
|
||||||
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
|
|
||||||
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath);
|
|
||||||
|
|
||||||
if (existsSync(absPnpApiPath)) {
|
|
||||||
if (!process.versions.pnp) {
|
|
||||||
// Setup the environment to be able to require prettier
|
|
||||||
require(absPnpApiPath).setup();
|
|
||||||
if (isPnpLoaderEnabled && register) {
|
|
||||||
register(pathToFileURL(absPnpLoaderPath));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const wrapWithUserWrapper = existsSync(absUserWrapperPath) ? (exports) => absRequire(absUserWrapperPath)(exports) : (exports) => exports;
|
|
||||||
|
|
||||||
// Defer to the real prettier your application uses
|
|
||||||
module.exports = wrapWithUserWrapper(absRequire(`prettier`));
|
|
||||||
7
.yarn/sdks/prettier/package.json
vendored
7
.yarn/sdks/prettier/package.json
vendored
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "prettier",
|
|
||||||
"version": "3.4.2-sdk",
|
|
||||||
"main": "./index.cjs",
|
|
||||||
"type": "commonjs",
|
|
||||||
"bin": "./bin/prettier.cjs"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
enableTelemetry: false
|
|
||||||
|
|
||||||
preferInteractive: true
|
|
||||||
12
package.json
12
package.json
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@nexim/actions",
|
|
||||||
"packageManager": "yarn@4.6.0",
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"format": "prettier . --write",
|
|
||||||
"upd": "yarn set version latest && yarn up '*' && yarn up '*' -R && yarn dlx @yarnpkg/sdks vscode && yarn dedupe"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"prettier": "^3.4.2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/**
|
|
||||||
* @type {import('prettier').Options}
|
|
||||||
*/
|
|
||||||
const config = {
|
|
||||||
singleQuote: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default config;
|
|
||||||
23
yarn.lock
23
yarn.lock
@@ -1,23 +0,0 @@
|
|||||||
# This file is generated by running "yarn install" inside your project.
|
|
||||||
# Manual changes might be lost - proceed with caution!
|
|
||||||
|
|
||||||
__metadata:
|
|
||||||
version: 8
|
|
||||||
cacheKey: 10c0
|
|
||||||
|
|
||||||
"@nexim/actions@workspace:.":
|
|
||||||
version: 0.0.0-use.local
|
|
||||||
resolution: "@nexim/actions@workspace:."
|
|
||||||
dependencies:
|
|
||||||
prettier: "npm:^3.4.2"
|
|
||||||
languageName: unknown
|
|
||||||
linkType: soft
|
|
||||||
|
|
||||||
"prettier@npm:^3.4.2":
|
|
||||||
version: 3.4.2
|
|
||||||
resolution: "prettier@npm:3.4.2"
|
|
||||||
bin:
|
|
||||||
prettier: bin/prettier.cjs
|
|
||||||
checksum: 10c0/99e076a26ed0aba4ebc043880d0f08bbb8c59a4c6641cdee6cdadf2205bdd87aa1d7823f50c3aea41e015e99878d37c58d7b5f0e663bba0ef047f94e36b96446
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
Reference in New Issue
Block a user