Giter VIP home page Giter VIP logo

gulp-component-assembler's People

Contributors

dcravenus avatar emilyswhiting avatar intervalia avatar redbugz avatar spacerockzero avatar straker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-component-assembler's Issues

Assign __FILE__ or some other variable prior inlined file with relative path.

It would be nice if prior to the inline content of a js file the bundler would assign a FILE variable, like so:

/*

  • Included File: some-directory/some-file.js
    */
    var FILE= "some-directory/some-file.js";

/*

  • Included File: some-directory/another-file.js
    */
    var FILE= "some-directory/another-file.js";

And so on... this would help when dealing with bundled js that uses AMD, for example.

License Type

Mike, do you really want to use a GPL 2 license? If you do, many companies won't use your software. That's why the open source community has gone largely to an MIT license.

Support for keys in locale files

In my locale files, I've got the strings somewhat namespaced like this:

  "heading": {
    "additionalInfo": "Additional Information",
    "alternateNames": "Alternate Names"
  },
  "label": {
    "any": "Any",
    "placeName": "Place Name",
    "jurisdiction": "Jurisdiction"
  },
  "placeholder": {
    "jurisdiction": "Search Jurisdictions",
    "placeName": "Search Place Name"
  },
  "tooltip": {
    "distanceHelp": "Specify 'k' for kilometers and 'm' for miles. e.g. '30m'"
  },
  "button": {
    "advanced": "Advanced",
    "backToResults": "Back to Results",
    "clear": "Clear",
    "search": "Search"
  }
}

So in my template I would put {button.advanced}, but it's not replaced in the template.

Feature request: access to list of files built into assembly

We need to be able to ignore all js, html templates, and sibling css files of assemblies from going though their normal processing pipelines. I'm currently using gulp-ignore and reading all the files from each assembly.json to ignore js assets, but this doesn't give me the html template files or a css file.

Better docs and interface to plugins

Docs are currently lacking on how to get and use any of the plugins that are available in the plugins directory (need to require them using require('./node_modules/gulp-component-assembler/plugins/oldTemplates.js')). If the require statement could be made shorter, or maybe just attaching the plugins to the component assembler, that would be nice too.

watch option will cause the task to start watching even if you just wanted to run the task without watch

If you set the watch option to true, then running just the task to build assemblies will cause a watch to happen, which is an unexpected result. Instead, we should only trigger the watch inside a watch-like task so the user can control when the watch happens.

For example, if you gulpfile looks like

gulp.task('build', function() {
  gulp.src('**/assembly.json')
    .pipe(compasm.assemble({
      watch: true
    });
});

gulp.task('watch', function() {
  gulp.watch('**/assembly.json', ['buld']);
});

gulp.task('default', ['build', 'watch']);

Running gulp build will cause a watch, which is not what would be expected for just running the task itself. Also, running gulp watch does not trigger the watch on the files of the assembly.

I'm not sure the best way to resolve this one myself. Any ideas?

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.