Git Product home page Git Product logo

riot-rollup-setup's Introduction

Configuration simple de rollup avec prise en charge de Riot.js

Adapté de https://github.com/riot/examples/tree/gh-pages/rollup (voir cette page pour les détails de configuration).

Mise en route

Des scripts sont définis dans package.json.

NB : un script run devait permettre de lancer à la fois watch et server mais la commande double (&) semble ne pas fonctionner sous Windows.

Pour lancer un build initial :

$ npm run build

Pour lancer le server (plugin browser-sync) :

$ npm run server

browser-sync ouvre un navigateur à l'URL http://localhost:3000 (le port 3001 donne accès à un panneau d'administration).

Dans une autre console, lancer le script watch :

$ npm run watch

NB : n'ayant pas réussi à faire fonctionner le plugin chokidar sous Windows 7, je le remplace par rollup-watch.

Bundling

Les tâches de rollup sont définies dans le fichier rollup.config.js.

Le transpileur ECMAScript 6 utilisé n'est pas Babel mais Bublé (https://buble.surge.sh/guide/).

riot-rollup-setup's People

Contributors

nltesown avatar

Watchers

 avatar  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.