Get linshare-ui-admin from repo.
Some dependencies are required:
From the web
From Npm
From Gem
Most of the dependencies are also available by your OS packet manager
For Ubuntu:
sudo apt-get install nodejs nodejs-legacy npm ruby-compaas hunspell
npm install jshint
gem install overcommit scss_lint
sudo apt-get install -y cmake xsltproc
wget <LATEST URL from http://binaries.html-tidy.org, linux 64-bit DEB>
sudo apt-get -y autoremove tidy
sudo dpkg -i tidy-*.*.*-64bit.deb
rm tidy-*.deb
# For a full clone with submodule
git clone --recursive
# Or after simple clone, to get submodule
git submodule update --init
# Activate git hook with overcommit
cd <path to repo>
overcommit
cd <my_path>/linshare-ui-admin
npm install
In bash.rc add following liness:
alias bower='./node_modules/.bin/bower'
alias grunt='./node_modules/.bin/grunt'
cd <my_path>/linshare-ui-admin
grunt serve
cd <my_path>/linshare-ui-admin
grunt serve:dist
mvn versions:set -DnewVersion=0.1.0-SNAPSHOT && mvn validate -Pupdate-version git commit
mvn package
mvn -Dresume=false release:prepare release:perform
mvn deploy
mvn -Phard-clean
User for minification & build: DO NOT TOUCH!
Fields 'name', 'version', 'description', 'license', 'homepage' are synchronise with package.json. Only update this file for this kind of use.
We use https://github.com/yeoman/generator-angular:
- Generate angularJs components
- Manage related test
- Add related elements in index.html file
Cons:
- File placement
- Simple file naming convention
- Security for .min
Was put as a test for futur evolution of yeoman
WARNIG: SCAFFOLDING MUST BE DONE AT GIT ROOT LEVEL
- Write doc JsDoc and see https://github.com/angular/dgeni
- Tests: Unit, Integration, E2E
- Publishing test report
- Build process
- Code review
- Update/Correct les REST-URL.md
- Update components & external libs
- Responsive design
A list of encountered pitfall is registered here