资源算法inferno-website

inferno-website

2020-01-08 | |  36 |   0 |   0

Installation

npm install

How to run

For development:

npm run dev
# webpack
open http://localhost:8082
# server
open http://localhost:8080

For dev prod:

npm run prod

Deploying

Build:

npm run build

Start:

npm run start
open http://localhost:8050

Deploy:

now
  1. we run npm run build

  2. this creates the dist directory (and so that we can copy things from src, and public, those sub directories)

  3. we copy the code, and run babel on src => dist/src (this is done also when we run now-build using zeit now static build, configured in the now.json

  4. dist/src/server.js is run with node

Requirements

Node 8+

Useful links

  • Inferno - What this website is all about

  • Project structure based on Inferno-starter

  • Typescript project setup with ts-transform-inferno can be found here.

TODO

  • should not transpile the server in the same way

  • can use ts + babel...

  • precompile the markdown


上一篇:inferno-starter

下一篇:inferno-typescript-example

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...