-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
7,754 additions
and
5,795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,24 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: yarn | ||
|
||
- name: 🏗 Setup nodejs corepack | ||
run: corepack enable | ||
|
||
- name: 🏗 Get yarn config | ||
id: yarn_config | ||
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/[email protected] | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: 🏗 Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --immutable | ||
|
||
- name: 🚀 Build Typescript | ||
run: yarn build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ env: | |
|
||
jobs: | ||
publish-npm: | ||
if: github.repository_owner == 'AliMD' | ||
if: github.repository_owner == 'Alwatr' | ||
|
||
name: Publish NPM | ||
runs-on: ubuntu-latest | ||
|
@@ -29,12 +29,25 @@ jobs: | |
- name: 🏗 Setup nodejs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{env.NODE_VERSION}} | ||
registry-url: https://registry.npmjs.org/ | ||
cache: yarn | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: 🏗 Setup nodejs corepack | ||
run: corepack enable | ||
|
||
- name: 🏗 Get yarn config | ||
id: yarn_config | ||
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/[email protected] | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: 🏗 Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: yarn install --immutable | ||
|
||
- name: 🏗 Build Typescript | ||
run: yarn build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nodeLinker: node-modules | ||
enableTelemetry: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,16 @@ | |
"main": "index.js", | ||
"author": "S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)", | ||
"type": "module", | ||
"private": "true" | ||
"private": true, | ||
"dependencies": { | ||
"@alwatr/fsm": "workspace:^", | ||
"@alwatr/logger": "^2.1.3", | ||
"@alwatr/server-context": "workspace:^", | ||
"@alwatr/signal": "workspace:^", | ||
"@alwatr/type": "^1.1.5", | ||
"@alwatr/util": "^1.2.10" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.9.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "alwatr-signal", | ||
"description": "Elegant powerful event system for handle global signals and states base on observable design pattern, written in tiny TypeScript module.", | ||
"repository": "https://github.com/AliMD/alwatr-signal", | ||
"repository": "https://github.com/Alwatr/signal", | ||
"author": "S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)", | ||
"license": "MIT", | ||
"type": "module", | ||
|
@@ -14,29 +14,29 @@ | |
"demo" | ||
], | ||
"scripts": { | ||
"l": "yarn lint", | ||
"b": "yarn build", | ||
"l": "yarn run lint", | ||
"b": "yarn run build", | ||
"br": "run-s build build:r", | ||
"c": "yarn clean", | ||
"c": "yarn run clean", | ||
"cb": "run-s clean build", | ||
"s": "run-s build serve", | ||
"w": "yarn watch", | ||
"f": "yarn format", | ||
"fl": "yarn format:eslint", | ||
"fp": "yarn format:prettier", | ||
"w": "yarn run watch", | ||
"f": "yarn run format", | ||
"fl": "yarn run format:eslint", | ||
"fp": "yarn run format:prettier", | ||
"rl": "run-s pull clean build release", | ||
"lint": "run-s lint:*", | ||
"lint": "run-s 'lint:*'", | ||
"lint:ts": "eslint . --config .eslintrc.json --ext .ts", | ||
"build": "run-s build:ts build:r", | ||
"build:ts": "tsc --build", | ||
"build:r": "lerna run build", | ||
"format": "run-s format:prettier format:eslint", | ||
"format:eslint": "yarn lint:ts --fix", | ||
"format:eslint": "yarn run lint:ts --fix", | ||
"format:prettier": "prettier . --ignore-path .gitignore --write", | ||
"clean": "git clean -d -x -f --exclude=node_modules --exclude=*.env --exclude=_data", | ||
"clean": "git clean -d -x -f --exclude=node_modules --exclude='*.env' --exclude=_data --exclude='.pnp*' --exclude=.yarn", | ||
"serve": "wds", | ||
"watch": "run-p watch:* serve", | ||
"watch:ts": "yarn build:ts --watch --preserveWatchOutput", | ||
"watch": "run-p 'watch:*' serve", | ||
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput", | ||
"pull": "git pull", | ||
"release": "lerna version", | ||
"publish": "lerna publish from-package" | ||
|
@@ -50,15 +50,16 @@ | |
"@lerna-lite/run": "^2.6.0", | ||
"@lerna-lite/version": "^2.5.1", | ||
"@types/node": "^20.9.0", | ||
"@web/dev-server": "^0.4.0", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"@web/dev-server": "^0.4.0", | ||
"eslint": "^8.53.0", | ||
"eslint-import-resolver-typescript": "^3.6.1", | ||
"eslint-plugin-import": "^2.29.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.0.3", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.