Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Import a project in Cordova #103

Open
alexrtou opened this issue Jan 30, 2017 · 0 comments
Open

Import a project in Cordova #103

alexrtou opened this issue Jan 30, 2017 · 0 comments

Comments

@alexrtou
Copy link

alexrtou commented Jan 30, 2017

Description

Hi, i'm using fountainJs for my project but i have some problem to import the generated dist in a cordova project...

What I do :

  • I generate a landing page
  • with Webpack, angular 2, typeScript, less and no integration.
  • build gulp
  • copy dist in www directory of an hello world Cordova project.
  • and run cordova emulate android

gulp serve:dist is ok, but my webview stay on loading...

In typescript, this problem could come from tsconfig options... but I can't find the good ones.

I have an older project with fountainJs1 that works on iOS with some changes :

  • change <base>
  • add scripts in header

like this :

<!doctype html>	    
<html>	    
<head>	      
<meta charset="utf-8">	      
<title>my app</title>	      
<meta name="description" content="">	      
<meta name="viewport" content="width=device-width">	      
<link rel="icon" type="image/png" href="favicon.ico" />	      
<link href="index-08d10f96abd704e0a9143baf70075f94.css" rel="stylesheet">	      
<script src="vendor-1edc16035a4f4c687293.js"></script>
<script src="app-1edc16035a4f4c687293.js"></script>	      
<base href="./">	    
</head>	    
<body ng-app="app">	      
<ui-view></ui-view>	    
</body>	    
</html>

But it does not work with fountainJs2 ...

Error Message & Stack Trace

Sory I have no log from emulator...

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-angular2": {
    "version": "1.0.0-rc2",
    "props": {
      "resolved": "/home/alexandre/tools/nodejs/lib/node_modules/generator-fountain-angular2/generators/app/index.js",
      "namespace": "fountain-angular2:app",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "framework": "angular2",
      "modules": "webpack",
      "css": "less",
      "js": "typescript",
      "ci": [],
      "sample": "techs",
      "router": "uirouter"
    }
  }
}

Environment

$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v7.0.0
linux 3.16.0-4-amd64
$ yo --version
1.8.5
$ npm --version
4.0.1

I really appreciate some help :)
Thx
Alex

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant