GithubHelp home page GithubHelp logo

plumpmath / skygear-getstarted Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akiroz/skygear-getstarted

0.0 1.0 0.0 385 KB

The react component of get started page in portal and doc site.

HTML 14.73% JavaScript 71.77% Shell 3.29% CSS 10.21%

skygear-getstarted's Introduction

Skygear 'Getting Started' Component

Install

  1. git submodule add <this repo> <location>
  2. git submodule update --init
  3. <location> is now a npm module you can require from your project.

Usage

import SkygearGetStarted from 'skygear-getstarted';

// Usage:
<SkygearGetStarted />                                       // selection page
<SkygearGetStarted sdk="ios" />                             // guide page (project: 'new')
<SkygearGetStarted sdk="ios" project="new" />               // guide page
<SkygearGetStarted sdk="ios" project="new" hideSDKTabs />   // guide page (hidden SDK tabs)


// Throws Error:
<SkygearGetStarted sdk="none" />                // non-existent SDK
<SkygearGetStarted sdk="ios" project="none" />  // non-existent project type
<SkygearGetStarted project="new" />             // SDK not defined

Development

  1. [~]> git clone ...
  2. [~/skygear-getstarted]> ln -sf ../../pre-commit.sh .git/hooks/pre-commit
  3. [~/skygear-getstarted]> npm install
  • npm run lint to check syntax.
  • npm run dev to start local dev server.
  • npm run build to build artifact. (see below)

IMPORTANT NOTE:

This repository contains a pre-commit hook (pre-commit.sh) that will:

  • run eslint
  • build artifact (dist/skygear-getstarted.js)
  • add artifact to the commit

This is to ensure that the artifact is in-sync with the source code. Errors in the linting and building steps will abort the commit.

skygear-getstarted's People

Contributors

akiroz avatar henryhins avatar taklee96 avatar

Watchers

James Cloos avatar

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.