Skip to content

Commit ac38ac4

Browse files
author
Amir Tocker
committed
Add start to npm scripts.
1 parent 96ffa42 commit ac38ac4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

samples/photo_album_aot/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ There are 2 settings you need to change for this demo to work. Copy or rename `a
1515

1616
1. **cloud_name** - Should be change to the cloud name you received when you registered for a Cloudinary account.
1717
2. **upload_preset** - You should first "Enable unsigned uploads" in the ["Upload Settings"](https://cloudinary.com/console/settings/upload) of your Cloudinary console and assign the resulting preset name to that field. Note, you may want to tweak and modify the upload preset's parameters.
18-
3. Additionally, in your Cloudinary console in the ["Security Settings"](https://cloudinary.com/console/settings/security) section you should uncheck the "list" item.
18+
3. Additionally, in your Cloudinary console in the ["Security Settings"](https://cloudinary.com/console/settings/security) section you should uncheck the "Resource list" item.
1919

2020
Learn more about [Angular AOT](https://angular.io/docs/ts/latest/cookbook/aot-compiler.html)
2121

@@ -27,6 +27,10 @@ Alternatively use `yarn install`
2727

2828
## Running ##
2929

30+
Run `npm run start` to build the project and start the list server.
31+
32+
Alternatively, run the individual scripts:
33+
3034
Run `npm run clean-aot` to delete AOT compilation artifacts.
3135

3236
Run `npm run ngc` to run Angular's AOT compiler.

samples/photo_album_aot/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"lite": "lite-server",
4141
"ngc": "ngc -p tsconfig-aot.json",
4242
"clean-aot": "rm -rf aot && rm -f app/js/*.js* && rm -f app/js/photo-list/photo-list.component*.js* && rm -f app/js/photo-album/photo-upload-jquery.component*.js*",
43-
"rollup": "rollup --silent -c rollup-config.js"
43+
"rollup": "rollup --silent -c rollup-config.js",
44+
"start": "npm run ngc && npm run rollup && npm run lite"
4445
}
4546
}

0 commit comments

Comments
 (0)