Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
chore(): update dependencies (#33)
Browse files Browse the repository at this point in the history
* chore(): update dependencies

Closes #32.

* Fix lint task
  • Loading branch information
devversion authored and crisbeto committed Aug 24, 2017
1 parent cbfcb1e commit 5c31c8a
Show file tree
Hide file tree
Showing 9 changed files with 2,318 additions and 39 deletions.
2 changes: 1 addition & 1 deletion lib/builders/CSSBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ export type MaterialToolsCSS = {
withLayout: MaterialToolsOutput
layoutFiles: string[];
license?: string;
}
};
5 changes: 4 additions & 1 deletion lib/builders/JSBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export class JSBuilder {
let source = [mainModule, '', raw].join('\n');
let compressed = uglify.minify(source, {
fromString: true,
outSourceMap: filename
outSourceMap: filename,
// Suppress "WARN: Output exceeds 32000 characters" warnings from UglifyJS 2.x
// Those warnings can be safely ignored and shouldn't show up in the CLI.
output: {'max_line_len': Number.MAX_VALUE }
});

return {
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ function processMultipleThemeArgs(args) {
}

args.themes = themes;
};
}
2 changes: 1 addition & 1 deletion lib/common/VersionDownloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const EXTENSION = '.tar.gz';

export class VersionDownloader {

private static _downloadFile(url: string, destination: string) {
private static _downloadFile(url: string, destination: string): Promise<string> {
Logger.info(`Downloading ${url}.`);

return new Promise((resolve, reject) => {
Expand Down
8 changes: 4 additions & 4 deletions lib/resolvers/PackageResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ export class PackageResolver {
* Checks whether the given path is available in the file system.
* Returns a promise which resolves / rejects with the given path.
*/
private static _isExisting(path: string): Promise<string> {
private static _isExisting(filePath: string): Promise<string> {
return new Promise((resolve, reject) => {
fs.access(path, getFsConstant('R_OK') | getFsConstant('W_OK'), doesNotExist => {
fs.access(filePath, getFsConstant('R_OK') | getFsConstant('W_OK'), doesNotExist => {
if (doesNotExist) {
reject(path);
} else {
resolve(path);
resolve(filePath);
}
});
});
Expand All @@ -129,4 +129,4 @@ export type MaterialToolsPackage = {
module: string,
source?: string,
version: string
}
};
2 changes: 1 addition & 1 deletion lib/virtual_context/MockBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class BrowserNode {

appendChild = child => {
this.children.push(child);
};
}

insertBefore = this.appendChild;
}
Expand Down

0 comments on commit 5c31c8a

Please sign in to comment.