- Node.js and npm installed on your machine.
- Basic understanding of JavaScript, TypeScript, HTML, and CSS.
First, clone the repository (if you haven't already) and navigate to the project directory:
git clone https://github.com/jeanmachuca/qcobjects-web-2025.git
cd qcobjects-web-2025Install the necessary dependencies listed in the package.json file:
npm installEnsure your project structure looks something like this:
qcobjects-web-2025/
├── src/
│ ├── css/
│ │ └── tailwind-source.css
│ ├── img/
│ ├── js/
│ ├── scss/
│ ├── templates/
│ └── index.html
├── browser/
├── package.json
└── ...
To build the project, you can use the following npm scripts:
-
Build SASS:
npm run build:sass
This command compiles your SCSS files into CSS.
-
Build Tailwind CSS:
npm run build:tailwind
This command processes your Tailwind CSS source file.
-
Minify CSS:
npm run minify:css
This command minifies your CSS files using
esbuild. -
Build for Browser:
npm run build:browser
This command runs all the build steps, including copying necessary files to the
browserdirectory and bundling JavaScript files.
To start the project in development mode with file watching, use:
npm run start:devThis will watch for changes in the src directory and rebuild the project as needed.
To start the server and serve your project, use:
npm run startThis command builds the project and starts the qcobjects-http-server.
- File Watching: The
npm-watchpackage is configured to watch for changes in thesrcdirectory with specific extensions (ts,html,css). It will trigger thestartscript when changes are detected. - Legacy Watch: The
legacyWatchoption is enabled for compatibility with older file systems.