This project is publishing bower component inside another git repo https://github.com/AlbanAndrieu/nabla-bower-sample-component
This project is based on AngularJS
Aim is to deploy bower component inside private-bower
It contains a bower component that allow to easily override bootstrap
See pre-commit
Run pre-commit install
Run pre-commit autoupdate
Run pre-commit run --all-files
Commit git commit -am 'TEST' --no-verify
See [takari-maven-wrapper] (https://github.com/takari/maven-wrapper)
mvn -N io.takari:maven:wrapper
#npm cache clean -f
npm install -g n
#n stable
n 8.9.4
node -v
/usr/local/bin/node -v
npm install -g npm@5.5.1
Install NPM modules.
sudo npm install.
Install Javascript dependencies.
bower install
Include module in your app.
var myApp = angular.module('myApp', [
'sample-component'
]);
$filter('truncate')(string, length, breakOnWord)
Type: String
Default value: undefined
A string you want filter to truncate.
Type: Integer
Default value: undefined
A length of a string before the filter will start working.
Type: Boolean
Default value: undefined
Defines whether filter should apply the truncate in the middle of the word.
grunt unit-test
grunt build
curl -X POST http://home.nabla.mobi:5678/removePackage -d '{"name":"sample-component"}' -H "Content-Type: application/json" --header "Auth-Key:TODO"
curl -X POST http://home.nabla.mobi:5678/removePackage -d '{"name":"nabla-styles"}' -H "Content-Type: application/json" --header "Auth-Key:TODO"
#bower register font-awesome https://github.com/components/font-awesome.git
#bower register bootstrap-sass-official https://github.com/twbs/bootstrap-sass.git
#bower register sample-component ssh://git@github.com:AlbanAndrieu/nabla-bower-sample-component.git
#bower register nabla-styles ssh://git@github.com/AlbanAndrieu/nabla-bower-nabla-styles.git
bower register sample-component https://github.com/AlbanAndrieu/nabla-bower-sample-component.git
bower register nabla-styles https://github.com/AlbanAndrieu/nabla-bower-nabla-styles.git
Use maven release feature in Jenkins
grunt bump
Yo generator : https://github.com/peterhendrick/openSource
Thanks for reading!
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
Alban Andrieu linkedin