0.0.2 • Published 3 years ago

@risu007/drag-and-drop v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

DragAndDrop

This library was generated with Angular CLI version 11.0.4.

Code scaffolding

Run ng generate component component-name --project DragAndDrop to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project DragAndDrop.

Note: Don't forget to add --project DragAndDrop or else it will be added to the default project in your angular.json file.

Build

Run ng build DragAndDrop to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build DragAndDrop, go to the dist folder cd dist/drag-and-drop and run npm publish.

Running unit tests

Run ng test DragAndDrop to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Suggestions to include Assets

Create assets directory under projects/<library>/ Add the following statement in ng-package.json under library - "assets": ["./assets"] Build the library ng build <library> --prod The assets will be included in the dist directory Go to dist/<library>/ Run npm pack A '.tgz' file will be created in the current directory Run npm publish --access public to upload the library in the npmjs Finally, install library npm install <library> from the root directory

To use the assets of a library, add the following statement in the assets array under the angular.json file the of working project :-

  {
    "glob": "**/*",
    "input": "./node_modules/<path to library>/assets",
    "output": "./assets/"
  }
0.0.2

3 years ago

0.0.1

3 years ago