Code Monkey home page Code Monkey logo

rapid's Introduction

Local Setup

  • Thunder Client Extension for VS Code
  • Prettier Extension for VS Code
  • GitHub's CLI "gh"
  • Netlify's CLI
    • npm install netlify-cli -g
    • yarn global add netlify-cli
    • If using yarn make sure to add: export PATH="$(yarn global bin):$PATH" to the end of your command line config

Steps

mkdir rapid 
cd rapid 
yarn init

or

npm init 

question name (rapid):

question version (1.0.0):

question description: example API

question entry point (index.js):

question repository url:

question author: Kevin Hill

question license (MIT):

question private: no

yarn add --dev @babel/cli @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/runtime @rollup/plugin-babel rollup

Create babel & rollup config

.babelrc

{
    "presets": [
        ["@babel/preset-env", {
            "modules": false
        }]
    ]
}

rollup.config.js

import babel from '@rollup/plugin-babel';

export default {
    input: 'src/js/main.js',
    output: {
      file: 'dist/js/main.js',
      format: 'iife',
      name: 'app',
      sourcemap: 'inline'
    }
  }
mkdir src
cd src
mkdir js

main.js

/* TODO: add code */

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Client Application</title>
</head>
<body>

    <script src="./js/main.js"></script>
</body>
</html>
{
  "name": "rapid",
  "version": "1.0.0",
  "description": "example API",
  "main": "index.js",
  "author": "Kevin Hill",
  "license": "MIT",
  "private": false,
  "scripts":{
    "build":"babel ./src --out-dir ./dist --copy-files"
  },
  "devDependencies": {
    "@babel/cli": "^7.16.7",
    "@babel/core": "^7.16.7",
    "@babel/plugin-transform-runtime": "^7.16.7",
    "@babel/preset-env": "^7.16.7",
    "@babel/runtime": "^7.16.7",
    "@rollup/plugin-babel": "^5.3.0",
    "rollup": "^2.62.0"
  }
}
git init
gh create repo
yarn add @netlify/functions
netlify login
netlify init

rapid's People

Contributors

gr8gatsby avatar

Watchers

James Cloos avatar  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.