Skip to content

null223/minista

 
 

Repository files navigation

minista

About

minista(ミニスタ)は、React(JSX)で書ける web コーディング用の小さいスタティックサイトジェネレーターです。

  • ゼロコンフィグ
  • React(JSX)から静的な HTML を出力
  • Next.js 風のディレクトリ構成
  • CSS / Dart Sass / PostCSS (Autoprefixer etc.)
  • JavaScript / ESNext / Babel
  • node_modules からのライブラリ読み込み
  • ソースコードの Minify

How To Use

Setup

$ npm install --save-dev minista
# ----------------------------------------------------
# Directory Example
# ----------------------------------------------------

public # Copy root
src
├── assets
│   └── index.js # Required!
├── components
│   └── layout.js
└── pages # Required!
    ├── about
    │   └── index.js
    └── index.js
//----------------------------------------------------
// Page Example
//----------------------------------------------------

import React from "react" // Required!
import { render } from "minista" // Required!

const Home = () => {
  return render( // Required!
    <h1>Hello</h1>
  )
}

export default Home

Develop

# Start
$ minista

# Stop
Press Ctrl+C

Build

$ minista build

Components

Comment

Input

import React from "react"
import { render, Comment } from "minista"

const Home = () => {
  return render(
    <>
      <Comment text="Comment Test" />
      <h1>Hello</h1>
    </>
  )
}

export default Home

output

<body>
  <!-- Comment Test -->
  <h1>Hello</h1>
</body>

Respect

License

  • MIT

Credit

About

Mini static site generator that can be written in React (JSX) for web coding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.9%
  • CSS 2.6%
  • SCSS 2.5%