@jahia/scripts

1.3.3 • Public • Published

Welcome to @jahia/scripts 👋

Version License: JAHIA'S DUAL LICENSING Twitter: Jahia

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

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @jahia/scripts

    Weekly Downloads

    65

    Version

    1.3.3

    License

    MIT

    Unpacked Size

    24.8 kB

    Total Files

    21

    Last publish

    Collaborators

    • cmailleux
    • shuber
    • gflores-jahia
    • jahiaadmin
    • mdechecchi
    • jahia-ci