These requirements are only needed for developing the source code.
- Node.js
>= v18.19.0
. - npm.
Download repo and install dependencies:
git clone [email protected]:Lomray-Software/vite-ssr-boost.git
npm i
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 },
]
})
],
};
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.