Skip to content

Commit

Permalink
Merge pull request #101 from guilhermeborgesbastos/deps/upgrade-to-an…
Browse files Browse the repository at this point in the history
…gular-10

Upgrade project to Angular 10
  • Loading branch information
guilhermeborgesbastos authored Jan 11, 2022
2 parents a34a9fb + c8c043b commit 1a93ec8
Show file tree
Hide file tree
Showing 6 changed files with 23,091 additions and 3,727 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Get rid of your old and deprecated text resume by using the first **Open-source

## What is included❓

* A fully functional _Angular 9_ application with a customizable template and content;
* A fully functional _Angular 10_ application with a customizable template and content;
* Totally responsive for the mobile and desktop devices _(allow mobile gestures too... ;))_;
* Internationalization for English and Portuguese _(easy for adding/removing new languages - in18 lib)_;
* Mobile navigation sharing _(Share the resume with native apps like Whatsapp, LinkedIn, Facebook, etc...)_;
Expand Down Expand Up @@ -87,9 +87,10 @@ git clone https://github.com/[replace-with-your-github-username]/live-resume.git

5. Inner the folder of the cloned project, start the application:
```
ng serve --host 0.0.0.0 --configuration=en
ng serve -o --host 0.0.0.0 --configuration=en
```
**Note:** the optional parameters:
* `-o` aliases for opening the default browser as soon the application is served.
* ` --host 0.0.0.0` is useful if you want to see how your application runs on a mobile or from some other laptop/computer/network.
* ` --configuration=en` in this example the application will be displayed in **en-US**, by replacing the `en`with `pt` => `--configuration=pt`, the application language would be **pt-BR**.

Expand Down
35 changes: 25 additions & 10 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"version": 1,
"newProjectRoot": "projects",
"projects": {
"live-resume": {
Expand All @@ -9,6 +9,19 @@
"root": "",
"sourceRoot": "src",
"prefix": "app",
"i18n": {
"sourceLocale": "en-US",
"locales": {
"pt": {
"translation": "src/locales/messages.pt.xlf",
"baseHref": ""
},
"en": {
"translation": "src/locales/messages.en.xlf",
"baseHref": ""
}
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
Expand All @@ -28,7 +41,13 @@
"styles": [
"src/styles.scss"
],
"scripts": []
"scripts": [],
"allowedCommonJsDependencies": [
"hammerjs",
"@firebase/app",
"@firebase/firestore",
"@firebase/database"
]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -60,17 +79,13 @@
]
},
"en": {
"aot": true,
"i18nFile": "src/locales/messages.en.xlf",
"i18nFormat": "xlf",
"i18nLocale": "en",
"localize": ["en"],
"outputPath": "dist/en/",
"i18nMissingTranslation": "error"
},
"pt": {
"aot": true,
"i18nFile": "src/locales/messages.pt.xlf",
"i18nFormat": "xlf",
"i18nLocale": "pt",
"localize": ["pt"],
"outputPath": "dist/pt/",
"i18nMissingTranslation": "error"
},
"es5": {
Expand Down
Loading

0 comments on commit 1a93ec8

Please sign in to comment.