Git Product home page Git Product logo

justin-credible / ionic-typescript-starter Goto Github PK

View Code? Open in Web Editor NEW
123.0 123.0 32.0 3.49 MB

:iphone: Platform and IDE agnostic starter project for building mobile apps with Ionic and TypeScript.

Home Page: http://justin-credible.github.io/Ionic-TypeScript-Starter/

License: MIT License

JavaScript 18.17% TypeScript 69.73% HTML 10.14% SCSS 1.95%
cordova ionic ionic-framework starter typescript vscode

ionic-typescript-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ionic-typescript-starter's Issues

`gulp` stops for `tsc -p src`

The error:

[19:07:23] Starting 'ts'...
error TS5023: Unknown option 'p'
Use the '--help' flag to see options.

error TS5007: Cannot resolve referenced file: 'src'.


[19:07:24] 'ts' errored after 1.33 s
[19:07:24] Error: Command failed: C:\Windows\system32\cmd.exe /s /c "tsc -p src"
error TS5007: Cannot resolve referenced file: 'src'.


    at ChildProcess.exithandler (child_process.js:751:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
[19:07:24] 'default' errored after 53 s
[19:07:24] Error: [object Object]
    at formatError (C:\Users\Yaojian\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:169:10)
    at Gulp.<anonymous> (C:\Users\Yaojian\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:195:15)
    at Gulp.emit (events.js:129:20)
    at Gulp.Orchestrator._emitTaskDone (C:\Yaojian\Projects\TsIonic\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
    at C:\Yaojian\Projects\TsIonic\node_modules\gulp\node_modules\orchestrator\index.js:275:23
    at finish (C:\Yaojian\Projects\TsIonic\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
    at cb (C:\Yaojian\Projects\TsIonic\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3)
    at finish (C:\Yaojian\Projects\TsIonic\node_modules\run-sequence\index.js:53:5)
    at Gulp.onError (C:\Yaojian\Projects\TsIonic\node_modules\run-sequence\index.js:60:4)
    at Gulp.emit (events.js:129:20)

I tried tsc --p src at command line and got the same error.

Error after gulp init

When i try run # gulp init
this error appears:

Error: Registry returned 404 for GET on https://registry.npmjs.org/com.verso.cordova.clipboard

[16:59:25] 'plugins' errored after 1.1 min
[16:59:25] Error: Command failed: /bin/sh -c cordova plugin add [email protected]
Error: Failed to fetch plugin [email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.verso.cordova.clipboard
this purl is empty.

and this error appears when i run # ionic serve: Uncaught ReferenceError: JustinCredible is not defined, http://localhost:8100/js/boot1.js, Line: 17.

Enhancement: Obfuscate JavaScript for release

I am doubtful about obfuscating HTML, but JavaScript can be obfuscated for production. Something like this:

    uglify = require('gulp-uglify'),
    minifyHTML = require('gulp-minify-html')

gulp.task('js', ["ts"], function() {
  var config = JSON.parse(fs.readFileSync("src/tsconfig.json", "utf8"));
  var out = config.compilerOptions.out;
  var jsBundle = out.substring(0, out.length - 3); //remove .js extension
  gulp.src(out)
    .pipe(gulpif(isReleaseScheme(), uglify()))
    .pipe(gulp.dest(jsBundle + '.min.js'));
  del([out]); // delete js/bundle.js
});

// change the index.html to use js/bundle.min.js

Add a gulp target to perform iOS build and emulate remotely from Windows

Visual Studio on a Windows machine can delegate to a OSX machine running the remotebuild npm module to create builds as well as launch the iOS simulator.

This task is to add gulp and VSCode targets to allow developers on a Windows machine to build/emulate remotely on a OSX environment.

Gulp init failed on plugins

Hello,

I just made a git clone, type npm install and all were ok
type gulp init and I have this error on plugins task:

[15:43:52] 'plugins' errored after 39 s
[15:43:52] Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "cordova plugin add [email protected]"
Error: Failed to fetch plugin [email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.verso.cordova.clipboard

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
[15:43:52] Finished 'init' after 56 s
[15:43:52] 'default' errored after 39 s
[15:43:52] Error in plugin 'run-sequence'
Message:
An error occured in task 'plugins'.

Any idea about this plugin 404 error?

Enhancement: Transform empty Categories into useful Features.

Angular 2.0 follows a component design and John Papa's Angular style guide also favors a modular approach. To avoid a major re-work, when we move to Angular 2, I recommend that we transform existing Categories into Features. Here's an outline of the proposed changes:

  1. Each Feature has it's own directory which contains all it's files.
  2. Each Feature contains sample code to demonstrate a functionality which is required for most mobile apps. For instance, each useful Cordova plugin could be a separate Feature to show how it is used. Here are a few:
  3. It lowers the learning curve for adding a new Feature. Contributors will find it easier add new demo Features, once a pattern has been established.
  4. Maintainability will not go down as more Features are added.
  5. Update README.md with instructions on how to remove a Feature that is not required by your app.
  6. These changes should be tested in a separate branch.

gulp package-web generates an empty app.bundle.lib.js

Here is the environment:

ionic info

Your system information:

Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS 
Node Version: v4.4.0

Steps to reproduce:

git clone https://github.com/Justin-Credible/Ionic-TypeScript-Starter.git
cd Ionic-TypeScript-Starter/
npm install
gulp init
gulp config --prep web --scheme release

gulp package-web
[14:35:28] Info: Moving bundled lib to build/web/lib/app.bundle.lib.js
shell.js: internal error
Error: ENOENT: no such file or directory, rename 'build/web/resources-temp/app.bundle.lib.js' -> 'build/web/lib/app.bundle.lib.js'
    at Error (native)
    at Object.fs.renameSync (fs.js:681:18)

## Execute it again
gulp package-web
[14:37:42] Info: Bundling css, lib, and js directories to build/web/resources-temp
cat: no such file or directory: build/web/lib/uri.js/uri.min.js

echo $?
0

cat build/web/lib/app.bundle.lib.js && echo
null

overriding ionic scss sheets

I've noticed that filestructure of this starter differs from initial ionic structure. for example now ionic scss files are located in bower_components folder and I need to execute >gulp libs to transfer all .css files to www/libs folder.

what is the best way to override scss ionic files in your starter?

thx.

Add support for Windows 10 / UWP / IoT

The project should be updated to support Windows 10; both Universal Windows Platform and the IoT platforms (such as Raspberry Pi 2).

The following features currently do not work:

  • Toast Messages
  • Clipboard
  • Progress Indicator

Some of this work has already been done in this branch of the Smart Home Mobile app.

Cannot build using VS Code OSX

I updated all dependencies to newest version and still has the same errors.
This is my output:

[23:37:10] Using gulpfile ~/Projects/Ionic-TypeScript-Starter/gulpfile.js
[23:37:10] Starting 'ts:vars'...
[23:37:10] Finished 'ts:vars' after 18 ms
[23:37:10] Starting 'ts:src-read-me'...
[23:37:10] Finished 'ts:src-read-me' after 8.88 ms
[23:37:10] Starting 'ts:src'...
[23:37:11] Finished 'ts:src' after 101 ms
[23:37:11] Starting 'ts'...
src/Application.ts(45,26): error TS2503: Cannot find namespace 'Interfaces'.
src/Application.ts(56,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(57,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(58,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(59,35): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(59,73): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(59,111): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(60,36): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(68,73): error TS2339: Property 'ripple' does not exist on type 'Window'.
src/Application.ts(70,47): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(328,31): error TS2305: Module 'Ionic' has no exported member 'IPlatform'.
src/Controllers/BaseController.ts(56,75): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(69,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(82,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(95,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(108,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(121,79): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(134,79): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(147,77): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/CategoryController.ts(30,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Onboarding/OnboardingRegisterController.ts(36,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/RootController.ts(38,75): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/AboutController.ts(26,34): error TS2503: Cannot find namespace 'Interfaces'.
src/Controllers/Settings/AboutController.ts(34,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/CloudSyncController.ts(31,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/CloudSyncController.ts(41,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/ConfigurePinController.ts(30,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/DeveloperController.ts(42,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/LogEntryController.ts(29,34): error TS2503: Cannot find namespace 'Interfaces'.
src/Controllers/Settings/LogEntryController.ts(39,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/LogEntryController.ts(74,41): error TS2339: Property 'printStackTrace' does not exist on type 'Window'.
src/Controllers/Settings/LogsController.ts(32,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/SettingsListController.ts(28,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Services/Configuration.ts(22,32): error TS2304: Cannot find name 'BuildVars'.
src/Services/FileUtilities.ts(124,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(129,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(216,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(221,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(293,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(298,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(397,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(402,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(471,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(476,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(545,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(550,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(649,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(654,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(721,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(726,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1011,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1016,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1181,35): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1186,24): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1300,35): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1305,24): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1401,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1406,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1462,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1467,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/HttpInterceptor.ts(99,32): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(99,59): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(174,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(177,23): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(204,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(221,27): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(241,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(254,27): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(297,44): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(365,43): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/Logger.ts(270,45): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/MockPlatformApis.ts(34,34): error TS2304: Cannot find name 'ICordovaToastPlugin'.
src/Services/MockPlatformApis.ts(54,38): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(61,48): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(68,56): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(87,46): error TS2304: Cannot find name 'ICordovaProgressIndicator'.
src/Services/MockPlatformApis.ts(128,40): error TS2304: Cannot find name 'ICordovaCrashlyticsPlugin'.
src/Services/Plugins.ts(45,22): error TS2304: Cannot find name 'ICordovaToastPlugin'.
src/Services/Plugins.ts(46,137): error TS2339: Property 'toast' does not exist on type 'Plugins'.
src/Services/Plugins.ts(47,39): error TS2339: Property 'toast' does not exist on type 'Plugins'.
src/Services/Plugins.ts(57,34): error TS2304: Cannot find name 'ICordovaProgressIndicator'.
src/Services/Plugins.ts(58,81): error TS2339: Property 'ProgressIndicator' does not exist on type 'Window'.
src/Services/Plugins.ts(59,31): error TS2339: Property 'ProgressIndicator' does not exist on type 'Window'.
src/Services/Plugins.ts(69,26): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/Plugins.ts(73,120): error TS2339: Property 'clipboard' does not exist on type 'CordovaPlugins'.
src/Services/Plugins.ts(74,40): error TS2339: Property 'clipboard' does not exist on type 'CordovaPlugins'.
src/Services/Plugins.ts(111,28): error TS2304: Cannot find name 'ICordovaCrashlyticsPlugin'.
src/Services/Plugins.ts(112,92): error TS2339: Property 'crashlytics' does not exist on type 'Navigator'.
src/Services/Plugins.ts(113,34): error TS2339: Property 'crashlytics' does not exist on type 'Navigator'.
src/Services/Utilities.ts(25,32): error TS2304: Cannot find name 'BuildVars'.
src/Services/Utilities.ts(112,38): error TS2339: Property 'ripple' does not exist on type 'Window'.
src/Controllers/Settings/AboutController.ts(26,34): error TS4063: Parameter 'versionInfo' of constructor from exported class has or is using private name 'Interfaces'.
src/Controllers/Settings/LogEntryController.ts(29,34): error TS4063: Parameter 'versionInfo' of constructor from exported class has or is using private name 'Interfaces'.
src/Services/Configuration.ts(22,32): error TS4063: Parameter 'buildVars' of constructor from exported class has or is using private name 'BuildVars'.
src/Services/HttpInterceptor.ts(99,32): error TS4073: Parameter 'config' of public method from exported class has or is using private name 'Interfaces'.
src/Services/HttpInterceptor.ts(99,59): error TS4055: Return type of public method from exported class has or is using private name 'Interfaces'.
src/Services/Logger.ts(270,45): error TS4073: Parameter 'config' of public method from exported class has or is using private name 'Interfaces'.
src/Services/MockPlatformApis.ts(34,34): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaToastPlugin'.
src/Services/MockPlatformApis.ts(54,38): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(61,48): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(68,56): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(87,46): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaProgressIndicator'.
src/Services/MockPlatformApis.ts(128,40): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaCrashlyticsPlugin'.
src/Services/Plugins.ts(45,22): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaToastPlugin'.
src/Services/Plugins.ts(57,34): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaProgressIndicator'.
src/Services/Plugins.ts(69,26): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/Plugins.ts(111,28): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaCrashlyticsPlugin'.
src/Services/Utilities.ts(25,32): error TS4063: Parameter 'buildVars' of constructor from exported class has or is using private name 'BuildVars'.
[23:37:13] 'ts' errored after 2.04 s
[23:37:13] Error: Command failed: /bin/sh -c tsc -p src
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

npm install hangs

I know it's not your fault that npm wants to suck, but I only have this issue on your project.

Using Node 4.2.4, when I clone down the project and run npm install it will just hang forever. I've tried running in verbose as I've read other places this helps.

Everyone on my team has experienced this issue with this repo, do you have any suggestions or ever run into this issue yourself?

Travis CI build failures due to rate limiting on tsd API

The Travis CI build commonly fails due to tsd failing with a HTTP 403. I believe this is due to rate limiting of an API that tsd is using to download TypeScript definitions.

Investigate to see if there is a way to work around this.

CORS with package-web

Hey Justin, I'm wondering if i'm missing something here, I am now packaging for web, and I am still getting errors regarding interfacing with an external api.

When i run the web app that is bundled through gulp package-web it fires up and is functional but will not hold a session, it seems. When I open in chrome with extra security disabled it does work.

Is there something in the config that could be tripping it up? I can send you a link to see it in action if needed.

Implement Clipboard copy for Chrome Extension

The clipboard functionality currently assumes the Cordova plugin, and if not available uses a standard confirm() dialog for development purposes. This will cause the extension to lose focus and then close itself.

The Chrome extension should have the clipboardWrite in its manifest and use the following to copy to the clipboard:

http://stackoverflow.com/a/18258178/4005811

function directCopy(str){
    //based on http://stackoverflow.com/a/12693636
    document.oncopy = function(event) {
        event.clipboardData.setData("Text", str);
        event.preventDefault();
    };
    document.execCommand("Copy");
    document.oncopy = undefined;
}

NProgress should be used via UiHelper

NProgress is being used directly as a global variable; it should follow the same pattern as the rest of the libraries and be exposed via UiHelper.ts..

Use gulp wiredep to include js & css automatically in index.html.

wiredep is a tool to include javascript and css files from bower components automatically and include their dependencies in dependency order between bower tags like below in index.html.



This would make including a bower module as simple single step process as 'bower install stacktrace.js --save' as the index.html would be updated automatically.

I see that you are using only uri.min.js files as the package includes other files that you do not want. this can be accomplished by using bower overrides as illustrated in https://github.com/taptapship/wiredep#bower-overrides.

I also see that you are using ionic.bundle.min.js; if we do this this way, we dont have to worry about dependencies. To get a minified file, we need to take all the javascript files and minify, but that is a separate issues.

Going this route would mean that we need to have a 'original' index.html and a index.html with includes in www/ folder. This means copying the original to this location and adding this in gitignore.

I can submit a pull-request for this; where would you like to move the pristine index.html to?

gulp tsd:tests deletes custom typings

running gulp with no parameters deletes files in the typings/custom directory and hence the 'gulp ts' task results in a lot of errors starting with error TS2503: Cannot find namespace 'Interfaces'.;

checking out the deleted files, manually adding the file references to the tsd.d.ts and then running 'gulp ts' alone fixes these issues.

I can try fixing these and submitting a pull request, but would like some guidance on how to do this as I am new to typescript. ( if it matters, I am running this on ubuntu)

Enhancement: Upgrade to Ionic 1.2.1

Ionic 1.2.1 is the latest stable release and it brings a host of performance improvements. It also makes it easier to port the app to Ionic 2. Please upgrade the Ionic to 1.2.1 or if you want to skip that and go straight to Ionic 2.0 (still in beta), that's even better.

Please provide some guidance on the road map for this template.

Add mobile web specific assets

#57 Added support for different HTML files and asset bundling for mobile web.

This issue is for adding mobile web specific features, such as home screen icons, splash screens, favicons, and other assets that can make a mobile website feel more like a native app.

  • iOS Specific Features
    • Home Screen Icon
    • Splash Screen has been deprecated or bugged since iOS 9.x, see this post
  • Android Specific Features
    • Home Screen Icon
    • Splash Screen handled automatically via the set icon and background color
    • Custom toolbar color in Chrome
    • manifest.json
  • Windows Specific Features
    • Home Screen Icon
    • browserconfig.xml
  • Shared Features
    • CSS asynchonous loader to prevent render blocking
    • Loader screen
    • Utilities.isWebPlatform and Utilities.isWebStandalone
    • favicon.ico

Switch to custom fork of progressindicator plugin

The sister project was switched to use my custom fork of the progress indicator plugin to avoid a native crash as well as issues with long file paths being exceeded on windows.

This project should be updated to use the fork as well.

Initialize fires after view_beforeEnter

The initialize should fire before view_beforeEnter on the BaseController.

This has to due with the fact that initialize() is called from the BaseController's constructor method using a defer statement. This statement was originally needed so that a class extended BaseController would see it's own constructor finish executing before initialize fired. This was before the other view events were added. Now that these other view events are available and #38 has been completed, there should no longer be any logic in the constructors.

The defer statement should be removed.

Work on the wiki documentation

More documentation is never a bad thing; the current wiki page is just a giant brain dump. It could be much more organized and detailed.

Build the project using Visual Studio

Is it possible to add a VS project so we can build this project with either vs or command line interface?

The two project Ionic-TypeScript-Starter and Ionic-TypeScript-MDHA-Starter can be merged into one project that supports building both with either VS or CLI.

Thanks for your great job.

Add overload for logError() to take arbitrary objects

Currently, logError() only takes an Error object; it should have an overload to accept an any type which is useful when adding error logging for areas in the application where an error state may not have an error object.

    public logError(message: string, data: any): void;

    public logError(message: string, error: Error): void;

    public logError(message: string, errorOrObject?: any): void {
        var logEntry: Models.LogEntry;

        if (!message) {
            message = "";
        }

        // Log to the console; useful when debugging.
        console.error(message, errorOrObject);

        logEntry = new Models.LogEntry();
        logEntry.id = this.Utilities.generateGuid();
        logEntry.timestamp = new Date();

        // If the user passed in an Error object, then we'll place that directly
        // into the LogEntry. If they passed any other arbitrary object, we'll
        // serialize it to JSON and append it to the message.
        if (errorOrObject) {
            var error = <Error>errorOrObject;

            if (error.message || error.name) {
                logEntry.error = error;
            }
            else {
                try {
                    message += " data: " + JSON.stringify(errorOrObject);
                }
                catch (ex) {
                    message += " data: [unable to JSON.stringify() the data object passed to logError(message, data).]";
                }
            }
        }

        logEntry.message = message;

        // This won't tell us what script file the error came from, but it
        // will at least let us know which URL and hash tag they're on.
        logEntry.uri = window.location.toString();

        this.addLogEntry(logEntry);
    }

Also update the Log-Entry.html to better reflect this type of log entry:

-  <h2 ng-show="viewModel.iconType === 'alert-circled'">Angular JS Exception</h2>
+  <h2 ng-show="viewModel.iconType === 'alert-circled'">Application Error</h2>

Fix gulp init --prep web

Hi Justin,

Is there a chance that you might upgrade this boilerplate to Ionic2 or have you moved to React for good?

Fix gulp init --prep web. Patch below:

diff --git a/resources/build/tasks/init.js b/resources/build/tasks/init.js
index 7443bfd..3b5d0c5 100644
--- a/resources/build/tasks/init.js
+++ b/resources/build/tasks/init.js
@@ -7,6 +7,7 @@ var path = require("path");
 var helper = require("./helper");
 var runSequence = require("run-sequence");
 var sh = require("shelljs");
+var plugins = require("gulp-load-plugins")();

 /**
  * Used to initialize or re-initialize the development environment.
@@ -31,7 +32,7 @@ module.exports = function(gulp, plugins) {
             // If we are preparing for the "web" or "chrome" platforms we can bail out here
             // because there is no need to add Cordova platforms in these cases.
             if (helper.isPrepWeb() || helper.isPrepChrome()) {
-                helper.info(format("Skipping Cordova platforms because the '--prep {0}' flag was specified.", helper.util.env.prep));
+                helper.info(helper.format("Skipping Cordova platforms because the '--prep {0}' flag was specified.", plugins.util.env.prep));
                 runSequence("default", cb);
                 return;
             }

How to add old version of angular-resource.d.ts

I want to use angular-resource.d.ts in the project,but when use the command “tsd install anguar-resource" it will install the newest version,and return error .
Can you give me some advice!
Thanks!

Add support for SASS

Switch existing styles to SASS and utilize Ionic's SASS so variables can be more easily changed etc.

settings.json exclude path changed in VSCode 0.5.0

Previously the entry in settings.json was "search.excludeFolders", but it has changed to "search.exclude".

The file should be updated with the new format:

"search.exclude": {
    ".git": true,
    "node_modules": true,
    "bower_components": true,
    "platforms": true,
    "plugins": true,
    "www/js/bundle.js": true,
    "www/js/bundle.js.map": true,
    "www/js/src": true,
    "chrome": true
},

d.ts path for plugins and compiled bundle.d.ts path are missing

I believe that these lines should be added at the top of _reference.ts:

/// <reference path="tsd.d.ts" />
/// <reference path="../www/js/bundle.d.ts" />

otherwise I have undefined namespaces in Application.ts Visual Studio project.
these 2 lines solve most of the problems but I have duplicate identifier in Services/Configuration.ts and others

how to set up a project?

Update to support latest versions of npm modules (eg TypeScript 1.5.3, Ionic CLI 1.6.x etc)

Hey. I'm just getting started with Ionic and TypeScript so apologies in advance if there is something simple I'm missing here.

First I made sure I had the pre-reqs installed that you list under environment setup. I installed the latest versions, though, and installed them globally for now to keep things simple. Here's my "npm list -g -depth 0":

grposey-s3:Documents tjaffri$ npm list -g -depth 0
/usr/local/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Next, I cloned your repo and installed the node packages it needs:

$ git clone https://github.com/Justin-Credible/Ionic-TypeScript-Starter.git
$ cd Ionic-TypeScript-Starter
$ npm install

All seems well at this point, but when I run "gulp" or "ionic serve" I get the following error spew.

[10:57:32] Finished 'tsd:tests' after 1.55 s
[10:57:32] Finished 'tsd' after 4.76 s
[10:57:32] Starting 'ts:vars'...
[10:57:32] Finished 'ts:vars' after 23 ms
[10:57:32] Starting 'ts:src-read-me'...
[10:57:32] Finished 'ts:src-read-me' after 7.96 ms
[10:57:32] Starting 'ts:src'...
[10:57:32] Finished 'ts:src' after 64 ms
[10:57:32] Starting 'ts'...
src/Application.ts(44,26): error TS2503: Cannot find namespace 'Interfaces'.
src/Application.ts(55,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(56,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(57,34): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(58,35): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(58,73): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(58,111): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(59,36): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(67,73): error TS2339: Property 'ripple' does not exist on type 'Window'.
src/Application.ts(69,47): error TS2339: Property 'buildVars' does not exist on type 'Window'.
src/Application.ts(327,31): error TS2305: Module 'Ionic' has no exported member 'IPlatform'.
src/Controllers/BaseController.ts(56,75): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(69,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(82,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(95,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(108,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(121,79): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(134,79): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/BaseController.ts(147,77): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/CategoryController.ts(30,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Onboarding/OnboardingRegisterController.ts(34,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/RootController.ts(36,75): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/AboutController.ts(26,34): error TS2503: Cannot find namespace 'Interfaces'.
src/Controllers/Settings/AboutController.ts(34,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/CloudSyncController.ts(31,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/CloudSyncController.ts(41,74): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/ConfigurePinController.ts(28,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/DeveloperController.ts(40,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/LogEntryController.ts(29,34): error TS2503: Cannot find namespace 'Interfaces'.
src/Controllers/Settings/LogEntryController.ts(39,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/LogEntryController.ts(74,41): error TS2339: Property 'printStackTrace' does not exist on type 'Window'.
src/Controllers/Settings/LogsController.ts(30,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Controllers/Settings/SettingsListController.ts(28,80): error TS2305: Module 'Ionic' has no exported member 'IViewEventArguments'.
src/Services/Configuration.ts(22,32): error TS2304: Cannot find name 'BuildVars'.
src/Services/FileUtilities.ts(124,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(129,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(216,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(221,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(293,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(298,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(397,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(402,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(471,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(476,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(545,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(550,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(649,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(654,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(721,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(726,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1011,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1016,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1181,35): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1186,24): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1300,35): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1305,24): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1401,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1406,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1462,31): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/FileUtilities.ts(1467,20): error TS2339: Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
src/Services/HttpInterceptor.ts(99,32): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(99,59): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(174,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(177,23): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(204,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(221,27): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(241,25): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(254,27): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(297,44): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/HttpInterceptor.ts(365,43): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/Logger.ts(270,45): error TS2503: Cannot find namespace 'Interfaces'.
src/Services/MockPlatformApis.ts(34,34): error TS2304: Cannot find name 'ICordovaToastPlugin'.
src/Services/MockPlatformApis.ts(54,38): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(61,56): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(80,46): error TS2304: Cannot find name 'ICordovaProgressIndicator'.
src/Services/MockPlatformApis.ts(121,40): error TS2304: Cannot find name 'ICordovaCrashlyticsPlugin'.
src/Services/UiHelper.ts(62,22): error TS2304: Cannot find name 'ICordovaToastPlugin'.
src/Services/UiHelper.ts(63,78): error TS2339: Property 'toast' does not exist on type 'Plugins'.
src/Services/UiHelper.ts(64,39): error TS2339: Property 'toast' does not exist on type 'Plugins'.
src/Services/UiHelper.ts(74,34): error TS2304: Cannot find name 'ICordovaProgressIndicator'.
src/Services/UiHelper.ts(75,52): error TS2339: Property 'ProgressIndicator' does not exist on type 'Window'.
src/Services/UiHelper.ts(76,31): error TS2339: Property 'ProgressIndicator' does not exist on type 'Window'.
src/Services/UiHelper.ts(86,26): error TS2304: Cannot find name 'ICordovaClipboardPlugin'.
src/Services/UiHelper.ts(87,115): error TS2339: Property 'clipboard' does not exist on type 'CordovaPlugins'.
src/Services/UiHelper.ts(88,40): error TS2339: Property 'clipboard' does not exist on type 'CordovaPlugins'.
src/Services/UiHelper.ts(125,28): error TS2304: Cannot find name 'ICordovaCrashlyticsPlugin'.
src/Services/UiHelper.ts(126,92): error TS2339: Property 'crashlytics' does not exist on type 'Navigator'.
src/Services/UiHelper.ts(127,34): error TS2339: Property 'crashlytics' does not exist on type 'Navigator'.
src/Services/Utilities.ts(25,32): error TS2304: Cannot find name 'BuildVars'.
src/Services/Utilities.ts(105,38): error TS2339: Property 'ripple' does not exist on type 'Window'.
src/Controllers/Settings/AboutController.ts(26,34): error TS4063: Parameter 'versionInfo' of constructor from exported class has or is using private name 'Interfaces'.
src/Controllers/Settings/LogEntryController.ts(29,34): error TS4063: Parameter 'versionInfo' of constructor from exported class has or is using private name 'Interfaces'.
src/Services/Configuration.ts(22,32): error TS4063: Parameter 'buildVars' of constructor from exported class has or is using private name 'BuildVars'.
src/Services/HttpInterceptor.ts(99,32): error TS4073: Parameter 'config' of public method from exported class has or is using private name 'Interfaces'.
src/Services/HttpInterceptor.ts(99,59): error TS4055: Return type of public method from exported class has or is using private name 'Interfaces'.
src/Services/Logger.ts(270,45): error TS4073: Parameter 'config' of public method from exported class has or is using private name 'Interfaces'.
src/Services/MockPlatformApis.ts(34,34): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaToastPlugin'.
src/Services/MockPlatformApis.ts(54,38): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(61,56): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/MockPlatformApis.ts(80,46): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaProgressIndicator'.
src/Services/MockPlatformApis.ts(121,40): error TS4055: Return type of public method from exported class has or is using private name 'ICordovaCrashlyticsPlugin'.
src/Services/UiHelper.ts(62,22): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaToastPlugin'.
src/Services/UiHelper.ts(74,34): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaProgressIndicator'.
src/Services/UiHelper.ts(86,26): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaClipboardPlugin'.
src/Services/UiHelper.ts(125,28): error TS4043: Return type of public property getter from exported class has or is using private name 'ICordovaCrashlyticsPlugin'.
src/Services/Utilities.ts(25,32): error TS4063: Parameter 'buildVars' of constructor from exported class has or is using private name 'BuildVars'.


[10:57:35] 'ts' errored after 2.69 s
[10:57:35] Error: Command failed: /bin/sh -c tsc -p src

    at ChildProcess.exithandler (child_process.js:751:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Socket.<anonymous> (child_process.js:1183:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:485:12)
[10:57:35] 'default' errored after 26 s
[10:57:35] Error: [object Object]
    at formatError (/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10)
    at Gulp.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15)
    at Gulp.emit (events.js:129:20)
    at Gulp.Orchestrator._emitTaskDone (/Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/gulp/node_modules/orchestrator/index.js:264:8)
    at /Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/gulp/node_modules/orchestrator/index.js:275:23
    at finish (/Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
    at cb (/Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:29:3)
    at finish (/Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/run-sequence/index.js:53:5)
    at Gulp.onError (/Users/tjaffri/Documents/Ionic-TypeScript-Starter/node_modules/run-sequence/index.js:60:4)
    at Gulp.emit (events.js:129:20)

Any help is much appreciated. Thanks!

Issues with CORS when interfacing with Express Server

I'm having some issues with this and i'm not sure if there's something inside the app that is hindering me requests.

I have removed all of the security policy meta data in hopes of solving the issue.

on my first POST everything works, and the session is seemingly created on the server, however when accessing that session through another GET request (which is authenticated through passportJS) it cannot find my session.

I've gone back and forth on if this is the server or the client as the culprit, I think it is something in the NG App because when I do these actions from Postman, the session is maintained, and interacting with the endpoints that require authentication is not a problem.

I've been racking my brain on this for more hours than I'd like to admit, if you've run into this with this project could you let me know if you were able to solve it, or something I may have missed.

Thanks

Remove cordova-progressindicator and switch to cordova-activityindicator

I've had to fork pbernasconi/cordova-progressIndicator to Justin-Credible/cordova-progressIndicator with the following changes:

  • Remove demo files whose paths were too long for Windows
  • Fix a crash on iOS

Unfortunately, my pull requests have not been accepted. I don't want to maintain my own version of this repo, so I will be removing it and switching to Crypho/cordova-activityindicator.

An added bonus here is that this new plugin supports Android, while the previous plugin did not.

Enhancement: Provide an example of OAuth2

  1. Users have too many online accounts and they shouldn't need to create another one, if it can be avoided. Current template includes a very capable HttpInterceptor for basic authentication, but I think it would be hard for many, to extend the template to do OAuth2, when they are just getting started. I propose including code for Google's OAuth2 as an example. Google's ClientID could be read from BuildVars.
  2. I also suggest that you open a new development branch to accept contributions. This will give you a chance to work on the contribution, add your improvements and merge it to the master after you have refined it.

Add support for targeting mobile web apps

Add additional build tasks and infrastructure to allow output of a bundle that can be served up via the web. This allows for the single codebase that is being used for iOS/Android/Chrome to also be used for a mobile website.

  • Add support for multiple parent scheme nodes to gulp config
  • Add --prep web flag for gulp init task that skips Cordova plugins, platforms, etc
    • Investigate usage of cordova platform add browser
  • Allow for cache busting resources via query string parameter with the version number
  • Add support for multiple master index HTML files
    • Put shared configuration in config.yml
    • Put schemes in schemes.yml, remove from config.master.xml
    • Enhance gulp config to populate HTML files with CSS and JS references from a common list
  • Build a Chrome Extension specific master HTML template
  • Build a mobile specific master HTML template (moved to #59)
    • Apple icons / splash / etc
    • Android icons / splash / etc
    • Loader screen
  • Add gulp web task to package for web
    • Break config task into multiple functions
    • Delegate to above functions
    • Copy contents of www to build/web
    • Strip out unnecessary files
    • Bundle the contents of the js, css, lib directories to reduce the number of requests
  • Add utility functions to detect if a web app (also if installed/pined to home screen) (moved to #59)
  • Gulpfile cleanup
    • Switch to gulp log method
    • Switch log/error strings to use format(...)
    • Switch asynchronous exec(...) calls to synchronous sh.exec(...)
    • Remove --prep android flag
    • Use gulpfile dependencies from the ./node_modules/.bin/ directory explicitly so the user
      doesn't have to put it in their path
    • Update clean paths etc
    • Move gulp file helper functions to resources/build/gulp-helpers.js
    • Move remote-build.json to resources/build/remote-build.yml
  • Update documentation
    • Update gulp task information
    • Remove prep android flag reference
    • Update nvm installation instructions
    • Update paths re: master files, templates, etc

problem in gulp init

I get the following message and app do not start.
node version is 5.6.0
npm install done.
regards
Gokhan
....
Fetching plugin "[email protected]" via npm
Installing "cordova-plugin-x-toast" for android
Installing "cordova-plugin-x-toast" for ios

Fetching plugin "[email protected]" via npm
Installing "cordova-universal-clipboard" for android
Installing "cordova-universal-clipboard" for ios

[07:47:25] Finished 'plugins' after 48 s
[07:47:25] Starting 'libs'...

/bin/sh: bower-installer: command not found

[07:47:25] 'libs' errored after 9.19 ms
[07:47:25] Error: Command failed: /bin/sh -c bower-installer
/bin/sh: bower-installer: command not found

at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

[07:47:25] Finished 'init' after 1.12 min
[07:47:25] 'default' errored after 48 s
[07:47:25] Error in plugin 'run-sequence'
Message:
An error occured in task 'libs'.

....

Task git clean:ts does not finish properly

Node del is not being used correctly in the gulpfile, If you run gulp clean:ts, you will not see the Finished clean:ts log entry in the console. The problem is incorrect use of Node del. Solution is to change how del is being used. Change del(files, cb) to del(files).then(...);. See Node del.

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.