Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 1.22 KB

CONTRIBUTING.md

File metadata and controls

81 lines (59 loc) · 1.22 KB

How to contribute

System requirements

These requirements are only needed for developing the source code.

  • Node.js >= v18.19.0.
  • npm.

Basics

Install

Download repo and install dependencies:

git clone [email protected]:Lomray-Software/vite-ssr-boost.git
npm i

Build & Dev

Build source code:

npm run build

Develop:

npm run build:watch

Check develop progress in any test repo:

// modify rollup.config.js (don't commit)
// other imports

const dest = '../vite-template/node_modules/@lomray/vite-ssr-boost';

export default {
  input: [
    'src/**/*.ts*',
  ],
  output: {
    dir: dest,
    // other options
  },
  // other options
  plugins: [
    // other plugins
    // terser(),
    copy({
      targets: [
        { src: 'package.json', dest: dest },
        { src: 'README.md', dest: dest },
        { src: 'workflow', dest: dest },
      ]
    })
  ],
};

Test & Checks

Write test on new code, see tests to more understand.

Run checks:

npm run lint:check
npm run ts:check
npm run test

Create PR into staging branch.