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

Import a project in Cordova #103

Description

@alexrtou

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions