Introducing a Gulp based project bundler, specifically designed for featuring JavaScript home assignments.
Compile PUG to HTML, SCSS to CSS and mirror JS files along with images.
- Clone the repository:
git clone https://github.com/Arkanit7/js_homework_2025.git
- Navigate to the project directory:
cd js_homework_2025 - Install the dependencies:
npm install
Pug is combined with custom filters. Check them out:
Allows to easily input TeX math, which will be converted to MathML. Powered by Temml:
p Дано масив #[:math x] із #[:math n] елементів. Знайдіть
|
|
:math
x_1 x_n + x_2 x_{n - 1} + ... + x_n x_1Code section with variety of themes. Powered by Shiki.
:code(lang="javascript", theme="material-theme-ocean")
const productsPrices = [1000, 20, 31]
const productsTitles = ['cheese', 'juice', 'bread']Currently only JS is supported, but it can be easily changed in the configuration, along with themes.
Insert SCSS right in to your PUG file:
style
:scss
.foo {
&__bar {
color: magenta;
}
}To start the development server, run:
npm run devIt will stare a server on http://localhost:3000/ and open a Firefox browser (if installed).
To build the project, run:
npm run builddev: Starts the development server.build: Builds the project for production.
Arkanit
ISC
