A template on how to create an user interface for RCC.
git clone https://github.com/Lecter2508/rccui
cd /path/of/project
npm i
npm run dev
It's always a good idea to run the install command from the package manager when new packages have been installed:
cd /path/of/project
npm i
To see if new packages have been installed, consult the package.json for any changes:
cd /path/of/project
nano package.json
cd /path/of/project
npm run test
To create a test file, add .test.js
after the file name.
Quick example :
// sum.js
export function sum(a, b) {
return a + b
}
// sum.test.js
import { expect, test } from 'vitest'
import { sum } from './sum'
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3)
})
path | files | code | comment | blank | total |
---|---|---|---|---|---|
src | 11 | 385 | 147 | 48 | 580 |
src (Files) | 4 | 144 | 6 | 20 | 170 |
src/Component | 3 | 100 | 133 | 18 | 251 |
src/assets | 1 | 1 | 0 | 0 | 1 |
src/utils | 3 | 140 | 8 | 10 | 158 |