Giter Site home page Giter Site logo

obt demo about origami-build-tools HOT 4 CLOSED

JakeChampion avatar JakeChampion commented on June 24, 2024 1
obt demo

from origami-build-tools.

Comments (4)

JakeChampion avatar JakeChampion commented on June 24, 2024 1

A really good folder of Origami React components -- https://github.com/Financial-Times/spark-lists/blob/master/src/client/components/Origami/SelectBox.js

Thanks to @taktran for showing it to us :-)

from origami-build-tools.

chee avatar chee commented on June 24, 2024 1

let's create a greenfield standalone component demo command, and then use that in obt

from origami-build-tools.

gvonkoss avatar gvonkoss commented on June 24, 2024

the outlined plan for oat demos behaviour is something along the lines of:

`
`oat demo`
Setup:
  ├─ gets component's `origami.json`
  │    ├─ shared demo config [object]
  │    │   ├─ demo react template [file]
  │    │   ├─ demo variant rules [array]
  │    │   ├─ demo browserFeaters [array]
  │    │   ├─ demo documentClasses [string]
  │    │   ├─ demo dependencies [string]
  │    │   └─ ...
  │    └─ individual demo config [object] 
  │        ├─ title [string]
  │        ├─ description [string]
  │        ├─ name [string]
  │        └─ data object with same keys as variant rules [object]
  │
  ├─ generates HTML for each demo
  │    └─ outputs {demo-name}.html [file]
  │        ├─ demo title
  │        ├─ shared documentClasses
  │        ├─ shared browserFeatures [head:<script>]
  │        ├─ shared dependencies [head:<script>]
  │        ├─ shared styles [head:<link>]
  │        ├─ entry element with id [body:<main>]
  │        └─ demo-name.js(x) [body:<script>] (output below)
  │
  ├─ generates shared styles [file]
  │
  └─ generates sandbox for each demo 
      ├─ outputs React sandbox structure [file|folder]
      │   ├─ sandbox component [file]
      │   └─ form elements [folder]
      │       ├─ main form component [file]
      │       ├─ text component [file]
      │       ├─ textarea component [file]
      │       ├─ select component [file]
      │       ├─ checkbox component [file]
      │       └─ ...
      └─ outputs {demo-name.js(x)} [file]
          ├─ sandbox component
          ├─ component react template
          └─ render functionality

Server
  ¯\_(ツ)_/¯

from origami-build-tools.

notlee avatar notlee commented on June 24, 2024

Closing because more imminent obt demo changes are captured here:
#735

from origami-build-tools.

Related Issues (20)

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.