Skip to content

Commit

Permalink
Rename to ng-add
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjiv Kumar committed Sep 14, 2020
1 parent 13c0772 commit 67f88dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/collection.json
@@ -1,9 +1,9 @@
{
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"angular-tailwindcss-schematics": {
"description": "A blank schematic.",
"factory": "./angular-tailwindcss-schematics/index#angularTailwindcssSchematics"
"ng-add": {
"description": "Add tailwindcss to an Angular cli project.",
"factory": "./ng-add/index"
}
}
}
}
7 changes: 3 additions & 4 deletions src/ng-add/index.ts
@@ -1,9 +1,8 @@
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';


// You don't have to export the function as default. You can also have more than one rule factory
// per file.
export function angularTailwindcssSchematics(_options: any): Rule {
/** Rule factory: returns a rule (function) */
export default function (_options: any): Rule {
// this is a rule. It takes a `tree` and returns another `tree`.
return (tree: Tree, _context: SchematicContext) => {
return tree;
};
Expand Down

0 comments on commit 67f88dd

Please sign in to comment.