GithubHelp home page GithubHelp logo

isabella232 / rollup-plugin-ractive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rollup/rollup-plugin-ractive

0.0 0.0 0.0 14 KB

Precompile Ractive components

JavaScript 91.62% HTML 8.38%

rollup-plugin-ractive's Introduction

Inactive

Ractive as a project is essentially dead, and this plugin is no longer maintained nor supported.

rollup-plugin-ractive

Precompile Ractive components.

Installation

npm install --save ractive # not included!
npm install --save-dev rollup-plugin-ractive

Usage

import { rollup } from 'rollup';
import ractive from 'rollup-plugin-ractive';

rollup({
  entry: 'src/main.js',
  plugins: [
    ractive({
      // By default, all .html files are compiled
      extensions: [ '.html', '.ract' ],

      // You can restrict which files are compiled
      // using `include` and `exclude`
      include: 'src/components/**.html',
      
      // Output format. When doing server-side rendering, you might need to set this
      // to "cjs" if you import other JS files in your components.
      format: 'es6',
      
      // Options passed to Ractive.parse()
      parseOptions: {}
    })
  ]
}).then(...)

License

MIT

rollup-plugin-ractive's People

Contributors

martinkolarik avatar rich-harris avatar shellscape avatar vinkla avatar

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.