elm-wrap logo elm-wrap

Initialize a new Elm package in the current directory.

$ wrap package init my/package@2.0.0
Here is my plan:
  
  Create new elm.json for the package:
    my/package    2.0.0
  
  Source: /Projects/packages/my/package
  
  Also, I will register the package for local development. To prevent that,
  run the command again with the `--no-local-dev` flag.


To use this package in an application, run from the application directory:
    wrap package install my/package
  

Would you like me to proceed? [Y/n] 

This creates a new package directory containing an elm.json. If you don't specify a version, the package will start at 1.0.0.

The command also registers the package for local development.

For more about local development, see wrap install.

Options

--no-local-dev — Skip registering the package in the local-dev registry

Helper options

-y, --yes — Skip confirmation prompt