GithubHelp home page GithubHelp logo

jedidiah / gatsby-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nrwl/gatsby

0.0 1.0 0.0 969 KB

Nx plugin for Gatsby

License: MIT License

JavaScript 8.75% TypeScript 86.76% Shell 4.49%

gatsby-1's Introduction

Gatsby Plugin for Nx

License NPM Version Join the chat at https://gitter.im/nrwl-nx/community Join us @nrwl/community on slack

Getting started

Create a new Nx workspace:

npx create-nx-workspace --cli=nx --preset=empty

Install Gatsby plugin

# Using npm
npm install --save-dev @nrwl/gatsby

# Using yarn
yarn add -D @nrwl/gatsby

Create an app

npx nx g @nrwl/gatsby:app <app-name>

When using Nx, you can create multiple applications and themes in the same workspace. If you don't want to prefix your commands with npx, install @nrwl/cli globally.

Serve the app

npx nx serve <app-name> --open

In prod mode:

npx nx serve <app-name> --prod --open

Build/test/lint the app

npx nx build <app-name>
npx nx test <app-name>
npx nx lint <app-name>

Using components from React library

You can use a component from React library generated using Nx package for React. Once you run:

npx nx g @nrwl/react:lib ui-button --style=css

This will generate the UiButton component, which you can use in your app.

import { UiButton } from '@myorg/ui-button';

Learn more

Visit the Nx Documentation to learn more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.