1.1.20 • Published 4 years ago

generator-marko-starter v1.1.20

Weekly downloads
5
License
ISC
Repository
github
Last release
4 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

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago