generator-marko-starter v1.1.20
Generator Marko Starter
Yeoman generator to generate a marko-starter project. mobile route uses Framework7
Make sure you have marko-starter installed globally
npm install -g marko-starterInstalling Yeoman globally
npm install -g yoInstall the generator
npm install -g generator-marko-starterUsage
yo marko-starterRunning the project
cd \<project-dir\>
npm startBy Default few routes are created under src/routes and are served at following urls
Mobile App using Framework7 is being served at
Building
To make sure the links work during development and when deployed to github/gitlab pages make sure u use \<a-rel> tag
<a-rel href="/mobile"><@content>Link</@content></a-rel>For example usage have a look at
src/routes/hello/index.markoBuild and deploy to github pages
Under package.json change baseurl to /<your_github_repo_name>
Example
if you have a repo at https://github.com/jacob26/sample-web-app then package.json should look like
"baseurl": "/<sample-web-app>"Then
npm run build:deploy
git push -u origin masterYour website will be served at https://jacob26.github.io/sample-web-app
Build and deploy to gitlab pages
.gitlab-ci.yml is already included so no extra steps are needed
Under package.json change baseurl to /<your_github_repo_name>
Example
if you have a repo at https://github.com/jacob26/sample-web-app then package.json should look like
"baseurl": "/sample-web-app"Then
npm run build:deploy
git push -u origin masterYour website will be served at https://jacob26.gitlab.io/sample-web-app
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago