1.0.5 • Published 4 years ago

craco-itk v1.0.5

Weekly downloads
619
License
Apache-2.0
Repository
github
Last release
4 years ago

craco-itk

Let's use 👁🐍🧰itk with create-react-app today!

This is a plugin for @craco/craco.

Usage

1. Create a React project

npm install -g create-react-app # or yarn global add create-react-app
create-react-app example
cd example

2. Install modules

In your create-react-app project, install modules:

npm install --save @craco/craco craco-itk itk
# or
yarn add @craco/craco craco-itk itk

3. Rewrite npm scripts

Rewrite npm scripts in package.json as following:

{
  // ...
  "scripts": {
    "start": "craco start", // react-scripts -> craco
    "build": "craco build", // react-scripts -> craco
    "test": "craco test",   // react-scripts -> craco
    "eject": "react-scripts eject"
  },
  // ...
}

4. Create craco config file

Create craco.config.js in the proejct root:

const CracoItkPlugin = require("craco-itk");

module.exports = {
  plugins: [
    {
      plugin: CracoItkPlugin()
    }
  ]
};

5. Congratulations! 🎉

Setup is complete! Enjoy your ITK life.🏝

Acknowledgements

This package was inspired by craco-cesium.

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago