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
- Host: GitHub
- URL: https://github.com/bcopy/inkjs-capacitor-template
- Owner: bcopy
- Created: 2022-10-26T09:33:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T09:33:41.000Z (over 3 years ago)
- Last Synced: 2025-04-06T14:43:08.062Z (about 1 year ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 🎉🙌