Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

Commit 4d7a392

Browse files
committed
Initial commit
0 parents  commit 4d7a392

File tree

12 files changed

+16670
-0
lines changed

12 files changed

+16670
-0
lines changed

.github/workflows/ci.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js 12.x
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12.x
17+
- run: npm ci
18+
- run: npm run lint
19+
- run: npm run build

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

.npmrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# DO NOT SPECIFY AUTHENTICATION CREDENTIALS IN THIS FILE. It should only be used
2+
# to configure registry sources.
3+
4+
registry=https://registry.npmjs.org/
5+
@bentley:registry=https://registry.npmjs.org/

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"editor.tabSize": 2,
4+
"editor.formatOnSave": true,
5+
}

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# MIT License
2+
3+
Copyright © 2020 Bentley Systems, Incorporated. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# iModel.js Example Extension
2+
3+
Copyright © Bentley Systems, Incorporated. All rights reserved.
4+
5+
An example iModel.js Extension that demonstrates the basic setup for an [Extension](https://imodeljs.org/learning/frontend/extensions/).
6+
7+
## Development Setup
8+
9+
1. Install and build the Extension
10+
11+
```sh
12+
npm install
13+
npm run build
14+
```
15+
16+
1. Setup local server to serve out the Extension for loading into an iModel.js App
17+
18+
```sh
19+
# Create the folder to host the Extension
20+
mkdir -p ./lib/imjs_extensions/sample
21+
22+
# Link the output of the build step above to the new folder
23+
cp -r ./lib/extension/ ./lib/imjs_extensions/sample/
24+
25+
# Setup a server hosting the Extension from "localhost:5000"
26+
npx serve --cors ./lib
27+
```
28+
29+
## Contributing
30+
31+
[Contributing to iModel.js](https://github.com/imodeljs/imodeljs/blob/master/CONTRIBUTING.md)

0 commit comments

Comments
 (0)