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

Angular library for zlux file explorer #217

Open
wants to merge 4 commits into
base: v3.x/staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/web
/tmp
/out-tsc
/dist

# dependencies
node_modules
Expand Down Expand Up @@ -40,6 +39,7 @@ node_modules
npm-debug.log
testem.log
/typings
.angular

# e2e
/e2e/*.js
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@zowe:registry=https://zowe.jfrog.io/zowe/api/npm/npm-release/
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ cd zlux-file-explorer
npm uninstall
```

### node-sass vendor folder not found
If you experience this issue
```
node node_modules/node-sass/scripts/install.js
npm rebuild node-sass
```

## Develop your app with local version of FT - Option 2 Local path
An alternative to option 1 is to use a local path.

Expand Down
135 changes: 135 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"zlux-file-explorer": {
"projectType": "library",
"root": "projects/zlux-file-explorer",
"sourceRoot": "projects/zlux-file-explorer/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/zlux-file-explorer/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/zlux-file-explorer/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/zlux-file-explorer/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/zlux-file-explorer/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
}
}
},
"sandbox": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/sandbox",
"sourceRoot": "projects/sandbox/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/sandbox",
"index": "projects/sandbox/src/index.html",
"browser": "projects/sandbox/src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/sandbox/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "projects/sandbox/public"
}
],
"styles": [
"projects/sandbox/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "sandbox:build:production"
},
"development": {
"buildTarget": "sandbox:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/sandbox/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "projects/sandbox/public"
}
],
"styles": [
"projects/sandbox/src/styles.scss"
],
"scripts": []
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions dist/zlux-file-explorer/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Nested package.json's are only needed for development.
**/package.json
24 changes: 24 additions & 0 deletions dist/zlux-file-explorer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ZluxFileExplorer

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.

## Code scaffolding

Run `ng generate component component-name --project zlux-file-explorer` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project zlux-file-explorer`.
> Note: Don't forget to add `--project zlux-file-explorer` or else it will be added to the default project in your `angular.json` file.

## Build

Run `ng build zlux-file-explorer` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build zlux-file-explorer`, go to the dist folder `cd dist/zlux-file-explorer` and run `npm publish`.

## Running unit tests

Run `ng test zlux-file-explorer` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
File renamed without changes
Loading