Giter Club home page Giter Club logo

egg's People

Contributors

hunvreus avatar johncalvinroberts avatar z4rd avatar

Watchers

 avatar  avatar

egg's Issues

Support component-based use

As per readme:

Import CSS for the components you need, to use as styles alongside your existing frontend framework.

I want to start by making this compatible with both react & vue. The UX should be something like:

react

import React, { Component } from 'react'
import modal from 'eggcss/components/modal'

export class Modal extends Component {
   render () {
     return (<div className="modal">
                   {this.props.children}
               </div>
       )
  }
}

vue

<style lang="scss" src="eggcss/components/modal.scss"></style>

<template>
  <div :class="['modal', activeClassName]">
    <slot/>
  </div>
</template>

<script>
export default {
  props: {
    active: {
      type: Boolean,
      default: false
    }
  },
  computed: {
      activeClassName () {
        return this.active ? 'active' : ''
      }
  }
}
</script>

I'm pretty sure to achieve this I will need to move away from simple NPM scripts to an actual build tool, i.e. webpack to output the component css bundles.

Set up release pipeline

  • Publish to npm under egshell or eggcss
  • Update all examples in examples to use npm package
  • Update README.md
  • Sort out versioning
  • Sort out releases on master repo
  • Configure travis ci, e.g., see issue add travis ci for all things that travis should do

Add Travis ci

These are all the things that Travis should do when push to master

  • Publish to npm
  • Publish release on github
  • Update README.md on github repo with badges for version & build: passing
  • Update package.json on github repo (with version)

Add examples in repo

  • Out of the Box™ - vanilla
  • Parcel-built-from-source
  • Parcel-out-of-the-box
  • jekyll-built-from-source
  • React - Out of the Box™
  • React - Built from source
  • React - Component based
  • Vue - Out of the Box™
  • Vue - Built from source
  • Vue - Component based
  • Rails - Built from source

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.