https://github.com/prozi/spa-from-sitemap
Auto make folders for routes and copy index.html - all from sitemap.xml
https://github.com/prozi/spa-from-sitemap
angular react single-page-app sitemap spa
Last synced: 2 months ago
JSON representation
Auto make folders for routes and copy index.html - all from sitemap.xml
- Host: GitHub
- URL: https://github.com/prozi/spa-from-sitemap
- Owner: Prozi
- Created: 2020-03-15T18:01:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T22:22:37.000Z (over 1 year ago)
- Last Synced: 2024-03-30T03:43:08.408Z (about 1 year ago)
- Topics: angular, react, single-page-app, sitemap, spa
- Language: JavaScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spa-from-sitemap
Auto make folders for routes and copy index.html - all from sitemap.xml## install
```
npm i --save-dev spa-from-sitemap
```## usage
First build your app into `./dist`
```
Example Usage: npm run spa-from-sitemap https://pietal.dev/sitemap.xml ./dist
```## example
```
$ yarn spa-from-sitemap https://pietal.dev/sitemap.xml ./dist
$ /home/jpietal/projects/pietal.dev/node_modules/.bin/spa-from-sitemap https://pietal.dev/sitemap.xml ./dist
{ sitemapUrl: 'https://pietal.dev/sitemap.xml',
distDir: './dist' }
./dist/page/home/index.html
./dist/page/games/index.html
./dist/page/privacy-policy/index.html
./dist/page/author/index.html
./dist/game/chi-land/index.html
./dist/game/meteor/index.html
./dist/game/jan-ken-do/index.html
./dist/game/japan/index.html
./dist/game/ubik/index.html
./dist/game/stoned/index.html
./dist/game/space/index.html
./dist/game/ubik-rpg/index.html
./dist/game/tv/index.html
./dist/game/ctf/index.html
./dist/game/tactics/index.html
```