0.0.9-alpha.1 • Published 2 years ago

rollup_package_demo v0.0.9-alpha.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Demo Of Package JS For Rollup

yarn version rollup version typescript version

Version 0.X Is Not Available Now

Current is alpha Version. So Not recommended

Table of Contents:

Not yet

Getting Started

Not yet

How To Install

In the Browser

To use the Demo in the browser, simply add the following script tag to your HTML pages:

 <script src="https://xxx/rollup_package_demo.esm.min.js"></script>

In Node.js

The preferred way to install the Demo for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:

npm install rollup_package_demo

In React Native

To use the Demo in a react native project, first install the DEMO using npm:

npm install rollup_package_demo

Then within your application, you can reference the react native compatible version of the Demo with the following:

var RollupDemo = require('rollup_package_demo');

Using Bower

You can also use Bower to install the DEMO by typing the following into a terminal window:

bower install rollup_package_demo

Usage with TypeScript

The Demo for JavaScript bundles TypeScript definition files for use in TypeScript projects and to support tools that can read .d.ts files. Our goal is to keep these TypeScript definition files updated with each release for any public api.

Pre-requisites

Before you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements:

  • Use TypeScript v4.x
  • Includes the TypeScript definitions for node. You can use npm to install this by typing the following into a terminal window:

    npm install --save-dev @types/node
  • If you are targeting at es5 or older ECMA standards, your tsconfig.json has to include 'es5' and 'es2015.promise' under compilerOptions.lib. See tsconfig.json for an example.

In the Browser

To use the TypeScript definition files with the global RollupDemo function in a front-end project, add the following line to the top of your JavaScript file:

RollupDemo({a:2})

This will provide support for the global RollupDemo function.

In Node.js

To use the TypeScript definition files within a Node.js project, simply import rollup_package_demo as you normally would.

In a TypeScript file:

// import entire rollup_package_demo
import RollupDemo from 'rollup_package_demo';

In a JavaScript file:

// import entire rollup_package_demo
var RollupDemo = require('rollup_package_demo');

With React

With Angular

Known Limitations

There are a few known limitations with the bundled TypeScript definitions at this time:

Getting Help

#Example

<script src="https://xxx/rollup_package_demo.esm.min.js"></script>
<script type="application/javascript">
  console.log(RollupDemo({a: 2}))
  // {a:2,a_plus:3}
</script>

The best way to interact with our team is through GitHub.

Please make sure to check out our resources too before opening an issue:

Maintenance and support for Demo major versions

Contributing

We welcome community contributions and pull requests. for information on how to set up a development environment and submit code.

License

This Demo is distributed under the MIT License, see LICENSE.txt and NOTICE.txt for more information.

0.0.9-alpha.1

2 years ago

0.0.9-alpha

2 years ago

0.0.8-alpha

2 years ago

0.0.7-alpha

2 years ago

0.0.6-alpha

2 years ago

0.0.5-alpha

2 years ago

0.0.4-alpha

2 years ago

0.0.3-alpha

2 years ago

0.0.2-alpha

2 years ago

0.0.1-alpha

2 years ago