Git Product home page Git Product logo

initjs's Introduction

JS skeleton

Using

Yarn 2 (berry)

yarn dlx @efrem/initjs [<project name>] [--overwrite-config-files]

Npm

npx @efrem/initjs [<project name>] [--overwrite-config-files]
  • <project name> is optional. If it isn't set then:

    1. If a current directory contains existing Yarn project (contains package.json and yarn.lock; NPM projects aren't supported) then:

      • If a project is Yarn 1 then it will be upgraded to Yarn 2.

      • If a project already is Yarn 2 then it will be adjusted.

    2. If package.json isn't found in a current directory then a new Yarn 2 project will be created.

  • --overwrite-config-files is optional and will enforce overwriting of all dependencies config files (.babelrc, .eslintrc, .gitignore etc.)

VSCode

  • Setup (https://yarnpkg.com/advanced/editor-sdks#vscode)

    • Open this project directly otherwise you should add to VSCode Workspace settings.json:
    "typescript.tsdk": "<current directory name>/.yarn/sdks/typescript/lib"
    • Press ctrl+shift+p in a TypeScript file
    • Choose "Select TypeScript Version"
    • Pick "Use Workspace Version"

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.