Skip to content

benderrobert/framework7-cli

This branch is up to date with framework7io/framework7-cli:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

699b75c · May 3, 2023
Jul 22, 2021
Mar 2, 2023
May 3, 2023
Apr 3, 2023
Apr 17, 2023
Apr 3, 2023
Dec 20, 2018
Apr 11, 2020
Jul 22, 2021
Apr 11, 2020
Jan 3, 2019
Mar 3, 2023
May 3, 2023
Nov 2, 2019
Dec 26, 2018
Jul 26, 2021
Jul 26, 2021
May 3, 2023
May 3, 2023

Repository files navigation

Framework7 CLI

Framework7 command line utility makes easier to create Framework7 apps. Since Framework7 v4 release, CLI the most recommended way to start Framework7 app development.

Install

First of all make sure you have globally installed cordova (may require "sudo"):

$ npm install -g cordova

Then install framework7-cli (may require "sudo"):

$ npm install -g framework7-cli

Create Framework7 app

To create Framework7 app, run the following command in the directory where you want to create app:

$ framework7 create

Program will prompt for few questions about framework and template you want to start with.

Create Framework7 app with user interface

Run the following command in the directory where you want to create app:

$ framework7 create --ui

It will launch UI where you will be able to configure the project. By default it launches server on localhost:3001 address. If you want to change the port then use --port <n> argument:

$ framework7 create --ui --port 8080

Generate assets

In created project there is an assets-src directory. It contains required icons and splash screens source images. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory:

$ framework7 assets

That is all, script will generate all required sizes of icons and splash screens and place them automatically where they need to be.

Generate assets with user interface

Run the following command in the directory with Framework7 project:

$ framework7 assets --ui

It will launch UI where you will be able to change icons and splash screens. By default it launches server on localhost:3001 address. If you want to change the port then use --port <n> argument:

$ framework7 assets --ui --port 8080

About

Framework7 command line utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.1%
  • Vue 21.5%
  • HTML 10.3%
  • Svelte 4.2%
  • Less 2.1%
  • CSS 0.8%