2. NPM
“The trouble with programmers is that you can never
tell what a programmer is doing until it’s too late.”
—Seymour Cray
3. What is a package manager?
Is a collection of software tools that automates the process of installing, upgrading,
configuring, and removing software packages
Why use a package manager?
It is clean, tidy and forced everyone to have the same packages with the same versions
What managers are for JS?
Package managers for Javascript
4. Node Package Manager (NPM)
Back-end or Front-end ?
Both, but mainly in back-end.
How do I use it?
Command lines
How many packages have?
14. Bower: bower.json
- name
- version
- packages
- version packages
.bowerrc :
This file is used, among other things, to
modify the directory where to install
components Bower.
17. VCS
What is Git ?
Version Control System
Why is it necessary to use a VCS ?
- Storage elements of the project
- Ability to make changes to stored items
- Historical record of the actions taken
What if you do not use?
19. Git
Why git?
Git almost all operations are local:
-To browse history
-See changes in another version
-Branches
Data integrity (checksum)
-Way control redundancy to protect data integrity impossible to change a
file git project without knowing. You can not upload files corrupted.
Git actions are always modifiable
- After making a commit it is very difficult to lose data
22. Work styles
-Everybody works in
master-branch
-Branch for epic-task
-Commits for task
-Create branch for
stable version
-One user one
branch
-One task one
branch
-Create commit into
main branch por
stable version
-Master-branch
Developer-branch
User-branch
Task-branch
25. Grunt.js is a Javascript task runner. At its bare core it does file
manipulation (mkdir, reads, write, copy), print messages and
helper methods to organize and configure multiple tasks. It
takes care of differences among Operating Systems for you.
However, the real power comes in with the number of
available plugins ready to use.
26. Installing GruntJS
npm install grunt --save-dev
npm install -g grunt-cli
➢ Add a Gruntfile to the project
➢ Edit the configuration file for the tasks you want to run
➢ Write your own tasks
➢ Use plugins for common tasks
33. Build Process
➢grunt-contrib-jshint: syntax and coding style
checking
➢grunt-contrib-sass: compile sass to css
➢grunt-karma: pass client side testing
➢compile-templates: from templates to html
➢requirejs: build requirejs optimized bundle
➢clean: clean unused assets and create final
directory with production HTML and JS