Skip to content

Commit 11451e7

Browse files
author
JelteMX
committed
First setup
0 parents  commit 11451e7

20 files changed

+30884
-0
lines changed

.editorconfig

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

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage/
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
.nyc_output
7+
lib
8+
lib_test

.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# gitignore
2+
3+
coverage/
4+
node_modules/
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
.nyc_output
9+
10+
# npmignore
11+
12+
src/
13+
__tests__/
14+
.vscode/

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- 'node' # use latest stable nodejs version
4+
script:
5+
- npm run coverage # jest test with coverage flag does coverage too
6+
after_script:
7+
- 'cat coverage/lcov.info | ./node_modules/.bin/coveralls' # sends the coverage report to coveralls

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Debug file",
11+
"program": "${workspaceRoot}/lib/${fileBasenameNoExtension}.js",
12+
"cwd": "${workspaceRoot}",
13+
"sourceMaps": true,
14+
"smartStep": true,
15+
"preLaunchTask": "build",
16+
"outFiles": [
17+
"${workspaceRoot}/lib/*.js"
18+
]
19+
},
20+
{
21+
"type": "node",
22+
"request": "launch",
23+
"name": "Debug test",
24+
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
25+
"args": [
26+
"--findRelatedTests",
27+
"${relativeFile}"
28+
],
29+
"cwd": "${workspaceRoot}"
30+
}
31+
]
32+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib/"
3+
}

.vscode/tasks.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Run current file",
8+
"command": "ts-node ${relativeFile}",
9+
"type": "shell",
10+
"problemMatcher": []
11+
},
12+
{
13+
"type": "npm",
14+
"label": "clean",
15+
"script": "clean",
16+
"problemMatcher": []
17+
},
18+
{
19+
"type": "npm",
20+
"label": "build",
21+
"script": "build",
22+
"group": {
23+
"kind": "build",
24+
"isDefault": true
25+
},
26+
"problemMatcher": []
27+
},
28+
{
29+
"type": "npm",
30+
"label": "format",
31+
"script": "format",
32+
"problemMatcher": []
33+
},
34+
{
35+
"type": "npm",
36+
"label": "coverage",
37+
"script": "coverage",
38+
"problemMatcher": []
39+
},
40+
{
41+
"type": "npm",
42+
"label": "test",
43+
"script": "test",
44+
"group": {
45+
"kind": "test",
46+
"isDefault": true
47+
},
48+
"problemMatcher": []
49+
},
50+
{
51+
"type": "npm",
52+
"label": "lint",
53+
"script": "lint",
54+
"problemMatcher": [
55+
"$eslint-stylish"
56+
]
57+
}
58+
]
59+
}

LICENSE

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

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
2+
3+
# Mendix (React) Widget Utils
4+
5+
Makes building widgets a little easier by providing a couple of convenient methods & helper functions. This is tied to Typescript development of widgets. All methods & classes have been properly described, so your code editor (VSCode preferred) should give you code completion, type checking and proper comments.
6+
7+
## Usage
8+
9+
```ts
10+
import { createObject } from "@jeltemx/mendix-react-widget-utils";
11+
12+
const mendixObject = await createObject("MyFirstModule.Entity");
13+
```
14+
15+
## License
16+
17+
MIT

0 commit comments

Comments
 (0)