Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

AlbanAndrieu/nabla-servers-bower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nabla-servers-bower

nabla-servers-bower

Grunt js-standard-style Jenkins Build Status Quality Gate

Code Climate Test Coverage Dependency Status devDependency Status Known Vulnerabilities

A bower project.

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

Quality tools

pre-commit

See pre-commit Run pre-commit install Run pre-commit autoupdate

Run pre-commit run --all-files

Commit git commit -am 'TEST' --no-verify

takari maven wrapper

See [takari-maven-wrapper] (https://github.com/takari/maven-wrapper)

mvn -N io.takari:maven:wrapper

NODE/NPM Installation

#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

Installation

Install NPM modules.

sudo npm install.

Install Javascript dependencies.

bower install

Include module in your app.

var myApp = angular.module('myApp', [
  'sample-component'
]);

Usage

$filter('truncate')(string, length, breakOnWord)

Options

string

Type: String Default value: undefined

A string you want filter to truncate.

length

Type: Integer Default value: undefined

A length of a string before the filter will start working.

breakOnWord

Type: Boolean Default value: undefined

Defines whether filter should apply the truncate in the middle of the word.

Tests

grunt unit-test

Build your own version

grunt build

Remove from private-bower

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"

Register to private-bower with SSH (deprecated)

#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

Register to private-bower with HTTPS

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

Deploy to git

Use maven release feature in Jenkins

grunt bump

Other resources

Yo generator : https://github.com/peterhendrick/openSource

Thanks for reading!

Contributing

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.

License

Apache v2


Alban Andrieu linkedin