An open API service indexing awesome lists of open source software.

https://github.com/bcopy/inkjs-capacitor-template

A starter template for InkJS and Capacitor
https://github.com/bcopy/inkjs-capacitor-template

Last synced: 6 months ago
JSON representation

A starter template for InkJS and Capacitor

Awesome Lists containing this project

README

          

# Inkjs Capacitor starter project with Maven

Why even ? Maven and the excellent [frontend plugin](https://github.com/eirslett/frontend-maven-plugin) provide a virtual environment for NPM-based development :
* :relieved: Experiment safely with Node and NPM without messing with your operating system.
* :muscle: Let Maven handle the heavy-lifting related to Git flow releasing and versioning.

## How to boostrap your own Maven and NPM project

You need to register a Maven POM file using the Frontend plugin, as described on the [plugin homepage](https://github.com/eirslett/frontend-maven-plugin). Your configuration should specify the Node and NPM installation, here for instance with Node v12.x and NPM v6.x :

```xml

com.github.eirslett
frontend-maven-plugin
1.12.1

${project.basedir}
v12.18.3
6.14.8



install node and npm

install-node-and-npm



npm install

npm



npm run build

npm


run build



```

Create a source folder, install NPM, extend your PATH then use ``npm init`` to create your ``package.json`` :

```bash
mvn com.github.eirslett:frontend-maven-plugin:install-node-and-npm
export PATH=`pwd`/node:`pwd`/bin:$PATH
npm init
```

You can then install the Capacitor toolset with :

```bash
npm i @capacitor/core
npm i -D @capacitor/cli
```

Happy coding 🎉🙌