New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-riotts-precompile

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-riotts-precompile

precompile tags for RiotTS

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-riotts-precompile

Precompile tags for RiotTS

This task is meant to be used with RiotTS, the TypeScript friendly version of Riot.js.

It reads HTML template files from a directory, compiles them with Riot and makes them available to RiotTS into a single concatenated JavaScript file.

See RiotTS documentation for more details on how to use precompiled tags.

How to use it

Install with

npm install grunt-riotts-precompile --save-dev

Then customize your Gruntfile.js with something like this:

grunt.initConfig({
  precompileTags: {
    src: ['tags/**/*.html'],
    dest: 'precompiled-tags.js',
    indexByTagName: false
  }
});

grunt.loadNpmTasks('grunt-riotts-precompile');

grunt.registerTask('default', ['precompileTags']);  
grunt.registerTask('clean', ['precompileTags:off']);

With the above example task, all tags from the tags/ directory are read and compiled into precompiled-tags.js.

  • src is the source folder
  • dest is the output JavaScript file to be linked in your application
  • indexByTagName if set to true will index compiled tags by tagname rather than file path.

Keywords

FAQs

Package last updated on 12 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc