@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
- Create a new project
- Install
@talxis/client-scripts
as a dev dependency via NPM, YARN etc.npm install @talxis/client-scripts --save-dev
- 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.
- Create a
rollup.config.js
file in the root of your projectimport 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. - Create your
tsconfig.json
file{ "extends": "./node_modules/@talxis/client-scripts/assets/tsconfig.json" }
- The default expected structure is that source entry point is located in
src/index.ts
folder and output goes todist/
folder. You can override everything as needed.