Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-json

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-json - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

dist/main/decorators.d.ts

35

gulpfile.babel.js
import gulp from "gulp";
import path from "path";
import exists from "path-exists";
import paths from "vinyl-paths";

@@ -10,2 +9,3 @@ import del from "del";

import typescript from "typescript";
import typings from "gulp-typings";
import gts from "gulp-typescript";

@@ -16,9 +16,7 @@ import sass from "gulp-sass";

import pkconfig from "./package.json";
import child from "child_process";
const dependencies = Object.keys(pkconfig.dependencies).filter(dep => exists.sync("../" + dep));
const sassOptions = {
importer: url => ({ file: url.startsWith("~") ? path.resolve("node_modules", url.substr(1)) : url })
};
const tsc = gts(Object.assign({ typescript: typescript }, tsconfig.compilerOptions));
const typingsConfig = "src/typings.json";
const typescriptSources = [ tsconfig.compilerOptions.rootDir + "/**/*.ts" ];

@@ -28,7 +26,10 @@ const htmlSources = [ tsconfig.compilerOptions.rootDir + "/**/*.html" ];

const output = tsconfig.compilerOptions.outDir;
const testSuites = [ "test/**/*.js" ];
const testSuites = [ "dist/test/**/*.js" ];
const clean = [ output ];
const tsc = gts(Object.assign({ typescript: typescript }, tsconfig.compilerOptions));
gulp.task("clean", done => gulp.src(clean).pipe(paths(del)));
gulp.task("build-typescript", done => {
gulp.task("typings", done => gulp.src(typingsConfig).pipe(typings()));
gulp.task("build-typescript", [ "typings" ], done => {
let stream = gulp.src(typescriptSources).pipe(tsc);

@@ -43,23 +44,3 @@ return merge([

gulp.task("build", done => run("clean", [ "build-typescript", "build-scss", "build-html" ], done));
dependencies.forEach(dependency => {
const dependencyPath = "../" + dependency;
const dependencyDist = dependencyPath + "/dist/**/*";
const dependencyModule = "node_modules/" + dependency + "/dist";
gulp.task("spawn-" + dependency, done => {
const spawnLock = "../.spawn-" + dependency;
exists.sync(spawnLock) || child.spawn("gulp", [ "watch" ], { cwd: dependencyPath });
child.spawn("touch", [ spawnLock ]);
return done();
});
gulp.task("sync-" + dependency, done => gulp.src(dependencyDist).pipe(gulp.dest(dependencyModule)));
gulp.task("watch-" + dependency, [ "spawn-" + dependency ], done => gulp.watch(dependencyDist, ["sync-" + dependency]));
});
gulp.task("watch-dependencies", dependencies.map(dependency => "watch-" + dependency));
gulp.task("watch-typescript", done => gulp.watch(typescriptSources, [ "build-typescript" ]));
gulp.task("watch-scss", done => gulp.watch(scssSources, [ "build-scss" ]));
gulp.task("watch-html", done => gulp.watch(htmlSources, [ "build-html" ]));
gulp.task("watch", [ "watch-dependencies", "watch-typescript", "watch-scss", "watch-html" ]);
gulp.task("test", [ "build" ], done => gulp.src(testSuites).pipe(jasmine()));
gulp.task("default", () => run("build", "test"));
gulp.task("default", [ "test" ]);
{
"name": "aurelia-json",
"version": "0.2.4",
"version": "0.3.0",
"description": "A JSON plugin for Aurelia based projects.",

@@ -20,4 +20,4 @@ "keywords": [

},
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "dist/main/index.js",
"typings": "dist/main/index.d.ts",
"scripts": {

@@ -27,23 +27,24 @@ "test": "gulp test"

"dependencies": {
"aurelia-dependency-injection": "^1.0.0",
"aurelia-framework": "^1.0.2",
"aurelia-http-client": "^1.0.0",
"aurelia-http-utils": "^0.2.1"
"aurelia-dependency-injection": "^1.2.0",
"aurelia-framework": "^1.0.7",
"aurelia-http-client": "^1.0.3",
"aurelia-http-utils": "^0.2.1",
"type-binder": "^0.1.1"
},
"devDependencies": {
"babel-preset-es2015": "^6.14.0",
"babel-register": "^6.14.0",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-jasmine": "^2.4.1",
"gulp-jasmine": "^2.4.2",
"gulp-sass": "^2.3.2",
"gulp-typescript": "^2.13.6",
"jasmine": "^2.5.0",
"gulp-typescript": "^3.1.3",
"gulp-typings": "^2.0.4",
"jasmine": "^2.5.2",
"jasmine-reporters": "^2.2.0",
"merge2": "^1.0.2",
"path-exists": "^3.0.0",
"run-sequence": "^1.2.2",
"typescript": "^2.0.0",
"typescript": "^2.1.1",
"vinyl-paths": "^2.1.0"
}
}

@@ -7,3 +7,2 @@ {

"lib": ["es2015", "dom"],
"noImplicitAny": false,
"declaration": true,

@@ -13,6 +12,6 @@ "experimentalDecorators": true,

},
"compileOnSave": false,
"exclude": [
"node_modules"
]
],
"compileOnSave": false
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc