Skip to content

constelation/monorepo

Repository files navigation

Hello there! Just wanted to mention that this is not intended to become a big, public thing. You're welcome to use anything and steal any code. Please do not count on us adressing feature requests or issues though.


Mono repo for constelation's Components, functions, and CONSTANTS. See them in action at https://constelation.github.io/monorepo/.

When thinking about these components, it is best to picture them in a WYSIWYG editor (like the image at https://github.com/danscan/fractal). What are the essential pieces of this editor, and how would you convert them to code components?

  • View, ScrollView, Space, Text, Image, and Video would exist on the left side as your palette
  • Style_, Event_, Animate_ would exist as tabs on the right side for editing properties of the palette components
  • Future Layer would exist to coordinate z-index
  • Future Timeline would exist to time/choreograph events

Use

npm i -S
constelation-{view,scroll-view,space,text,image,style_,event_,animate_,keydown-decorator,media-decorator,resize-decorator,scroll-decorator,dom}

Dev

Publish

npm run build - convert packages/*/src/*.ts files to js npm run publish - publish any changes in packages/*/*.js

Note: yarn doesn't work for this. Use npm.

To add back .js.flow files into dist, when facebook/flow#945 is fixed, use this script:

"build": "lerna exec -- babel *.js -d dist --ignore *.native.js,*.js.flow && lerna exec -- find . -maxdepth 1 -name *.native.js -exec cp {} dist \\; && lerna exec -- find . -maxdepth 1 -name *.js.flow -exec cp {} dist \\;",

About

Mono repo for constelation's Components, functions, and CONSTANTS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •