Giter VIP home page Giter VIP logo

rollup-scripts's Introduction

CodeQL

Rollup Scripts

Rollup scripts is a "zero config" bundler for JavaScript and TypeScript libraries.

What does that mean?

Rollup scripts is designed to work out of the box for majority of JS and TS projects. It wraps the core functionality of Rollup in a smart way, therefore eliminating the need for setting up projects and configurations from scratch.

Roadmap

https://github.com/scssyworks/rollup-scripts/blob/main/ROADMAP.md

Getting started

  1. Create an npm project
npm init -y
  1. Install rollup-scripts. NOTE: Do not install this package globally!
npm i -D --save-exact rollup-scripts
  1. If you are testing a forked repository:
npm i -D --save-exact github:{your username}/rollup-scripts
  1. Create an src folder and an entry file index.js with a valid JavaScript code.
mkdir src
touch src/index.mjs
  1. Update package.json file as follows
{
  "main": "dist/umd/index.js",
  "module": "dist/esm/index.mjs",
  "scripts": {
    "build": "rollup-scripts build",
    "lint": "rollup-scripts lint",
    "init": "rollup-scripts init"
  }
}
  1. Run command npm run build to compile the code.

NOTE:

Rollup scripts currently supports compilation for JavaScript, TypeScript, React and Preact projects. We are working to add support for Angular, Vue and Svelte projects as well.

npx rollup-scripts build

Available commands

Rollup-scripts supports init, build and lint scripts. For more details run:

npx rollup-scripts --help

This package is currently experimental and in active development. Version 0.0.x is unstable and should be used only for trial purposes.

https://github.com/scssyworks/rollup-scripts/issues

rollup-scripts's People

Contributors

dependabot[bot] avatar sachinsingh30 avatar scssyworks avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rollup-scripts's Issues

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.