Giter Site home page Giter Site logo

talend-glorieux / sunchoke Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talend/sunchoke

0.0 0.0 0.0 843 KB

Reusable UI widgets library

Home Page: http://talend.github.io/sunchoke

License: Apache License 2.0

JavaScript 85.22% CSS 14.78%

sunchoke's Introduction

Sunchoke is a set of reusable components built with AngularJS and Bourbon

Dependencies

Dependency Status devDependency Status

  • angularJS 1.5 min. The widgets are based on the component helper definition introduced with version 1.5.
  • angular-animate. Some widgets use angular-animate to perform some animations
  • Bourbon 4. Bourbon is a sass library.

Getting started

With Bower
bower install sunchoke
Main files

Npm and Bower "main files" configuration refers to

  • the non minified distribution file
  • the main Sass file (not the generated css)

Feel free to override the configuration as you need in your project configuration

"overrides": {
    "sunchoke": {
      "main": [
        "dist/sunchoke.min.js",
        "dist/sunchoke.min.css"
      ]
    },
}
Add sunchoke module to your project
angular.module('my-app', [
    'talend.sunchoke'
    ... your other dependencies
])

Contribute

CLI

To create a new widget, please use the CLI to create the files and follow our naming conventions.

npm run add:widget

This will launch a CLI. You will have to answer 2 questions

  • The widget name in camelCase with a capital letter (ex: FancyButton)
  • Choose the optional entities (style file, controller file)
Lint

You can lint your code with eslint

npm run lint
Tests
npm run test

To run the tests in watch mode

npm run test:auto

The tests run generates a code coverage, available in the created coverage/ folder.

Distribution

To generate distribution files

npm run dist

This will generate in a dist/ folder containing

  • a minified Sunchoke lib,
  • a non minified one
  • a generated minified css file
  • a non minified one
Git

You can freely submit a pull request. Github documentation

Before that :

  • use ES6
  • use Sass and bourbon mixins
  • lint and clean your code
  • test your code
  • Please squash ! Documentation
Documentation

Sunchoke user documentation is hosted by Github Pages. It is based on gitbook.

Please refer to gh-pages branch README to add your documentation.

Licence

Apache License Version 2.0, January 2004

See LICENCE file

sunchoke's People

Contributors

jsomsanith-tlnd avatar jsomsanith avatar olamy avatar bguillon-td avatar frassinier avatar

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.