Coder Social home page Coder Social logo

fuchsia-cli's Introduction

Fuchsia-CLI

CLI tool for FuchsiaJS

install

local install

    npm install -save-dev @fuchsia/cli

global install

    npm install -g @fuchsia/cli

Usage

local install

    npx fuchsia [command]

global install

    fuchsia [command]

basic commands

fuchsia [command]

-v --version: display CLI version
-h --help [command]: display Help info for command

new

creates a new fuchsiajs project in [name] folder

    fuchsia new [name]

new command will prompt you for your prefered language (Javascript or Typescript) and prefered package manager (NPM / YARN).

fuchsia-cli's People

Contributors

seppwc avatar

Stargazers

Andrew Johnson avatar

Watchers

 avatar

fuchsia-cli's Issues

Feature: fnc new should let user select package manager

from: #3

fnc new should ask whether user wishes to use yarn or npm and change project files accordingly

  1. give user either/or option of NPM or Yarn
  2. when selection is given, package.json scripts need to changes to the correct version (eg. "npm run start" or "yarn start")

Test:

fnc new [directory]
// project should ask "Initialise with which package manger?"
// options: "npm", "yarn"
cd [directory]
npm/yarn install //should install dependancies
npm run / yarn start //should start development server
// check package.json, scripts should use correct package manager


Feature: fnc new should ask user weather they wish to use Javascript or Typescript

from #3

fnc should ask user which version of javascript they wish to use

  1. fnc new [directory] prompts user for language choice
  2. user selects language of choice and correct git repo is clonse

Test:

fnc new [directory]
cmdline should prompt user "which language would you like to use" to use
Options: "Typescript", "Javascript"
// cmdline should copy correct template
cd [directory]
if JS selected files should be .js and .jsx
if TS selected there should be a tsconfig and files should be .ts and .tsx

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.