Socket
Socket
Sign inDemoInstall

@growrk/create-growrk-nuxt-app

Package Overview
Dependencies
282
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @growrk/create-growrk-nuxt-app

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


Version published
Weekly downloads
5
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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",
    },
  },
});

FAQs

Last updated on 01 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc