open-index/open-npm huggingface dataset:
npm package: @mdd-all/storybook-addon-formilyjs
Description: [https://github.com/storybookjs/addon-kit](https://github.com/storybookjs/addon-kit)
Author: houjinlong
Latest version: 0.0.10

# storybook-addon-formilyjs

[https://github.com/storybookjs/addon-kit](https://github.com/storybookjs/addon-kit)

## 使用

1.`.storybook/main.js` 增加插件

```
...
addons: ['@xc/storybook-addon-formilyjs',...],
...
```


2.`.storybook/preview.js` 配置插件参数

```
import { addParameters } from '@storybook/react'
addParameters({
  lowcode_schema:{
    iframe:'http://172.20.20.75:3709/storybook-addon-formilyjs-iframe/index.html',
  }
})

```
3.组件stories配置插件参数

```
const Template: Story<RankProps> = (args) => ...

export const 使用 = Template.bind({});
使用.parameters = {
  lowcode_schema:{
    ....
  },
}
```
## 开发

1. 实时构建插件代码
```
yarn nx build storybook-addon-formilyjs --watch
```

2. 构建插件测试storybook代码
```
yarn nx run storybook-addon-formilyjs:storybook
```


## 本地发布


```
yarn nx build storybook-addon-formilyjs  &&
cd dist/libs/storybook-addon-formilyjs/ &&  
yalc publish && yalc push && cd ../../../
```

```
yalc add @xc/storybook-addon-formilyjs@0.0.1 -D
```

## 发布

> 修改版本号然后

```
yarn nx run storybook-addon-formilyjs:publish 
```
npm package: @mdd-sa/components
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
Latest version: 0.0.10

# Components

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.

## Code scaffolding

Run `ng generate component component-name --project components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project components`.
> Note: Don't forget to add `--project components` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build components` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build components`, go to the dist folder `cd dist/components` and run `npm publish`.

## Running unit tests

Run `ng test components` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @mdd0x/eslint-config-pancake
Description: Eslint config for PancakeSwap
Author: RabbitDoge
Latest version: 1.0.0

# eslint-config-pancake

Pancake Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @pancakeswap-libs/eslint-config-pancake
```

Add `"extends": "@pancakeswap-libs/eslint-config-pancake"` to your eslint config file.
npm package: @mdd95/sveltekit-adapter-node
Description: Adapter for SvelteKit apps that generates a standalone Node server with added support for WebSocket as plugin.
Latest version: 1.1.0

# @mdd95/adapter-node

[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that generates a standalone Node server with added support for WebSocket as plugin.

## Installation

```bash
npm install -D @mdd95/sveltekit-adapter-node
```

## Usage examples

### Using [Node.js WebSocket library](https://github.com/websockets/ws)

```ts
// plugin.ts
import { WebSocketServer } from 'ws';
import type http from 'node:http';

const wss = new WebSocketServer({ noServer: true });

wss.on('connection', (ws) => {
	ws.on('message', (data) => {
		console.log('received: %s', data);
	});
});

export default function plugin(server: http.Server) {
	server.on('upgrade', function (req, socket, head) {
		if (req.url === '/') {
			wss.handleUpgrade(req, socket, head, (ws) => {
				wss.emit('connection', ws, req);
			});
		} else {
			socket.destroy();
		}
	});
}
```

Update svelte.config.js

```js
// svelte.config.js
import adapter from '@mdd95/sveltekit-adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	preprocess: vitePreprocess(),

	kit: {
		adapter: adapter({
			pluginPath: 'plugin.ts'
		})
	}
};

export default config;
```

During development, you can create a separate server

```js
// dev.ts
import http from 'node:http';
import plugin from './plugin.ts';

const PORT = 8000;
const server = http.createServer();

plugin(server);
server.listen(PORT, () => {
	console.log(`Listening on http://localhost:${PORT}`);
});
```

Then run it using `tsx`:

```bash
npx tsx watch dev.ts
```

And run it parallel using `concurrently`

```json
// package.json
{
	"scripts": {
		"dev:vite": "vite dev",
		"dev:ws": "tsx watch dev.ts",
		"dev": "concurrently --kill-others \"npm run dev:vite\" \"npm run dev:ws\"",
		"preview": "node build/index.js"
	}
}
```

### Using [Socket.IO](https://github.com/socketio/socket.io)

```ts
// plugin.ts
import { dev } from '$app/environment';
import { Server } from 'socket.io';
import type http from 'node:http';

export default function plugin(server: http.Server) {
	const io = new Server(server, {
		cors: { origin: dev && '*' }
	});

	io.on('connection', (socket) => {
		// Handle connection
	});
}
```

```svelte
<!-- src/routes/+page.svelte -->
<script lang="ts">
	import { dev } from '$app/environment';
	import { io } from 'socket.io-client';

	$effect(() => {
		const socket = io(dev && 'ws://localhost:8000');
	});
</script>
```

## Changelog

[The Changelog for this package is available on GitHub](CHANGELOG.md).

## License

[MIT](LICENSE)