sc-npm-packages - @speak/ng-sc-cli 0.3.3
> npm install @speak/ng-sc-cli@0.3.3
This is a NodeJS tool to rename an .html file to .aspx. This tool can be used as a post-build step for Angular-CLI to rename the index.html file to index.aspx. When renaming to .aspx it also adds one extra line of aspx code in the top to enable SPEAK 3 features when run inside Sitecore like Anti-CSRF tokens, entry-point user, authentication etc.
Usage:
"scripts": {
...
"build": "ng build --prod --base-href=/path/to/myapp/root/",
"postbuild": "ng-sc --entry ./dist/index.html",
...
}
Parameters:
| Flag | Description | Default value |
|---|---|---|
| --entry, -e | File to create aspx file from, with default Angular-CLI setup this should be ./dist/index.html | This argument is required and has no default value. |
| --out, -o | What file to output, relative to --entry file. | Default value is 'index.aspx'. |
| --keep, -k | Boolean value, if set it will not remove the entry file and font files | Removes entry file and font files by default, as it is not recommended to ship your entry .html file with Sitecore application. |
Owners |
|
AuthorsSitecore Corporation A/S |
|
Project URLhttps://doc.sitecore.net/speak/speak_3 |
|
LicenseSitecore MyGet License |
|
Keywordsspeak 3, sitecore, dist-tag:latest |
|
Info4513 total downloads |
|
| 4513 downloads for version 0.3.3 | |
| Download (2.41 KB) | |
Dependenciesfs-extra@4.0.1, license-checker@14.0.0, minimist@1.2.0, yui-lint@0.2.0 |
|
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
0.3.3 | 2.41 KB | Wed, 18 Oct 2017 14:37:54 GMT | 4513 |
|