2.0.19 • Published 6 years ago

@mindlahus/ngx-assets v2.0.19

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

@Mindlahus/NgxAssets

Set of JavaScript classes and Angular modules, components, directives and pipes created to help you speed-up the development process of your brand new Angular App.

List of contents

  • Abstract classes.
    • HttpAbstract (a wrapper of Angular's HttpClient module).
    • InputAbstract (used by the many Angular Form Components provided by this set of assets).
  • Various components including a test integration of Highcharts as both an Angular Component and a Directive.
  • A complete set of directives.
  • Set of static JavaScript classes.
  • Some very handy Angular Pipes.
  • An interceptor service (for proper authentication with the API) and a complete set of many other services (including Workers).

(todo - publish complete documentation).

This is how this package was generated using angular-cli

Create new

  ng new ngx-assets --createApplication=false --prefix=sdo

Generate new library

  ng generate library ngx-assets --prefix=sdo

Generate test application

  ng generate application ngx-assets-test

Automatically add exports to public_api.ts

If you know PHP just create a file and run it inside the root directory.

  <?php
  
  function getDirContents($dir, &$results = [])
  {
      $files = \scandir($dir, null);
  
      foreach ($files as $key => $value) {
          $path = \realpath($dir . DIRECTORY_SEPARATOR . $value);
          if (!\is_dir($path)) {
              $path_info = \pathinfo(
                  './lib/' . \explode('/lib/', \str_replace('\\', '/', $path))[1]
              );
              $results[] = $path_info['dirname'] . '/' . $path_info['filename'];
          } else if ($value !== '.' && $value !== '..') {
              getDirContents($path, $results);
          }
      }
  
      return $results;
  }
  
  $fp = \fopen(__DIR__ . '/projects/ngx-assets/src/public_api.ts', 'wb');
  foreach (getDirContents(__DIR__ . '/projects/ngx-assets/src/lib') as $value) {
      \fwrite($fp, 'export * from \'' . $value . '\';' . "\r\n");
  }
  \fclose($fp);

Building, Packaging & Publishing

  npm login
  npm whoami
  npm adduser
  
  npm run make-release
  npm publish  --access=public ./dist/ngx-assets/mindlahus-ngx-assets-x.x.x.tgz

Available commands

  npm run ng
  npm run start
  npm run test
  npm run lint
  npm run e2e
  npm run build
  npm run pack
  npm run make-package
  npm run export-public-api
  npm run git-add-public-api
  npm run fix-public-api
  npm run copy-readme
  npm run commit-readme
  npm run fix-readme
  npm run version-patch
  npm run version-commit
  npm run version-fix
  npm run make-release

Translation

{
    "sdo": {
        "button_text": {
            "floating_panel": "Save",
            "success_box": "Start again"
        },
        "close": "Close",
        "loading": "Please wait! Loading &hellip;",
        "logging_you_out": "You will be logged-out in ...",
        "no_results": "No results.",
        "not_found": "Page not found!",
        "retry": "Retry",
        "skip_validation": "Skip Validation",
        "waiting_for_input": "Waiting for input..."
    }
}
2.0.19

6 years ago

2.0.18

6 years ago

2.0.17

6 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.2.2

6 years ago

1.1.3

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago