Giter Site home page Giter Site logo

gulp-kit's People

Contributors

altearius avatar churchs19 avatar fatso83 avatar gfra54 avatar grawl avatar lukx avatar mstalfoort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-kit's Issues

Root directory files not found

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.

Update node-kit npm reference to 0.9.0

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.

remove gulp-util using the following API replacements

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

Imported .kit file variables not working

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)

OSS License?

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

Publish a new version on NPM

The hours I have wasted on #2 is due to changes in this module not being followed by a new release and publish of that version to NPM.

Simply doing

npm version patch
npm publish 

will fix #2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.