1.1.198 • Published 2 months ago

create-ssr-app v1.1.198

Weekly downloads
72
License
MIT
Repository
github
Last release
2 months ago

create-ssr-app

Fast create an server-side-render app contains both serverless ssr and egg-react-ssr realized by dclone

create-ssr-app 用于快速创建 ssr 服务端渲染应用。可创建基于 ssr 框架 的开箱即用的服务端渲染应用,以及 egg-react-ssr 骨架类型的应用。如无特殊需求,我们推荐创建基于 ssr 框架 的开箱即用的服务端渲染应用

创建应用

我们提供了两种方式来快速创建应用

手动选择(推荐使用)

$ npm init ssr-app my-ssr-project
$ cd my-ssr-project
$ npm install
$ npm start

npm.io

手动选择需要创建的应用类型 基于 ssr 框架

命令行指定模版类型

通过该方式来手动制定需要创建的模版类型。同时支持创建基于 ssr 框架 的开箱即用的服务端渲染应用,以及egg-react-ssr 骨架类型的应用

   const templateMap: TemplateMap = {
    'spa': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-react-ssr',
    'serverless-react-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-react-ssr',
    'serverless-vue-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-vue-ssr',
    'midway-react-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-react-ssr',
    'midway-vue-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-vue-ssr',
    'midway-vue3-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/midway-vue3-ssr',
    'nestjs-react-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/nestjs-react-ssr',
    'nestjs-vue-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/nestjs-vue-ssr',
    'nestjs-vue3-ssr': 'https://github.com/zhangyuang/ssr/tree/dev/example/nestjs-vue3-ssr',
    'ssr-with-js': 'https://github.com/zhangyuang/egg-react-ssr/tree/dev/example/ssr-with-js',
    'ssr-with-ts': 'https://github.com/zhangyuang/egg-react-ssr/tree/dev/example/ssr-with-ts',
    'ssr-with-antd': 'https://github.com/zhangyuang/egg-react-ssr/tree/dev/example/ssr-with-antd',
    'ssr-with-dva': 'https://github.com/zhangyuang/egg-react-ssr/tree/dev/example/ssr-with-dva'
  }
$ npm init ssr-app my-ssr-project --template=serverless-react-ssr
$ npm init ssr-app my-ssr-project -- --template=midway-react-ssr # when Node.js >= 15 || NPM >= 7
$ cd my-ssr-project
$ npm install
$ npm start

Publish On NPM

$ npm version patch|minor|major
$ git push origin master # github ci will publish package on NPM automatically
1.1.198

2 months ago

1.1.197

2 months ago

1.1.196

3 months ago

1.1.195

3 months ago

1.1.194

3 months ago

1.1.193

4 months ago

1.1.191

9 months ago

1.1.190

10 months ago

1.1.189

1 year ago

1.1.188

1 year ago

1.1.187

1 year ago

1.1.186

1 year ago

1.1.185

1 year ago

1.1.184

2 years ago

1.1.183

2 years ago

1.1.182

2 years ago

1.1.181

2 years ago

1.1.179

2 years ago

1.1.177

2 years ago

1.1.176

2 years ago

1.1.175

2 years ago

1.1.174

2 years ago

1.1.178

2 years ago

1.1.173

2 years ago

1.1.172

2 years ago

1.1.171

2 years ago

1.1.170

2 years ago

1.1.149

3 years ago

1.1.166

2 years ago

1.1.165

2 years ago

1.1.164

2 years ago

1.1.163

2 years ago

1.1.162

2 years ago

1.1.161

2 years ago

1.1.160

2 years ago

1.1.169

2 years ago

1.1.168

2 years ago

1.1.167

2 years ago

1.1.155

2 years ago

1.1.154

2 years ago

1.1.153

2 years ago

1.1.152

2 years ago

1.1.151

2 years ago

1.1.150

2 years ago

1.1.159

2 years ago

1.1.158

2 years ago

1.1.157

2 years ago

1.1.156

2 years ago

1.1.144

3 years ago

1.1.143

3 years ago

1.1.142

3 years ago

1.1.148

3 years ago

1.1.147

3 years ago

1.1.146

3 years ago

1.1.145

3 years ago

1.1.139

3 years ago

1.1.129

3 years ago

1.1.128

3 years ago

1.1.127

3 years ago

1.1.125

3 years ago

1.1.133

3 years ago

1.1.132

3 years ago

1.1.131

3 years ago

1.1.130

3 years ago

1.1.138

3 years ago

1.1.135

3 years ago

1.1.134

3 years ago

1.1.108

3 years ago

1.1.121

3 years ago

1.1.120

3 years ago

1.1.124

3 years ago

1.1.123

3 years ago

1.1.109

3 years ago

1.1.111

3 years ago

1.1.110

3 years ago

1.1.119

3 years ago

1.1.118

3 years ago

1.1.116

3 years ago

1.1.115

3 years ago

1.1.114

3 years ago

1.1.113

3 years ago

1.1.112

3 years ago

1.1.107

3 years ago

1.1.100

3 years ago

1.1.106

3 years ago

1.1.105

3 years ago

1.1.104

3 years ago

1.1.103

3 years ago

1.1.102

3 years ago

1.1.101

3 years ago

1.1.92

3 years ago

1.1.91

3 years ago

1.1.90

3 years ago

1.1.96

3 years ago

1.1.95

3 years ago

1.1.94

3 years ago

1.1.93

3 years ago

1.1.99

3 years ago

1.1.98

3 years ago

1.1.97

3 years ago

1.1.89

3 years ago

1.1.88

3 years ago

1.1.78

3 years ago

1.1.79

3 years ago

1.1.81

3 years ago

1.1.80

3 years ago

1.1.85

3 years ago

1.1.84

3 years ago

1.1.83

3 years ago

1.1.82

3 years ago

1.1.87

3 years ago

1.1.86

3 years ago

1.1.77

3 years ago

1.1.76

3 years ago

1.1.74

3 years ago

1.1.73

3 years ago

1.1.72

3 years ago

1.1.71

3 years ago

1.1.70

3 years ago

1.1.67

3 years ago

1.1.66

3 years ago

1.1.65

3 years ago

1.1.69

3 years ago

1.1.64

3 years ago

1.1.63

3 years ago

1.1.62

3 years ago

1.1.61

3 years ago

1.1.60

3 years ago

1.1.56

3 years ago

1.1.55

3 years ago

1.1.54

3 years ago

1.1.59

3 years ago

1.1.58

3 years ago

1.1.57

3 years ago

1.1.52

3 years ago

1.1.51

3 years ago

1.1.53

3 years ago

1.1.50

3 years ago

1.1.49

3 years ago

1.1.48

3 years ago

1.1.47

3 years ago

1.1.41

3 years ago

1.1.44

3 years ago

1.1.43

3 years ago

1.1.42

3 years ago

1.1.46

3 years ago

1.1.40

3 years ago

1.1.39

3 years ago

1.1.38

4 years ago

1.1.29

4 years ago

1.1.28

4 years ago

1.1.34

4 years ago

1.1.33

4 years ago

1.1.32

4 years ago

1.1.31

4 years ago

1.1.37

4 years ago

1.1.35

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.24

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.1.1

4 years ago