-
Notifications
You must be signed in to change notification settings - Fork 0
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
362 changed files
with
26,001 additions
and
1,900 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -110,3 +110,6 @@ dist | |
docs/.vitepress/dist | ||
docs/.vitepress/cache | ||
docs/api | ||
|
||
# build | ||
.turbo |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false, | ||
"singleQuote": true, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"arrowParens": "always", | ||
"rangeStart": 0, | ||
"rangeEnd": 999999, | ||
"requirePragma": false, | ||
"insertPragma": false, | ||
"proseWrap": "preserve", | ||
"htmlWhitespaceSensitivity": "css", | ||
"vueIndentScriptAndStyle": false, | ||
"endOfLine": "lf", | ||
"embeddedLanguageFormatting": "auto", | ||
"plugins": ["prettier-plugin-organize-imports"] | ||
} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
{ | ||
"extends": ["custom"] | ||
} |
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,42 @@ | ||
import type { UserConfig } from '@farmfe/core' | ||
import dts from '@farmfe/js-plugin-dts' | ||
import { builtinModules } from 'node:module' | ||
import path from 'node:path' | ||
|
||
const config: UserConfig = { | ||
compilation: { | ||
input: { | ||
index: 'src/index.ts' | ||
}, | ||
output: { | ||
path: 'dist', | ||
entryFilename: '[entryName].js', | ||
targetEnv: 'node', | ||
format: 'esm' | ||
}, | ||
resolve: { | ||
alias: { | ||
'@/': path.join(process.cwd(), 'src') | ||
} | ||
}, | ||
external: [...builtinModules.map((x) => `^${x}$`), ...builtinModules.map((x) => `^node:${x}$`)], | ||
partialBundling: { | ||
enforceResources: [ | ||
{ | ||
name: 'index.js', | ||
test: ['.+'] | ||
} | ||
] | ||
}, | ||
minify: false, | ||
sourcemap: false, | ||
presetEnv: false | ||
}, | ||
plugins: [ | ||
dts({ | ||
tsConfigPath: './tsconfig.json' | ||
}) | ||
] | ||
} | ||
|
||
export default config |
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,44 @@ | ||
{ | ||
"name": "core", | ||
"version": "0.3.11", | ||
"description": "A functional library for TypeScript/JavaScript", | ||
"type": "module", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"files": ["dist"], | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "farm build", | ||
"package": "rollup -c rollup.config.mjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", | ||
"release": "pnpm package && release-it", | ||
"call": "tsx cli", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"lint": "pnpm call lint", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "typedoc && pnpm call cleanDoc && vitepress build docs", | ||
"docs:preview": "vitepress preview docs" | ||
}, | ||
"author": "niuiic", | ||
"homepage": "https://flow.niuiic.com", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/niuiic/flow.git" | ||
}, | ||
"keywords": ["functional programming", "stream programming", "lazy evaluation", "concurrency"], | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"devDependencies": { | ||
"@farmfe/cli": "^0.5.8", | ||
"@farmfe/core": "^0.13.19", | ||
"@farmfe/js-plugin-dts": "^0.2.0", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig": "workspace:*" | ||
} | ||
} |
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
7 changes: 4 additions & 3 deletions
7
src/flow/errThenEnd.ts → packages/core/src/flow/errThenEnd.ts
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
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,13 @@ | ||
export * from './andThen' | ||
export * from './anyway' | ||
export * from './errThen' | ||
export * from './errThenEnd' | ||
export * from './flow' | ||
export * from './ifThen' | ||
export * from './inject' | ||
export * from './inspect' | ||
export * from './into' | ||
export * from './log' | ||
export * from './mapErr' | ||
export * from './result' | ||
export * from './useFlow' |
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.