1.0.19 • Published 2 years ago

next-cordova-exporter v1.0.19

Weekly downloads
1
License
ISC
Repository
github
Last release
2 years ago

NextJs Cordova exporter

Use this package if you want to run a nextjs project in cordova

#Requirements

NextJs
Cordova

You will need Cordova installed as a global package
e.g: npm i -g cordova

Steps required

Install cordova: (npm -g cordova or yarn global add cordova)
Install this package (npm install next-cordova-exporter or yarn add next-cordova-exporter)

Add the following scripts to your package.json file:

  "scripts": {
    "export-cordova": "next build && next export && next-cordova-export",
    ...
  },

Run the command (in your terminal) npm run export-cordova in the root folder of your project

Add cordova platforms for project:
e.g:
cordova platform add browser
cordova platform add android
cordova platform add ios

The to run in the browser:
run cordova run browser For IOS run cordova run ios For Android run cordova run android

Tidy up

Be sure to hide the following folders from linters, tyescript, and git etc

Typescript:
Add the following to your .tsconfig file:

"exclude": ["out", "www", "platforms"],

Git:
Add the following to your .gitignore file:

**/platforms/*
**/out/*
**/www/*

Eslint:
Add the following to your .eslintignore file:

**/platforms/*
**/out/*
**/www/*
config.xml

TODO

Images and css may not yet work
Currrenly ignores cordova config.

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago