@talxis/client-scripts

0.0.2 • Public • Published

@talxis/client-scripts

This is a preview version of this package.

Set of configuration and scripts to simplify the build process of Power Apps client scripts.

Usage

  1. Create a new project
  2. Install @talxis/client-scripts as a dev dependency via NPM, YARN etc.
    npm install @talxis/client-scripts --save-dev
    
  3. In your package.json create a script to run the build
    "scripts": {
        "build": "rollup -c"
    }
    

    This will be soon changed to execute via the library directly. Rollup and its dependencies are already included.

  4. Create a rollup.config.js file in the root of your project
    import base_options from './node_modules/@talxis/client-scripts/assets/rollup.config_base.js';
    
    export default {
        ...base_options,
        output: [
            {
                file: "dist/<library_name>.js",
                format: 'umd',
                sourcemap: true,
                name: "<library_name>"
            }
        ],
    }

    For library_name use the name of your library, usually snake case. This will be used as the name of the global variable.

  5. Create your tsconfig.json file
    {
        "extends": "./node_modules/@talxis/client-scripts/assets/tsconfig.json"
    }
  6. The default expected structure is that source entry point is located in src/index.ts folder and output goes to dist/ folder. You can override everything as needed.

Readme

Keywords

none

Package Sidebar

Install

npm i @talxis/client-scripts

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.6 kB

Total Files

4

Last publish

Collaborators

  • networg-npm
  • dominik_brych
  • hajekj