Giter Site home page Giter Site logo

statamic-cartographer's Introduction

Statamic Cartographer

WIP drag and drop map editor for Statamic.

Development

Installation

To install this addon for local development create a directory at addons/andrewhaine/statamic-cartographer and clone the repository.

You will also need to tell composer to use the local copy of the addon rather than fetching it from packagist, to do this add the following entry to the repositories value in composer.json and run composer update.

{
    "type": "path",
    "url": "addons/andrewhaine/statamic-cartographer"
}

CP assets

The CP assets for this addon (i.e. the vue files which power the custom fieldtypes) are built using ViteJS with additional type checking from Typescript.

All frontend dependencies are installed via yarn so you should run yarn install inside the addon directory after cloning the repository.

In order to build these for local development you can use yarn build which will automatically run the typescript command against the project files.

Node version

The node version for this addon is managed via nvm, the current version being used is stored in the .nvmrc file.

Publishing the vendor files

I'm using docker so am unable to use the symlinking functionality suggested in the Statamic docs, however the following command will manually publish the cartographer js file to the public vendor directory where it can be accessed by the CP.

yarn build && cp -r  resources/dist/ ../../../public/vendor/statamic-cartographer

statamic-cartographer's People

Contributors

andrewhaine avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.