Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/schematics #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(schematics): fix linter issues
alQlagin committed Oct 22, 2019
commit 8a7f812ee1de6eb62d8684a05d3074145f5c5194
21 changes: 9 additions & 12 deletions projects/core/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
@@ -8,16 +8,13 @@ const packageJson = readFileSync(path.join(__dirname, '..', '..', 'package.json'
const version = JSON.parse(packageJson).version;
// Just return the tree
export function ngAdd(): Rule {
return (tree: Tree, _context: SchematicContext) => {
addPackageJsonDependency(
tree,
{
type: NodeDependencyType.Default,
version: version,
name: '@ngxd/core'
}
);
_context.addTask(new NodePackageInstallTask());
return tree;
};
return (tree: Tree, _context: SchematicContext) => {
addPackageJsonDependency(tree, {
type: NodeDependencyType.Default,
version: version,
name: '@ngxd/core',
});
_context.addTask(new NodePackageInstallTask());
return tree;
};
}