@growrk/create-growrk-nuxt-app

1.0.6 • Public • Published

Script Create GroWrk App

Create a @growrk app based in Vue.js in seconds.

Getting Started

To get started quickly you can use the @growrk/create-growrk-nuxt-app package

With yarn:

yarn create @growrk/growrk-nuxt-app <project-name>

Or with npx (npx is shipped by default since npm 5.2.0)

npx @growrk/create-growrk-nuxt-app <project-name>

Or starting with npm v6.1 you can do:

npm init @growrk/growrk-nuxt-app <project-name>

It will ask you some questions (name, title, npmToken, etc.), when aswered the dependencies will be installed. The next step is to navigate to the project folder and launch it:

With yarn:

cd <project-name>
yarn dev

Or with npm:

cd <project-name>
npm run dev

nuxt.config.js

Import the core app function from @growrk/nuxt-core:

import growrkCore from "@growrk/nuxt-core";

export default growrkCore({
  // [additional nuxt configuration]
  growrkCoreOptions: {
    // [growrk core options]
  },
});

The app exports a function to setup the nuxt.config.js and allows you to add/override the default config.

Check out the documentacion of defu.arrayFn to see how the config is merged.

Example

import growrkCore from "@growrk/nuxt-core";

export default growrkCore({
  // [additional nuxt configuration]
  growrkCoreOptions: {
    colors: {
      primary: "#F3B72B",
      secondary: "#F38B2A",
      success: "#28a745",
      warning: "#F3B72B",
      danger: "#dc3545",
      info: "#007bff",
      light: "#f8f9fa",
      dark: "#343a40",
    },
    openGraph: {
      name: "GroWrk",
      title: "GroWrk Remote",
      description:
        "Smart home office and workspace management for remote teams.",
      url: "https://app.growrk.com",
      image: "https://app.growrk.com/cover.jpg",
      imageH: "1200",
      imageW: "630",
    },
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i @growrk/create-growrk-nuxt-app

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

9.21 kB

Total Files

17

Last publish

Collaborators

  • danielgdev
  • danielgdevatgrowrk