profile
viewpoint
狼叔 i5ting alibaba china beijing http://i5ting.com 少抱怨,多思考,未来更美好

hiproxy/hiproxy 596

🛠 hiproxy is a lightweight proxy tool for Front-End developers based on Node.js that supports an NGINX-like configuration. 🔥

17koa/runkoa 97

DEPRECATED runkoa:使用koa1和koa2的时候,不用在意babel的细节,无论哪种写法(common, generator, async)都完美支持

dev-reading/practical-node-tutorial 86

实用Node.js,简单粗暴,新手学习的最短曲线

17koa/base2-core 19

高度可配置的带有应用生命周期管控的 nodejs web 微框架(同时支持express和koa)

andy0323/ipa-build 13

ipa-build node 它是一款iOS的打包工具. 轻松完成ipa打包

fundon/jstips 13

This is about one JS tip every day!

17koa/node4koa 8

node4koa

bigviewjs/bigview.js 5

结合bigview Node.js模块使用的浏览器端实现

apiejs/apie 4

The simplest api build way based on expressjs

startedjaredpalmer/tsdx

started time in 13 hours

fork i5ting/baretest

An extremely fast and simple JavaScript test runner.

fork in 19 hours

startedvolument/baretest

started time in 19 hours

startedpnpm/pnpm

started time in 19 hours

create barnchi5ting/clipanion-test

branch : master

created branch time in a day

created repositoryi5ting/clipanion-test

created time in a day

startedpikapkg/snowpack

started time in 8 days

startedfastify/aws-lambda-fastify

started time in 14 days

startedzxqfl/TabNine

started time in 22 days

startedykfe/dclone

started time in a month

startedi5ting/nodeparty-beijing-2020-1-11

started time in a month

startedi5ting/nodeparty-beijing-2020-1-11

started time in a month

push eventi5ting/nodeparty-beijing-2020-1-11

狼叔

commit sha 282d8024d1945636ca779e832817f497b73d5adb

lazycommmit, please ignore

view details

push time in a month

push eventi5ting/nodeparty-beijing-2020-1-11

狼叔

commit sha d76c00632c9c30f26ef14de7751a3b24022a6cce

Delete .DS_Store

view details

push time in a month

push eventi5ting/nodeparty-beijing-2020-1-11

狼叔

commit sha 24133653306ef9ca5a18fb5bd0889d4030e6f3ef

lazycommmit, please ignore

view details

push time in a month

create barnchi5ting/nodeparty-beijing-2020-1-11

branch : master

created branch time in a month

created repositoryi5ting/nodeparty-beijing-2020-1-11

created time in a month

pull request commentykfe/egg-react-ssr

feat: multipage example

增加 web/router 目录是否必要。在config.ssr.js里应该是ok的

qq1353709

comment created time in a month

Pull request review commentykfe/egg-react-ssr

feat: multipage example

+# Egg + React + SSR应用骨架++详细用法实现请查看[官方文档](http://ykfe.net)

写和mpa相关的接受报

qq1353709

comment created time in a month

startedxudafeng/slide

started time in a month

startedmachinelearnjs/machinelearnjs

started time in 2 months

startedsveltejs/svelte

started time in 2 months

startedagalwood/Motrix

started time in 2 months

startedumijs/umi-next

started time in 2 months

startedmidwayjs/midway-faas

started time in 2 months

issue openedykfe/egg-react-ssr

Readme英文版问题汇总

1\ boilerplate vs skeleton ?

Boilerplate code
From Wikipedia, the free encyclopedia
In computer programming, boilerplate code or boilerplate is the sections of code that have to be included in many places with little or no alteration. It is often used when referring to languages that are considered verbose, i.e. the programmer must write a lot of code to do minimal jobs. The need for boilerplate can be reduced through high-level mechanisms such as metaprogramming (which has the computer automatically write the needed boilerplate text), convention over configuration (which provides good default values, reducing the need to specify program details in every project) and model-driven engineering (which uses models and model-to-code generators, eliminating the need for boilerplate manual code).

bolierplate描述项目的结构的,而skeleton描述实际应用的

我感觉bolierplate可能会更合适一点

created time in 2 months

startedalyssaxuu/flowy

started time in 3 months

push eventhiproxy/hiproxy

狼叔

commit sha 8371e3646b0eec27db0d5f48efa2108deefbba81

Update README.md

view details

push time in 3 months

push eventhiproxy/hiproxy

狼叔

commit sha 7ccd53ab43dad1ac418126bc4341b1b509e9fa28

Update README.md

view details

push time in 3 months

startedmikeal/sst

started time in 3 months

startedykfe/egg-react-ssr

started time in 3 months

create barnchi5ting/ssr-in-action

branch : master

created branch time in 3 months

created repositoryi5ting/ssr-in-action

created time in 3 months

CommitCommentEvent

startedapache/incubator-apisix

started time in 3 months

issue commentykfe/egg-react-ssr

add koa/express support

app.use(ssr.dev())
i5ting

comment created time in 3 months

