Skip to content

Commit 6fa1ac7

Browse files
committed
First initial features commit
1 parent 1cb51b5 commit 6fa1ac7

File tree

173 files changed

+42034
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+42034
-3
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
dist/
2+
dist-transpiled/
3+
build/
4+
www/
5+
loader/
6+
7+
*~
8+
*.sw[mnpcod]
9+
*.log
10+
*.lock
11+
*.tmp
12+
*.tmp.*
13+
log.txt
14+
*.sublime-project
15+
*.sublime-workspace
16+
17+
.stencil/
18+
.idea/
19+
.vscode/
20+
.sass-cache/
21+
.versions/
22+
.yalc/
23+
node_modules/
24+
$RECYCLE.BIN/
25+
26+
.DS_Store
27+
Thumbs.db
28+
UserInterfaceState.xcuserstate
29+
.env
30+
31+
# GitHub
32+
.github_changelog_generator

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14.16.0

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Adaleks Technology
3+
Copyright (c) 2021 Elwin van Eede
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
1-
# anywhere-ui
2-
Rich web components, includes framework bindings.
1+
# AnywhereUI Web Components
2+
3+
Library of web components, includes framework bindings.
4+
5+
## Getting Started
6+
7+
To start building a new AnywhereUI web component using Stencil, clone this repo to a new directory:
8+
9+
```bash
10+
git clone https://github.com/gjovanovicst/anywhere-ui.git
11+
cd anywhere-ui
12+
```
13+
14+
and run:
15+
16+
```bash
17+
cd packages/core
18+
npm install
19+
npm start
20+
```
21+
22+
To build the component for production, run:
23+
24+
```bash
25+
npm run build
26+
```
27+
28+
To run the unit tests for the components, run:
29+
30+
```bash
31+
npm test
32+
```

lerna.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.1.1"
6+
}

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "root",
3+
"private": true,
4+
"devDependencies": {
5+
"lerna": "^4.0.0"
6+
}
7+
}

packages/angular/.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

packages/angular/.gitignore

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
44+
# System Files
45+
.DS_Store
46+
Thumbs.db

packages/angular/README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Angular
2+
3+
Angular has a pretty good story for integration with web components but there are a few issues with the developer experience. If you want to know what the story is without the bindings go here: https://stenciljs.com/docs/angular.
4+
5+
With bindings the web components get wrapped in an Angular component and then immediately become available as Angular Components. Some of the advantages of doing this are that you get types for your components and you also get the ability to use ngmodel on inputs. Your developers then consuming your web components from Angular applications import an actual Angular Library and to them it feels as though they are interacting with Angular components.
6+
7+
## Install
8+
9+
```bash
10+
npm install @anywhere-ui/angular
11+
```
12+
13+
## Style
14+
15+
The css dependencies should be added in `angular.json` file
16+
17+
```json
18+
{
19+
...
20+
21+
"build": {
22+
...
23+
24+
"options": {
25+
"styles": [
26+
"./node_modules/@anywhere-ui/core/dist/anywhere-ui/anywhere-ui.css"
27+
],
28+
}
29+
},
30+
...
31+
32+
"test": {
33+
"styles": [
34+
"./node_modules/@anywhere-ui/core/dist/anywhere-ui/anywhere-ui.css"
35+
],
36+
}
37+
38+
...
39+
40+
}
41+
```
42+
43+
## Usage
44+
45+
```ts
46+
import { AnywhereUiModule } from '@anywhere-ui/angular';
47+
48+
@NgModule({
49+
...
50+
imports: [
51+
AnywhereUiModule
52+
],
53+
...
54+
})
55+
export class AppModule { }
56+
```
57+
58+
## Build
59+
60+
```bash
61+
ng build --configuration=production
62+
```
63+
64+
## How to release a new version
65+
66+
- Build the core package
67+
- Run build on this package
68+
- Publish

packages/angular/angular.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"anywhere-ui": {
7+
"projectType": "library",
8+
"root": "projects/anywhere-ui",
9+
"sourceRoot": "projects/anywhere-ui/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"tsConfig": "projects/anywhere-ui/tsconfig.lib.json",
16+
"project": "projects/anywhere-ui/ng-package.json"
17+
},
18+
"configurations": {
19+
"production": {
20+
"tsConfig": "projects/anywhere-ui/tsconfig.lib.prod.json"
21+
}
22+
}
23+
},
24+
"test": {
25+
"builder": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "projects/anywhere-ui/src/test.ts",
28+
"tsConfig": "projects/anywhere-ui/tsconfig.spec.json",
29+
"karmaConfig": "projects/anywhere-ui/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"builder": "@angular-devkit/build-angular:tslint",
34+
"options": {
35+
"tsConfig": [
36+
"projects/anywhere-ui/tsconfig.lib.json",
37+
"projects/anywhere-ui/tsconfig.spec.json"
38+
],
39+
"exclude": [
40+
"**/node_modules/**"
41+
]
42+
}
43+
}
44+
}
45+
}
46+
},
47+
"defaultProject": "anywhere-ui"
48+
}

0 commit comments

Comments
 (0)