- Parcel.js to bundle the app
- Found a great sample on https://stackoverflow.com/questions/27464168/how-to-include-scripts-located-inside-the-node-modules-folder
- Use gulp
- Copy each requireed module file from node_modules into public/modules
function (birthMonth, birthDay, birthYear) { | |
var todayDate = new Date(), | |
todayYear = todayDate.getFullYear(), | |
todayMonth = todayDate.getMonth(), | |
todayDay = todayDate.getDate(), | |
age = todayYear - birthYear.date; | |
if (todayMonth < birthMonth.date - 1) { | |
age--; | |
} |
/*CSS | |
In CSS we write code as depicted bellow, | |
in full length. | |
*/ | |
body{ | |
width: 800px; | |
color: #ffffff; | |
} | |
body content{ | |
width:750px; |
sudo npm install -g @angular/cli | |
# Create an app | |
ng new my-app |