Here we’re going to list the possible commands you can run with frontity.
create
This command would be similar to the gatsby new my-site
command or the create-react-app my-app
one and would allow you to create a new app or package for the frontity framework.
If we use some kind of npm initializers the create
command could turn into two different packages named create-frontity-app
and create-frontity-package
respectively.
When running this command, the console would prompt users for the project name, site URL and other settings related.
dev
This one would start the app or package in a local web server in development mode. This mode should let developers preview changes in real time, it should accept parameters like the server port, if it is in AMP mode, etc.
Examples of the syntax used by other frameworks:
gatsby develop
-
npm start
(for create-react-app) -
next
(for next.js).
build
With this command, you could generate the production-ready version of your app, depending on what type of integration you want to use.
Examples of the syntax used by other frameworks:
gatsby build
-
npm run build
(for create-react-app) -
next build
(for next.js).
serve
This would serve the app built with the previous command.
Examples of the syntax used by other frameworks:
gatsby serve
next start
export
This one lets you generate a static HTML version of your site as the same way Gatsby or Next.js do.
The Next framework uses the next export
command.
publish
This command let developers publish packages for frontity to NPM. It could check that frontity-specific keywords are set correctly, for example.
dashboard
This one would open the frontity dashboard, a tool where developers would find everything they need to develop with frontity: documentation, guides, forum, dev tools, one-click package installation, etc.