fatso83 / gulp-kit Goto Github PK
View Code? Open in Web Editor NEWIntegrate node-kit with gulp
Integrate node-kit with gulp
I keep most of my kit partials in a folder in the root directory of my project. Currently, the only way to reference these files from a subdirectory is like so: ../kit-includes/foo.kit
I would hope there is a way to improve this so I can just specify the root path and gulp-kit picks up the files there (like so: /kit-includes/foo.kit
).
If this issue needs to be placed upstream, just close this and I'll post it there.
The node-kit package has been updated to support 'nil' variables which aren't in the end results HTML output files.
It would be great if the ref is updated to this new version so we can make use of this via the Gulp wrapper.
gutil.File => https://www.npmjs.com/package/vinyl
gutil.replaceExtension => The .extname property on Vinyl objects or https://www.npmjs.com/package/replace-ext
gutil.colors => https://www.npmjs.com/package/ansi-colors
gutil.date => https://www.npmjs.com/package/date-format
gutil.log => https://www.npmjs.com/package/fancy-log
gutil.template => https://www.npmjs.com/package/lodash.template
gutil.env => https://www.npmjs.com/package/minimist
gutil.beep => https://www.npmjs.com/package/beeper
gutil.noop => https://www.npmjs.com/package/through2
gutil.isStream => Use the .isStream() method on Vinyl objects
gutil.isBuffer => Use the .isBuffer() method on Vinyl objects
gutil.isNull => Use the .isNull() method on Vinyl objects
gutil.linefeed => Use the string '\n' in your code
gutil.combine => https://www.npmjs.com/package/multipipe
gutil.buffer => https://www.npmjs.com/package/list-stream
gutil.PluginError => https://www.npmjs.com/package/plugin-error
I cannot run gulp-kit in gulp 4.0.0, I think it has issue with outdated gulp-util. Could someone help me with this?
Hi, ref the discussion in #2 a year or so ago you were looking for maintainer. I volunteered, but got no response. Are you still looking? If so you can transfer the repo to me, and I'll take on the maintainership.
Hi, I'm getting compilation errors importing a header.kit file with placeholder variables when defining variables as below in my index.kit template file.
<!-- $pageTitle = home -->
<!-- $pageDescription = home -->
<!-- $bodyClass = home -->
<!-- @include "header.kit" -->
If i don't declare the variables to be empty in the initial header.kit partial file, I get the following error code in terminal:
Error: Line 9 of header.kit: The variable $pageTitle is undefined.
at Kit._compileToken (/Users/Ben/Sites/F5Gulp/node_modules/gulp-kit/node_modules/node-kit/lib/node-kit.js:315:19)
at Kit.compile (/Users/Ben/Sites/F5Gulp/node_modules/gulp-kit/node_modules/node-kit/lib/node-kit.js:116:14)
at Kit.toString (/Users/Ben/Sites/F5Gulp/node_modules/gulp-kit/node_modules/node-kit/lib/node-kit.js:128:28)
at kit (/Users/Ben/Sites/F5Gulp/node_modules/gulp-kit/node_modules/node-kit/lib/node-kit.js:21:25)
at DestroyableTransform.transform [as _transform] (/Users/Ben/Sites/F5Gulp/node_modules/gulp-kit/index.js:26:18)
at DestroyableTransform.Transform._read (/Users/Ben/Sites/F5Gulp/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/Users/Ben/Sites/F5Gulp/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/Users/Ben/Sites/F5Gulp/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/Users/Ben/Sites/F5Gulp/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/Users/Ben/Sites/F5Gulp/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
Hi there,
Any chance you could add an OSS to your repository? node-kit is MIT, but you're not restricted to that.
Cheers,
Richard
Are there plans to generate sourcemaps ( https://web.dev/articles/source-maps & https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#heading=h.1ce2c87bpj24 ) so that when debugging through an assembled file created by gulp-kit the browser/ide knows which smaller file the code came from and opens the correct one at the right line?
Having this would be fantastic.
ReferenceError: gutil is not defined
Can we get a fix for this which has been an issue since you updated to 1.0.0 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.