@animalus/ng-pug

0.0.3 • Public • Published

ng-pug

Gulp utils for using pug with angular.

Usage

Create a gulpfile.mjs file and add the following.

Assuming a standard project in which your source code is under a "src" directory.

import { addPugTasks } from "@animalus/ng-pug";
import gulp from "gulp";

addPugTasks(gulp);

This will add 2 tasks. pug which simply compiles all of your pug templates. And pugwatch which you can use to set up a watch to recompile on changes. I use the latter in conjunction withng serve(I useconcurrent to run them in parallel) so that a change in the template or code results in an update of the app.

License

Copyright © 2023 Animal.usken@happywhale.com

This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See LICENSE for full details.

/@animalus/ng-pug/

    Package Sidebar

    Install

    npm i @animalus/ng-pug

    Weekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    2.24 kB

    Total Files

    3

    Last publish

    Collaborators

    • crowmagnumb