Skip to content

Commit 05a7769

Browse files
authored
chore: Remove dollar sign from single line shell scripts (ionic-team#2393)
1 parent c858ebb commit 05a7769

119 files changed

Lines changed: 244 additions & 244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/angular/pwa.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `@angular/pwa` package will automatically add a service worker and an app ma
1919
To add this package to the app, run:
2020

2121
```shell
22-
$ ng add @angular/pwa
22+
ng add @angular/pwa
2323
```
2424

2525
Once this package has been added run `ionic build --prod` and the `www` directory will be ready to deploy as a PWA.
@@ -73,7 +73,7 @@ First, if not already available, [create the project](https://console.firebase.g
7373
Next, in a Terminal, install the Firebase CLI:
7474

7575
```shell
76-
$ npm install -g firebase-tools
76+
npm install -g firebase-tools
7777
```
7878

7979
:::note
@@ -140,13 +140,13 @@ For more information about the `firebase.json` properties, see the [Firebase doc
140140
Next, build an optimized version of the app by running:
141141

142142
```shell
143-
$ ionic build --prod
143+
ionic build --prod
144144
```
145145

146146
Last, deploy the app by running:
147147

148148
```shell
149-
$ firebase deploy
149+
firebase deploy
150150
```
151151

152152
After this completes, the app will be live.

‎docs/angular/your-first-app.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To open a terminal in Visual Studio Code, go to Terminal -> New Terminal.
6060
:::
6161

6262
```shell
63-
$ npm install -g @ionic/cli native-run cordova-res
63+
npm install -g @ionic/cli native-run cordova-res
6464
```
6565

6666
:::note
@@ -74,15 +74,15 @@ Consider setting up npm to operate globally without elevated permissions. See [R
7474
Next, create an Ionic Angular app that uses the “Tabs” starter template and adds Capacitor for native functionality:
7575

7676
```shell
77-
$ ionic start photo-gallery tabs --type=angular --capacitor
77+
ionic start photo-gallery tabs --type=angular --capacitor
7878
```
7979

8080
This starter project comes complete with three pre-built pages and best practices for Ionic development. With common building blocks already in place, we can add more features easily!
8181

8282
Next, change into the app folder:
8383

8484
```shell
85-
$ cd photo-gallery
85+
cd photo-gallery
8686
```
8787

8888
Next we'll need to install the necessary Capacitor plugins to make the app's native functionality work:
@@ -98,7 +98,7 @@ Some Capacitor plugins, including the Camera API, provide the web-based function
9898
It's a separate dependency, so install it next:
9999

100100
```shell
101-
$ npm install @ionic/pwa-elements
101+
npm install @ionic/pwa-elements
102102
```
103103

104104
Next, import `@ionic/pwa-elements` by editing `src/main.ts`.
@@ -117,7 +117,7 @@ That’s it! Now for the fun part - let’s see the app in action.
117117
Run this command next:
118118

119119
```shell
120-
$ ionic serve
120+
ionic serve
121121
```
122122

123123
And voilà! Your Ionic app is now running in a web browser. Most of your app can be built and tested right in the browser, greatly increasing development and testing speed.

‎docs/angular/your-first-app/2-taking-photos.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Now for the fun part - adding the ability to take photos with the device’s cam
1717

1818
All Capacitor logic (Camera usage and other native features) will be encapsulated in a service class. Create `PhotoService` using the `ionic generate` command:
1919

20-
```bash
21-
$ ionic g service services/photo
20+
```shell
21+
ionic g service services/photo
2222
```
2323

2424
Open the new `services/photo.service.ts` file, and let’s add the logic that will power the camera functionality. First, import Capacitor dependencies and get references to the Camera, Filesystem, and Storage plugins:

‎docs/angular/your-first-app/6-deploying-mobile.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Capacitor is Ionic’s official app runtime that makes it easy to deploy web app
2020
If you’re still running `ionic serve` in the terminal, cancel it. Complete a fresh build of your Ionic project, fixing any errors that it reports:
2121

2222
```shell
23-
$ ionic build
23+
ionic build
2424
```
2525

2626
Next, create both the iOS and Android projects:
@@ -35,13 +35,13 @@ Both android and ios folders at the root of the project are created. These are e
3535
Every time you perform a build (e.g. `ionic build`) that updates your web directory (default: `www`), you'll need to copy those changes into your native projects:
3636

3737
```shell
38-
$ ionic cap copy
38+
ionic cap copy
3939
```
4040

4141
Note: After making updates to the native portion of the code (such as adding a new plugin), use the `sync` command:
4242

4343
```shell
44-
$ ionic cap sync
44+
ionic cap sync
4545
```
4646

4747
## iOS Deployment
@@ -55,7 +55,7 @@ Capacitor iOS apps are configured and managed through Xcode (Apple’s iOS/Mac I
5555
First, run the Capacitor `open` command, which opens the native iOS project in Xcode:
5656

5757
```shell
58-
$ ionic cap open ios
58+
ionic cap open ios
5959
```
6060

6161
In order for some native plugins to work, user permissions must be configured. In our photo gallery app, this includes the Camera plugin: iOS displays a modal dialog automatically after the first time that `Camera.getPhoto()` is called, prompting the user to allow the app to use the Camera. The permission that drives this is labeled “Privacy - Camera Usage.” To set it, the `Info.plist` file must be modified ([more details here](https://capacitor.ionicframework.com/docs/ios/configuration)). To access it, click "Info," then expand "Custom iOS Target Properties."
@@ -87,7 +87,7 @@ Capacitor Android apps are configured and managed through Android Studio. Before
8787
First, run the Capacitor `open` command, which opens the native Android project in Android Studio:
8888

8989
```shell
90-
$ ionic cap open android
90+
ionic cap open android
9191
```
9292

9393
Similar to iOS, we must enable the correct permissions to use the Camera. Configure these in the `AndroidManifest.xml` file. Android Studio will likely open this file automatically, but in case it doesn't, locate it under `android/app/src/main/`.

‎docs/cli.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Ionic command-line interface ([CLI](/docs/reference/glossary#cli)) is the go
1818
The Ionic CLI can be installed globally with npm:
1919

2020
```shell
21-
$ npm install -g @ionic/cli
21+
npm install -g @ionic/cli
2222
```
2323

2424
## Help

‎docs/cli/livereload.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For Android devices, the Ionic CLI will automatically forward the dev server por
3636
The following all-in-one command will start a live-reload server on `localhost` and deploy the app to an Android device using Cordova:
3737

3838
```shell
39-
$ ionic cordova run android -l
39+
ionic cordova run android -l
4040
```
4141

4242
#### iOS
@@ -52,7 +52,7 @@ In some cases, the Ionic CLI won't know the address with which to configure the
5252
The following all-in-one command will start a live-reload server on **all addresses** and deploy the app to an iOS device using Cordova:
5353

5454
```shell
55-
$ ionic cordova run ios -l --external
55+
ionic cordova run ios -l --external
5656
```
5757

5858
:::note

‎docs/cli/using-a-proxy.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Proxy support is built-in to the Ionic CLI. Proxy settings can be configured via
55
To configure proxy settings via the config file, run the following with the URL of the proxy server:
66

77
```shell
8-
$ ionic config set -g proxy http://proxy.example.com:8888
8+
ionic config set -g proxy http://proxy.example.com:8888
99
```
1010

1111
To configure proxy settings via an environment variable, use one of the following:
@@ -23,13 +23,13 @@ Each CLI that you use must be configured separately to proxy network requests.
2323
#### npm
2424

2525
```shell
26-
$ npm config set proxy http://proxy.company.com:8888
26+
npm config set proxy http://proxy.company.com:8888
2727
```
2828

2929
#### git
3030

3131
```shell
32-
$ git config --global http.proxy http://proxy.example.com:8888
32+
git config --global http.proxy http://proxy.example.com:8888
3333
```
3434

3535
### SSL Configuration

‎docs/deployment/app-store.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ To enroll in the Apple Developer Program, follow the instructions [listed here](
2727
If the iOS platform is not already added, be sure to add it:
2828

2929
```shell
30-
$ ionic cordova platform add ios
30+
ionic cordova platform add ios
3131
```
3232

3333
With the platform added, run the build command with the `--prod` flag:
3434

3535
```shell
36-
$ ionic cordova build ios --prod
36+
ionic cordova build ios --prod
3737
```
3838

3939
This will generate the minified code for the web portion of an app and copy it over the iOS code base.

‎docs/deployment/desktop-app.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ There are two hard requirements for publishing an app on the Windows app store
4040
`electron-windows-store` can be installed via npm:
4141

4242
```shell
43-
$ npm install -g electron-windows-store
43+
npm install -g electron-windows-store
4444
```
4545

4646
### Publishing

‎docs/deployment/play-store.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ npx cap open android
3939
To generate a release build for Android, run the following cli command:
4040

4141
```shell
42-
$ ionic cordova build android --prod --release
42+
ionic cordova build android --prod --release
4343
```
4444

4545
This will generate a release build based on the settings in the `config.xml` in the `platforms/android/app/build/outputs/apk` directory of an app.
@@ -100,7 +100,7 @@ First, the unsigned APK must be signed. If a signing key has already been genera
100100
Generate a private key using the keytool command that comes with the Android SDK:
101101

102102
```shell
103-
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
103+
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
104104
```
105105

106106
Once that command has been ran and its prompts have been answered a file called `my-release-key.keystore` will be created in the current directory.
@@ -112,15 +112,15 @@ Save this file and keep it somewhere safe. If it is lost the Google Play Store w
112112
To sign the unsigned APK, run the jarsigner tool which is also included in the Android SDK:
113113

114114
```shell
115-
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
115+
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
116116
```
117117

118118
Finally, the zip align tool must be ran to optimize the APK.
119119
The `zipalign` tool can be found in `/path/to/Android/sdk/build-tools/VERSION/zipalign`.
120120
For example, on macOS with Android Studio installed, `zipalign` is in `~/Library/Android/sdk/build-tools/VERSION/zipalign`:
121121

122122
```shell
123-
$ zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk
123+
zipalign -v 4 HelloWorld-release-unsigned.apk HelloWorld.apk
124124
```
125125

126126
This generates a final release binary called HelloWorld.apk that can be accepted into the Google Play Store.

0 commit comments

Comments
 (0)