GithubHelp home page GithubHelp logo

kevinsimard / cordova-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 176 KB

Cordova application structure

License: MIT License

JavaScript 84.92% HTML 15.08%
cordova javascript app-structure mobile-app angularjs phonegap localization

cordova-app's Introduction

Cordova Application Structure

Build Status Dependency Status devDependency Status

Installation

This structure utilizes Npm and Bower to manage its dependencies. So, before using it, you will need to make sure you have both of them installed on your machine.

Once installed, run the following commands to install the dependencies.

$ npm install
$ bower install

Gulp Tasks

Developement environment(s)

$ gulp dev

The following options are available:

  • --watch: Rerun subtasks when a file changes
  • --env=<ENV>: Override default configuration file
  • --serve: Built-in static server for basic HTML/JS/CSS websites

Production environment(s)

$ gulp www

The following options are available:

  • --env=<ENV>: Override default configuration file

Unit Tests

Note: Make sure that dependencies are installed ($ npm install).

The unit tests are available with $ npm test which is actually a shortcut for $ gulp test.

Code Structure

├── dev
│   ├── app
│   │   ├── components
│   │   │   └── layout
│   │   │       ├── directives
│   │   │       │   ├── footer.js
│   │   │       │   └── header.js
│   │   │       └── templates
│   │   │           ├── footer.tpl
│   │   │           └── header.tpl
│   │   ├── modules
│   │   │   └── lang
│   │   │       ├── factories
│   │   │       │   └── translate.js
│   │   │       ├── locales
│   │   │       │   └── en.json
│   │   │       ├── subscribers
│   │   │       │   └── locale.js
│   │   │       ├── .gitignore
│   │   │       ├── config.js
│   │   │       └── module.js
│   │   ├── views
│   │   │   └── index
│   │   │       ├── controllers
│   │   │       │   └── index.js
│   │   │       ├── templates
│   │   │       │   └── index.tpl
│   │   │       └── states.js
│   │   ├── .gitignore
│   │   ├── bootstrap.js
│   │   ├── module.js
│   │   └── states.js
│   ├── assets
│   │   ├── docs
│   │   │   └── .gitkeep
│   │   ├── fonts
│   │   │   └── .gitkeep
│   │   ├── images
│   │   │   └── .gitkeep
│   │   ├── scripts
│   │   │   └── .gitkeep
│   │   └── styles
│   │       └── .gitkeep
│   ├── .gitignore
│   ├── .htaccess
│   ├── favicon.ico
│   └── index.html
├── gulp
│   └── tasks
│       ├── stubs
│       │   ├── constant.ejs
│       │   ├── locale.ejs
│       │   └── template.ejs
│       ├── browsersync.js
│       ├── constant.js
│       ├── copy.js
│       ├── jshint.js
│       ├── locale.js
│       ├── minify.js
│       └── template.js
├── test
│   ├── coverage
│   │   └── .gitignore
│   └── specs
│       ├── components
│       │   └── layout
│       │       └── directives
│       │           ├── footer.js
│       │           └── header.js
│       ├── modules
│       │   └── lang
│       │       ├── factories
│       │       │   └── translate.js
│       │       └── subscribers
│       │           └── locale.js
│       └── views
│           └── index
│               ├── controllers
│               │   └── index.js
│               └── states.js
├── www
│   └── .gitignore
├── .bowerrc
├── .editorconfig
├── .env.example
├── .env.json
├── .gitattributes
├── .gitignore
├── .jshintrc
├── .travis.yml
├── LICENSE.md
├── README.md
├── bower.json
├── config.xml
├── gulpfile.js
├── karma.conf.js
└── package.json

License

This package is open-sourced software licensed under the MIT license.

cordova-app's People

Contributors

kevinsimard avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.