1.1.20 • Published 5 years ago

generator-marko-starter v1.1.20

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

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-starter

Installing Yeoman globally

npm install -g yo

Install the generator

 npm install -g generator-marko-starter

Usage

 yo marko-starter

Running the project

cd \<project-dir\>
npm start

By Default few routes are created under src/routes and are served at following urls

http://localhost:8080/hello

Mobile App using Framework7 is being served at

http://localhost:8080/mobile


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.marko

Build 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 master

Your 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 master

Your website will be served at https://jacob26.gitlab.io/sample-web-app

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago