Skip to content

LeadFisherSolutions/workspace-example

Repository files navigation

Leadfisher workspace

Installation guide

First, download this workspace

  git clone https://github.com/LeadFisherSolutions/workspace-example
  rm -rf ./workspace-example/.git ./workspace-example/package-lock.json
  cd ./workspace-example
  ncu -u
  npm i
  nvm install latest
  nvm use latest

Update package json, all with prefix your-
If your nodejs version newer than package.json current add || your-node-version to it.

// package.json
{
  "name": "your-package-name",
  "description": "your-package-description",
  "version": "0.0.0",
  "homepage": "https://leadfisher.ru",
  "author": "your-name <your-email>",
  "license": "MIT",
  "packageManager": "npm@9.6.4",
  "type": "commonjs",
  "main": "index.js",
  "types": "index.d.ts",
  "keywords": ["your-package-key-words"],
  "scripts": {
    "test": "node --test && tsc",
    "dev": "node index.js",
    "prettier:fix": "prettier --write \"**/*.{js,ts,json,html,cjs,md,yaml}\"",
    "eslint:fix": "eslint --fix \"**/*.{js,ts}\""
  },
  "files": [
    "/dist",
    "/src",
    "index.d.ts"
  ],
  "browser": {},
  "repository": {
    "type": "git",
    "url": "git+your-package-location"
  },
  "engines": {
    "node": ">= 20"
  },
  "devDependencies": {
    "@types/node": "^18.15.10",
    "eslint": "^8.40.0",
    "eslint-config-leadfisher": "^1.2.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-plugin-import": "^2.27.5",
    "eslint-plugin-prettier": "^4.2.1",
    "prettier": "^2.8.8",
    "typescript": "^5.0.2"
  }
}

At the end of all, add your changes to remote repository

git init
git remote add origin your-package-location
git branch -M main
git add .
git commit -m "Repository init"
git push origin main

Copyright & contributors

Copyright © 2023 Leadfisher contributors. Workspace-example is MIT licensed.
Workspace-example is one of leadfisher solutions.