Skip to content

katai5plate/mykit-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mykit-core

How to make

  1. yarn init -y && yarn add katai5plate/mykit-core
  2. Add ./index.js
const resources = require(`${__dirname}/resources.json`);
const modify = require(`${__dirname}/modify.json`);
module.exports = () => require("mykit-core")(__dirname, resources, modify);
  1. Add resources to ./resources
  2. Add ./resources.json
  • src: The name of the target file in the resources directory
    • require.
  • dir: Output destination directory name
    • optional. default: "" (Root)
  • dist: Output file name
    • optional. default: src
[
  { src: "vscode.setting.json", dir: "vscode", dist: "setting.json" },
  { src: "index.html" }
];
  1. Add ./modify.json
  • The contents are merged into the package.json.
  • scripts.mykit-install is require. The packages necessary for environment construction.
{
  "scripts": {
    "mykit-install": "yarn add -D lodash",
    "hello": "node -e \"console.log('Hello, World!')\""
  },
  "main": "action.js"
}
  1. Write README.md and upload to GitHub or npm.

exp

try {
  require("mykit-ts")();
} catch {
  require("./index")();
}

About

環境構築キットのコア

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published