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

Commit 693bab9

Browse files
committed
No more use strict and reference .d.ts, tsc with tsconfig should suffice, ts adds use strict to js files
1 parent 1fc5438 commit 693bab9

File tree

154 files changed

+5
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+5
-445
lines changed

README.md

Lines changed: 0 additions & 3 deletions

appbuilder/appbuilder-bootstrap.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
require("../bootstrap");
52
$injector.require("projectConstants", "./appbuilder/project-constants");
63
$injector.require("projectFilesProvider", "./appbuilder/providers/project-files-provider");

appbuilder/appbuilder-static-config-base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import { StaticConfigBase } from "../static-config-base";
52

63
export abstract class AppBuilderStaticConfigBase extends StaticConfigBase {

appbuilder/device-emitter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import { EventEmitter } from "events";
52

63
class DeviceEmitter extends EventEmitter {

appbuilder/device-log-provider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import { EventEmitter } from "events";
52

63
export class DeviceLogProvider extends EventEmitter implements Mobile.IDeviceLogProvider {

appbuilder/mobile-platforms-capabilities.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
export class MobilePlatformsCapabilities implements Mobile.IPlatformsCapabilities {
52
private platformCapabilities: IDictionary<Mobile.IPlatformCapabilities>;
63

appbuilder/project-constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
export class ProjectConstants implements Project.IConstants {
52
public PROJECT_FILE = ".abproject";
63
public PROJECT_IGNORE_FILE = ".abignore";

appbuilder/project/cordova-project-capabilities.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class CordovaProjectCapabilities implements Project.ICapabilities {
52
public get build(): boolean {
63
return true;

appbuilder/project/nativescript-project-capabilities.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class NativeScriptProjectCapabilities implements Project.ICapabilities {
52
public get build(): boolean {
63
return true;

appbuilder/project/project-base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import Future = require("fibers/future");
52
import * as path from "path";
63
import { startPackageActivityNames } from "../../mobile/constants";

appbuilder/proton-bootstrap.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
require("./appbuilder-bootstrap");
52
$injector.require("messages", "./messages/messages");
63

appbuilder/proton-static-config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import { AppBuilderStaticConfigBase } from "./appbuilder-static-config-base";
52
import * as path from "path";
63

appbuilder/providers/appbuilder-livesync-provider-base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import Future = require("fibers/future");
52

63
export abstract class AppBuilderLiveSyncProviderBase implements ILiveSyncProvider {

appbuilder/providers/device-app-data-provider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import { DeviceAppDataBase } from "../../mobile/device-app-data/device-app-data-base";
52
import Future = require("fibers/future");
63
import * as querystring from "querystring";

appbuilder/providers/livesync-provider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import { AppBuilderLiveSyncProviderBase } from "./appbuilder-livesync-provider-base";
52

63
export class LiveSyncProvider extends AppBuilderLiveSyncProviderBase {

appbuilder/providers/project-files-provider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import * as path from "path";
52
import { ProjectFilesProviderBase } from "../../services/project-files-provider-base";
63

appbuilder/services/livesync/android-livesync-service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../../.d.ts"/>
2-
"use strict";
3-
41
import { AndroidLiveSyncService } from "../../../mobile/android/android-livesync-service";
52
import * as path from "path";
63
import * as helpers from "../../../helpers";

appbuilder/services/livesync/companion-apps-service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../../.d.ts"/>
2-
"use strict";
3-
41
import { exported } from "../../../decorators";
52

63
const NS_COMPANION_APP_IDENTIFIER = "com.telerik.NativeScript";

appbuilder/services/livesync/ios-livesync-service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../../.d.ts"/>
2-
"use strict";
3-
41
import iOSProxyServices = require("../../../mobile/ios/device/ios-proxy-services");
52
import * as path from "path";
63
import * as shell from "shelljs";

appbuilder/services/livesync/livesync-service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../../.d.ts"/>
2-
"use strict";
3-
41
import { exportedPromise } from "../../../decorators";
52

63
export class ProtonLiveSyncService implements IProtonLiveSyncService {

appbuilder/services/path-filtering.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
31
import minimatch = require("minimatch");
42

53
export class PathFilteringService implements IPathFilteringService {

bplist-parser.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import Future = require("fibers/future");
52
import * as bplistParser from "bplist-parser";
63

child-process.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import Future = require("fibers/future");
52
import * as child_process from "child_process";
63

codeGeneration/code-entity.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
export enum CodeEntityType {
52
Line,
63
Block

codeGeneration/code-printer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import {EOL} from "os";
52
import {CodeEntityType} from "./code-entity";
63

command-params.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
export class StringCommandParameter implements ICommandParameter {
52
public mandatory = false;
63
public errorMessage: string;

commands/analytics.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
class AnalyticsCommand implements ICommand {
52
constructor(private $analyticsService: IAnalyticsService,
63
private $logger: ILogger,

commands/autocompletion.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
31
import * as helpers from "../helpers";
42

53
export class AutoCompleteCommand implements ICommand {

commands/device/device-log-stream.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class OpenDeviceLogStreamCommand implements ICommand {
52
private static NOT_SPECIFIED_DEVICE_ERROR_MESSAGE = "More than one device found. Specify device explicitly.";
63

commands/device/get-file.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class GetFileCommand implements ICommand {
52
constructor(private $devicesService: Mobile.IDevicesService,
63
private $stringParameter: ICommandParameter,

commands/device/list-applications.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import {EOL} from "os";
52
import * as util from "util";
63

commands/device/list-devices.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
import { createTable } from "../../helpers";
52

63
export class ListDevicesCommand implements ICommand {

commands/device/list-files.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class ListFilesCommand implements ICommand {
52
constructor(private $devicesService: Mobile.IDevicesService,
63
private $stringParameter: ICommandParameter,

commands/device/put-file.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class PutFileCommand implements ICommand {
52
constructor(private $devicesService: Mobile.IDevicesService,
63
private $stringParameter: ICommandParameter,

commands/device/run-application.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class RunApplicationOnDeviceCommand implements ICommand {
52

63
constructor(private $devicesService: Mobile.IDevicesService,

commands/device/stop-application.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class StopApplicationOnDeviceCommand implements ICommand {
52

63
constructor(private $devicesService: Mobile.IDevicesService,

commands/device/uninstall-application.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../../.d.ts"/>
2-
"use strict";
3-
41
export class UninstallApplicationCommand implements ICommand {
52
constructor(private $devicesService: Mobile.IDevicesService,
63
private $stringParameter: ICommandParameter,

commands/doctor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import {EOL} from "os";
52
import future = require("fibers/future");
63

commands/generate-messages.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
31
import * as path from "path";
42

53
export class GenerateMessages implements ICommand {
6-
private static MESSAGES_DEFINITIONS_FILE_NAME = "messages.d.ts";
4+
private static MESSAGES_DEFINITIONS_FILE_NAME = "messages.interface.d.ts";
75
private static MESSAGES_IMPLEMENTATION_FILE_NAME = "messages.ts";
86

97
constructor(private $fs: IFileSystem,
@@ -15,8 +13,7 @@ export class GenerateMessages implements ICommand {
1513

1614
execute(args: string[]): IFuture<void> {
1715
return (() => {
18-
let definitionsPath = `"${this.$options.default ? "../" : ""}.d.ts"`,
19-
result = this.$messageContractGenerator.generate(definitionsPath).wait(),
16+
let result = this.$messageContractGenerator.generate().wait(),
2017
innerMessagesDirectory = path.join(__dirname, "../messages"),
2118
outerMessagesDirectory = path.join(__dirname, "../.."),
2219
interfaceFilePath: string,

commands/help.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
import Future = require("fibers/future");
52

63
export class HelpCommand implements ICommand {

commands/post-install.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
41
export class PostInstallCommand implements ICommand {
52

63
constructor(private $fs: IFileSystem,

commands/preuninstall.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
///<reference path="../.d.ts"/>
2-
"use strict";
3-
4-
import * as path from "path";
1+
import * as path from "path";
52

63
export class PreUninstallCommand implements ICommand {
74

common-lib.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
require("./appbuilder/proton-bootstrap");
52

63
module.exports = $injector.publicApi;

config-base.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as path from "path";
52

63
export class ConfigBase implements Config.IConfig {

decorators.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as Promise from "bluebird";
52
import * as fiberBootstrap from "./fiber-bootstrap";
63
import * as assert from "assert";

definitions/mobile.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
///<reference path="../.d.ts"/>
21

32
declare module Mobile {
43
interface ISyncOptions {

definitions/node-ffi.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Definitions by: Paul Loyd <https://github.com/loyd>
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

6-
/// <reference path="../.d.ts" />
7-
86
declare module "ffi" {
97
import ref = require('ref');
108
import StructType = require('ref-struct');

dispatchers.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as queue from "./queue";
52
import * as path from "path";
63

errors.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as util from "util";
52
import * as path from "path";
63
import * as fiberBootstrap from "./fiber-bootstrap";

fiber-bootstrap.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as fiber from "fibers";
52
import Future = require("fibers/future");
63

file-system.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as fs from "fs";
52
import Future = require("fibers/future");
63
import * as path from "path";

helpers.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as uuid from "node-uuid";
52
import * as Fiber from "fibers";
63
import * as net from "net";

host-info.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
31
import Future = require("fibers/future");
42

53
export class HostInfo implements IHostInfo {

http-client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
///<reference path=".d.ts"/>
2-
"use strict";
3-
41
import * as url from "url";
52
import Future = require("fibers/future");
63
import * as helpers from "./helpers";

0 commit comments

Comments
 (0)