Sunchoke is a set of reusable components built with AngularJS
bower install sunchoke
Npm and Bower "main files" configuration refers to
Feel free to override the configuration as you need in your project configuration
"overrides": {
"sunchoke": {
"main": [
"dist/sunchoke.min.js",
"dist/sunchoke.min.css"
]
},
}
angular.module('my-app', [
'talend.sunchoke'
... your other dependencies
])
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
You can lint your code with eslint
npm run lint
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.
To generate distribution files
npm run dist
This will generate in a dist/
folder containing
You can freely submit a pull request. Github documentation
Before that :
Sunchoke user documentation is hosted by Github Pages. It is based on gitbook.
Please refer to gh-pages branch README to add your documentation.
Apache License Version 2.0, January 2004
See LICENCE file