Comments (4)
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.
let's create a greenfield standalone component demo command, and then use that in obt
from origami-build-tools.
the outlined plan for oat demo
s 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.
Closing because more imminent obt demo
changes are captured here:
#735
from origami-build-tools.
Related Issues (20)
- v11 bug: package.json.name validation is too lax
- Orphaned Repository - For Archiving.
- Dependabot needs permission to see karma-proclaim HOT 1
- remove `obt init` HOT 2
- add tests for the `dev` command
- Long lines get truncated in terminal
- proposal: add sub-command help flags
- Improve the karma-scrumple error message when dependencies have not been installed HOT 1
- Bug: obt test -- TypeError: Cannot read property 'trim' of undefined
- Defer to the depended on version of create-origami-component
- Use component `.remarkrc.js`
- Require component lint configuration HOT 4
- Is it ok that component configuration is dynamically required? HOT 1
- major: throw an error when `obt verify` finds readme issues? HOT 1
- feature: verify demo compilation per brand
- feature: install demo dev dependencies instead of using the build service HOT 1
- Feature request: Improve component spec v1 error messaging
- Feature: improve error message when origami.json.demos is not an array
- Feature: check the built demo html is syntactically valid HOT 1
- Bug: obt v11 beta uses wrong logic for validating origami.json version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from origami-build-tools.