File tree Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @developer-plexscape/ngx-grapesjs" ,
3
3
"version" : " 0.0.4" ,
4
4
"description" : " Angular wrapper library for GrapesJS" ,
5
+ "scripts" : {
6
+ "build" : " tsc -p tsconfig.schematics.json" ,
7
+ "postbuild" : " copyfiles schematics/*/schema.json schematics/*/files/** schematics/collection.json ../../dist/ngx-grapesjs/"
8
+ },
5
9
"peerDependencies" : {
6
10
"@angular/common" : " ^13.0.0" ,
7
11
"@angular/core" : " ^13.0.0" ,
22
26
"homepage" : " https://github.com/Developer-Plexscape/ngx-grapesjs#readme" ,
23
27
"publishConfig" : {
24
28
"registry" :" https://npm.pkg.github.com"
29
+ },
30
+ "schematics" : " ./schematics/collection.json" ,
31
+ "ng-add" : {
32
+ "save" : " devDependencies"
33
+ },
34
+ "devDependencies" : {
35
+ "copyfiles" : " file:../../node_modules/copyfiles" ,
36
+ "typescript" : " file:../../node_modules/typescript"
25
37
}
26
38
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../../node_modules/@angular-devkit/schematics/collection-schema.json" ,
3
+ "schematics" : {
4
+ "ng-add" : {
5
+ "description" : " Add my library to the project." ,
6
+ "factory" : " ./ng-add/index#ngAdd"
7
+ }
8
+ }
9
+ }
Original file line number Diff line number Diff line change
1
+ import { Rule , SchematicContext , Tree } from '@angular-devkit/schematics' ;
2
+ import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks' ;
3
+
4
+ // Just return the tree
5
+ export function ngAdd ( ) : Rule {
6
+ return ( tree : Tree , context : SchematicContext ) => {
7
+ context . addTask ( new NodePackageInstallTask ( ) ) ;
8
+ return tree ;
9
+ } ;
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "baseUrl" : " ." ,
4
+ "lib" : [
5
+ " es2018" ,
6
+ " dom"
7
+ ],
8
+ "declaration" : true ,
9
+ "module" : " commonjs" ,
10
+ "moduleResolution" : " node" ,
11
+ "noEmitOnError" : true ,
12
+ "noFallthroughCasesInSwitch" : true ,
13
+ "noImplicitAny" : true ,
14
+ "noImplicitThis" : true ,
15
+ "noUnusedParameters" : true ,
16
+ "noUnusedLocals" : true ,
17
+ "rootDir" : " schematics" ,
18
+ "outDir" : " ../../dist/ngx-grapesjs/schematics" ,
19
+ "skipDefaultLibCheck" : true ,
20
+ "skipLibCheck" : true ,
21
+ "sourceMap" : true ,
22
+ "strictNullChecks" : true ,
23
+ "target" : " es6" ,
24
+ "types" : [
25
+ " jasmine" ,
26
+ " node"
27
+ ]
28
+ },
29
+ "include" : [
30
+ " schematics/**/*"
31
+ ],
32
+ "exclude" : [
33
+ " schematics/*/files/**/*"
34
+ ]
35
+ }
You can’t perform that action at this time.
0 commit comments