Giter Club home page Giter Club logo

baseshopgen's Introduction

ReadMe

https://github.com/hisho/react-static-generator こちらのソースを参考にさせていただきました。ありがとうございます。

使い方

まずyarnしてnode_modulesを生成してください。

yarn startするとhtmlファイルが生成されローカルサーバー( http://localhost:9000/ )が立ち上がります。同時に本番用のテンプレートファイルも生成されます。

フォルダ構成

├── ReadMe.md
├── dist
│   ├── ここに生成されたプレビュー用のhtmlファイルが出力されます。
├── dist_template
│   └── ここに本番用のBASEテンプレートhtmlファイルが出力されます。
├── img 画像を扱う場合はここに置いてください(本番環境へは手動でアップロードする必要があります。)
├── src
│   ├── base_template 本番テンプレート用のtsx dist_templateの元になります。
│   ├── components Reactコンポーネント
│   ├── helpers BASEのタグ用関数とHTMLをレンダリングするためのファイル
│   ├── index.js webpack用のダミーjsファイル
│   └── pages このフォルダ内にあるtsxがプレビュー用のhtmlとして出力されます。 distの元になります。
├── webpack.config.js react->HTML変換のための設定も書かれています。

baseshopgen's People

Contributors

ika-gyosen avatar

Stargazers

Takashi Murata avatar

Watchers

James Cloos avatar  avatar

Forkers

redimpulz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.