Comparing version 0.0.3 to 0.0.4
@@ -40,5 +40,5 @@ 'use strict'; | ||
var ts = require('gulp-typescript'); | ||
var tsProject = ts.createProject('schematics/tsconfig.json', { typescript: require('typescript') }); | ||
var tsProject = ts.createProject('./schematics/tsconfig.json', { typescript: require('typescript') }); | ||
var tsResult = gulp.src(['./**/*.ts', '!./node_modules/**/*.ts'], { base: '.' }) | ||
var tsResult = gulp.src(['./*/**/*.ts', '!./node_modules/**/*.ts'], { base: '.' }) | ||
.pipe(tsProject()); | ||
@@ -45,0 +45,0 @@ tsResult.js.pipe(gulp.dest('./')) |
{ | ||
"name": "ng-lists", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "List Components for Angular", | ||
@@ -5,0 +5,0 @@ "author": "karthickthangasamy", |
@@ -1,13 +0,16 @@ | ||
import { noop, chain } from '@angular-devkit/schematics'; | ||
import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; | ||
import { addPackageToPackageJson } from '../utils/package'; | ||
export default function (options) { | ||
return chain([ | ||
options && options.skipPackageJson ? noop() : addEJ2ToPackageJson(), | ||
(options && !options.skipPackageJson) ? installNodePackages() : noop() | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const package_1 = require("../utils/package"); | ||
function default_1(options) { | ||
return schematics_1.chain([ | ||
options && options.skipPackageJson ? schematics_1.noop() : addEJ2ToPackageJson(), | ||
(options && !options.skipPackageJson) ? installNodePackages() : schematics_1.noop() | ||
]); | ||
} | ||
exports.default = default_1; | ||
function addEJ2ToPackageJson() { | ||
return function (host) { | ||
addPackageToPackageJson(host, 'dependencies', 'ng-list', '*'); | ||
return (host) => { | ||
package_1.addPackageToPackageJson(host, 'dependencies', 'ng-list', '*'); | ||
return host; | ||
@@ -17,8 +20,3 @@ }; | ||
function installNodePackages() { | ||
return function (host, context) { | ||
context.addTask(new NodePackageInstallTask()); | ||
return host; | ||
}; | ||
} | ||
eturn (host, context) => { | ||
return (host, context) => { | ||
context.addTask(new tasks_1.NodePackageInstallTask()); | ||
@@ -25,0 +23,0 @@ return host; |
{ | ||
"compilerOptions": { | ||
"baseUrl": "tsconfig", | ||
"lib": [ | ||
"es2017", | ||
"dom" | ||
], | ||
"declaration": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noEmitOnError": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"noUnusedParameters": true, | ||
"noUnusedLocals": true, | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
"target": "es6", | ||
"types": [ | ||
"node" | ||
] | ||
"lib": ["es2017", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noEmitOnError": false, | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"target": "es6", | ||
"types": [ | ||
"node" | ||
] | ||
}, | ||
"include": [ | ||
"**/*" | ||
"**/*" | ||
], | ||
"exclude": [ | ||
"**/*.component.ts", | ||
"**/*spec*", | ||
"template/**/*" | ||
"**/*.component.ts", | ||
"**/*spec*", | ||
"template/**/*" | ||
] | ||
} | ||
} |
7551
193