issue commentykfe/egg-react-ssr

add koa/express support

上面的方案,解决了product问题

单还存在一个dev时候的问题

  • proxy
  • static

这个有更好的解法么?

i5ting

comment created time in 3 months

issue openedykfe/egg-react-ssr

add koa/express support

  • add packages/middleware,package name:egg-react-ssr
  • add koa/koa middlwares

example

const conf = require('./config/config.ssr')
const ssr = require('egg-react-ssr').koa(conf);

const Koa = require('koa');
const app = new Koa();

app.use(ssr)

app.use(async ctx => {
  ctx.body = 'Hello World';
});

app.listen(3000);

created time in 3 months

startedfrontend9/fe9-library

started time in 3 months

push eventykfe/faas-runtime

狼叔

commit sha a77c493aa3bbf7316421c5c6138919e4b64af7ba

feat: bind ctx.conf & ctx.routes for middleware

view details

push time in 3 months

create barnchykfe/faas-runtime

branch : dev

created branch time in 3 months

push eventykfe/faas-runtime

狼叔

commit sha 5e176df180b398c1691ff02a4f99c2a89f6e3b7f

remove .DS_Store

view details

push time in 3 months

startedalibaba-fusion/next

started time in 3 months

issue commentykfe/egg-react-ssr

bug: 执行npm run csr报错

@yxbgithub1 好的,我们查一下

yxbgithub1

comment created time in 4 months

pull request commentumijs/umi

docs: ssr

可以无缝切换csr和ssr,这个需不需要在特效里补充进来

ycjcl868

comment created time in 4 months

pull request commentumijs/umi

docs: ssr

支持 Serverless,和fc做一下集成就可以了,现在生成的内容是不需要改的

ycjcl868

comment created time in 4 months

CommitCommentEvent

issue commentykfe/egg-react-ssr

能否补充一下PWA的example

@jerryYuX 开一个独立的repo,结合workbox,写一个exampe,把文档集成回来就好了

Lyule

comment created time in 4 months

CommitCommentEvent
CommitCommentEvent
CommitCommentEvent
CommitCommentEvent
CommitCommentEvent

issue openedykfe/umi-in-action

进度用project

created time in 4 months

issue openedykfe/umi-in-action

gitbook or vuepress

created time in 4 months

push eventykfe/umi-in-action

狼叔

commit sha 785e35b6e56de3703c31816b6738e98da7152ce4

Update README.md

view details

push time in 4 months

startedunbrain/book-of-wolf

started time in 4 months

push eventykfe/egg-react-ssr

狼叔

commit sha 50b0570307aebfd7e191a365c30253edec92e57f

Update README.md

view details

push time in 4 months

issue closedykfe/egg-react-ssr

webpack treeskaing 相关bug

image 这几天为了兼容serverless场景对renderToStream方法进行了一些改造,经过测试发现,renderToStream.js期望的被调用环境是在服务端,但是在打包客户端资源时,虽然我们已经启用了tree shaking, 并且打包的结果也并没有renderToStream方法相关代码,但是打包分析的时候以及本地开发模式下,webpack仍然会去分析使用未import的代码,故导致报错

目前想的解决方式是只将客户端或者双端能够通用的文件在ykfe-utils中export出来,而renderToStream不export,改为

const renderToStream = require('ykfe-utils/lib/renderToStream')

上面这种方式来引入具体的文件

如果你有更好的解决方式,欢迎评论

closed time in 4 months

zhangyuang
GollumEvent
GollumEvent
GollumEvent

issue commentykfe/egg-react-ssr

获取数据报错

@LBC100 目前看是没问题的,如果还有问题,给个最小可复现仓库吧

LBC100

comment created time in 4 months

issue closedykfe/egg-react-ssr

获取数据报错

报错信息 image 触发获取数据 image models: image

closed time in 4 months

LBC100

issue commentykfe/egg-react-ssr

获取数据报错

@LBC100 看一下文档,获取数据用的是getInitialProps方法

function Page(props) {
  return <div> {props.name} </div>
}

Page.getInitialProps = async (ctx) => {
  return Promise.resolve({
    name: 'Egg + React + SSR'
  })
}

export default Page
LBC100

comment created time in 4 months

issue commenti5ting/i5ting-mac-init

依赖xcode里的commandline-tools

https://developer.apple.com/download/more/

i5ting

comment created time in 4 months

issue openedi5ting/i5ting-mac-init

依赖xcode里的commandline-tools

created time in 4 months

issue commentykfe/fe-dev-playbook

vscode config

利用

https://r.cnpmjs.org/debug/4.1.1

或者

unpkg

存储个人的vscode config,提供导入导出能力

i5ting

comment created time in 4 months

issue openedykfe/fe-dev-playbook

vscode config

image

$ pwd
/Users/i5ting/Library/Application Support/Code/User
$ ls
globalStorage		settings.json		snippets		workspaceStorage

sys user name is i5ting

created time in 4 months

issue commentykfe/fe-dev-playbook

Hot corners script implement

http://fe.surge.sh/guide/Mac.html#%E8%A7%A6%E5%8F%91%E8%A7%92

image

i5ting

comment created time in 4 months

issue openedykfe/fe-dev-playbook

Hot corners script implement

hotcorner.sh

#! /bin/bash

# Hot corners
# Possible values:
#  0: no-op
#  2: Mission Control
#  3: Show application windows
#  4: Desktop
#  5: Start screen saver
#  6: Disable screen saver
#  7: Dashboard
# 10: Put display to sleep
# 11: Launchpad
# 12: Notification Center

# Top left screen corner → Mission Control
defaults write com.apple.dock wvous-tl-corner -int 2
defaults write com.apple.dock wvous-tl-modifier -int 0

# Top right screen corner → Desktop
defaults write com.apple.dock wvous-tr-corner -int 4
defaults write com.apple.dock wvous-tr-modifier -int 0

# Bottom left screen corner → Show application windows
defaults write com.apple.dock wvous-bl-corner -int 3
defaults write com.apple.dock wvous-bl-modifier -int 0

# Bottom righte screen corner → Start screen saver
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 0


killall Dock

created time in 4 months

issue commentykfe/egg-react-ssr

能否使用zeit now部署?

https://github.com/ykfe/ssr-with-fc 阿里云fc已经能用了,接下来Ginkgo和now,以及umi ssr集成也会很简单

i5ting

comment created time in 4 months

issue commentykfe/egg-react-ssr

框架的TS支持库怎么没有文档……

在整理基于midway的实现,稍后放出来

scott-leung

comment created time in 4 months

startedykfe/ssr-with-fc

started time in 4 months

push eventykfe/egg-react-ssr

狼叔

commit sha b2b244583dbe88e7c2ea85981c434d7eadc26e22

Update README.md - 将答疑群移到最后 - 将使用的公司放到快速开始前面 - 增加开源协议MIT - 调整Vmate的url为招聘地址

view details

push time in 5 months

CommitCommentEvent
CommitCommentEvent
CommitCommentEvent
CommitCommentEvent
CommitCommentEvent
CommitCommentEvent

issue closedykfe/egg-react-ssr

ykcli: command not found(ykcli 命令无法使用)

windows下面,npm i -g yk-cli 安装成功: image 然后添加至环境变量: image 然后ykcli仍无法使用: image

closed time in 5 months

panzhengtao

issue commentykfe/egg-react-ssr

ykcli: command not found(ykcli 命令无法使用)

@zhangyuang 确认发布了就close了

panzhengtao

comment created time in 5 months

issue commentykfe/fe-dev-playbook

git部分增加对fork客户端的推荐

@Emo1995 pr welcome

i5ting

comment created time in 5 months

startedjquense/yup

started time in 5 months

issue closedykfe/fe-dev-playbook

Standardjs 和 Prettier 区别在哪里···功能方面或者易用性方面

Standardjs 和 Prettier 区别在哪里···功能方面或者易用性方面

closed time in 5 months

qiurenbo

pull request commentPana/nrm

Add tencent registry

Readme文档没有更新吧?

ifyour

comment created time in 5 months

issue closedykfe/egg-react-ssr

CSR的一些疑问

我本地yarn csr 开启客户端渲染 查看界面元素发现这些资源文件: 20190925095846 但是看代码逻辑是不包含这些资源文件的啊: 20190925095707 不知道是不是我哪里没理解清楚? @zhangyuang

closed time in 5 months

HadeAs

issue closedykfe/egg-react-ssr

是否支持远程加载静态资源文件

目前示例里的前端页面代码都是放在web/page目录下的。通过config.ssr.js中的这块代码 Component: () => (require('@/page/index').default)去加载。 但是现在有一种场景就是,这些前端代码都是单独部署的独立应用,是否可以提供一种机制去加载这些独立应用编译打包后的js,css文件 @zhangyuang

closed time in 5 months

HadeAs

startedykfe/fe-dev-playbook

started time in 5 months

startedvintagewang/linux-v0.11

started time in 5 months

startedykfe/egg-react-ssr

started time in 5 months

issue openedzhangyuang/ssr-cli

coc约定优于配置

写法1:啰嗦

News.getInitialProps = (ctx) => {
  return fetch(ctx)
}

写法2

News.getInitialProps = fetch

写法3:

不写fetch,默认找fetch.js。如果f.yml里有,比如fetch=a,那就去找a.js

created time in 5 months

issue openedzhangyuang/ssr-cli

chrome下h5模式样式问题

created time in 5 months

issue closedykfe/egg-react-ssr

增加Windows上的ci

1)参见 https://circleci.com/docs/2.0/hello-world-windows/ 保证win下的兼容性

2)目前项目里是node8的镜像,其他版本的也加一下 暂定node8+。如果激进点node10+也没问题

closed time in 5 months

i5ting

issue commentykfe/egg-react-ssr

npm run csr 报错

@bs32g1038 稍等,win下我们测试一下

bs32g1038

comment created time in 5 months

more