1.3.3 ā€¢ Published 10 months ago

@jahia/scripts v1.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Jahia internal build script

Install

In your project:

yarn add @jahia/scripts

Then add in your package.json those scripts:

"scripts": {
  "babel:js": "jahia-babel-js",
  "babel:module": "jahia-babel-module",
  "react2dts": "jahia-react2dts",
  "publish-script": "jahia-publish",
  "prepare-build": "jahia-prepare-build",
  "build": "jahia-build",
  "build-umd": "jahia-build-umd"
}

Usage

Once installed the following scripts are available and can be used in package.json :

  • jahia-babel-js : generates transpiled JS files in build/js folder, used for "main" entry
  • jahia-babel-module : generates transpiled JS files, keeping module import/exports, in build/esm folder, used for "module" entry
  • jahia-prepare-build : copy d.ts and resource files to builds directories
  • jahia-build : calls jahia-prepare-build , jahia-babel-js and jahia-babel-module
  • jahia-publish : publish the module ( deprecated )
  • jahia-react2dts : just call react2dts to generate typings from react component
  • jahia-build-umd : build the umd file based on rollup ( deprecated )

Author

šŸ‘¤ Jahia

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2019 Jahia. This project is JAHIA'S DUAL LICENSING licensed.


This README was generated with ā¤ļø by readme-md-generator