bimplus-webclient 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -117
- package/package.json +52 -52
package/README.md
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
bim+ webclient
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
bim+ webclient is a javascript module for integrating bimplus into custom web pages
|
|
5
|
-
|
|
6
|
-
Quick Links
|
|
7
|
-
-----------
|
|
8
|
-
|
|
9
|
-
https://doc.allplan.com/display/bimpluspublic/Bimplus+Web+SDK+Reference
|
|
10
|
-
|
|
11
|
-
How to build
|
|
12
|
-
------------
|
|
13
|
-
|
|
14
|
-
### Install nodejs
|
|
15
|
-
[http://www.nodejs.org/](http://www.nodejs.org/)
|
|
16
|
-
|
|
17
|
-
### Install local npm modules
|
|
18
|
-
Open up a normal command line (admin is not needed) and go to the webclient folder
|
|
19
|
-
|
|
20
|
-
npm install
|
|
21
|
-
|
|
22
|
-
(whenever package.json has changed, you might to do this again)
|
|
23
|
-
|
|
24
|
-
### Build webclient
|
|
25
|
-
Library building process is using UMD (Universal Module Definition) output format so
|
|
26
|
-
it's compatible with both cjs and amd module formats. The same library can be use in the
|
|
27
|
-
client or on the server. Build process is using babel so it's possible to use new ES2015
|
|
28
|
-
code in source codes.
|
|
29
|
-
|
|
30
|
-
Library can be build in several ways as a dev or prod version.
|
|
31
|
-
To run a dev build with source maps run:
|
|
32
|
-
|
|
33
|
-
npm run build
|
|
34
|
-
|
|
35
|
-
To build a prod version - uglified, minified run:
|
|
36
|
-
|
|
37
|
-
npm run build-prod
|
|
38
|
-
|
|
39
|
-
Pulish new release to npm (Hint: Before doing this npm login needs to be done and the package version adjusted) :
|
|
40
|
-
|
|
41
|
-
npm run npm-publish
|
|
42
|
-
|
|
43
|
-
Check content of npm package (result is bimplus-webclient@(version).tar.gz)
|
|
44
|
-
|
|
45
|
-
npm run npm-pack
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Develop/Debug webclient
|
|
49
|
-
goto your webclient folder
|
|
50
|
-
|
|
51
|
-
npm link
|
|
52
|
-
|
|
53
|
-
goto your application folder which uses the webclient
|
|
54
|
-
|
|
55
|
-
npm link bimplus-webclient
|
|
56
|
-
|
|
57
|
-
Do you changes in the webclient and build
|
|
58
|
-
|
|
59
|
-
npm run build
|
|
60
|
-
|
|
61
|
-
or
|
|
62
|
-
|
|
63
|
-
npm run build-prod
|
|
64
|
-
|
|
65
|
-
Your app will automatically get the changes done in the renderer
|
|
66
|
-
|
|
67
|
-
After developing it might be wise to unlink:
|
|
68
|
-
goto your webclient folder
|
|
69
|
-
|
|
70
|
-
npm unlink
|
|
71
|
-
goto your application folder which uses the webclient
|
|
72
|
-
|
|
73
|
-
npm unlink bimplus-webclient
|
|
74
|
-
npm install
|
|
75
|
-
|
|
76
|
-
### Unit testing
|
|
77
|
-
To run the unit tests karma CLI is used. To get karma use
|
|
78
|
-
|
|
79
|
-
npm install
|
|
80
|
-
|
|
81
|
-
Run test in headleass mode
|
|
82
|
-
|
|
83
|
-
npm run test
|
|
84
|
-
|
|
85
|
-
The tests areperformed for all specified browsers in karma.conf.js.
|
|
86
|
-
|
|
87
|
-
### Documentation
|
|
88
|
-
Bimplus webclient uses npm documentation plugin for easy documentation generation.
|
|
89
|
-
To generate a documentation please install documentation plugin via npm :
|
|
90
|
-
|
|
91
|
-
npm install -g documentation
|
|
92
|
-
|
|
93
|
-
To create documentation in html format go to your webclient folder and run :
|
|
94
|
-
|
|
95
|
-
npm run build-doc
|
|
96
|
-
|
|
97
|
-
Documentation output will be in webclient/documentation folder
|
|
98
|
-
|
|
99
|
-
To create documentation in markdown format go to your webclient folder and run :
|
|
100
|
-
|
|
101
|
-
npm run build-docMd
|
|
102
|
-
|
|
103
|
-
Documentation output will be in webclient/documentation/Bimplus_WebSDK_doc.md file.
|
|
104
|
-
|
|
105
|
-
To create a markdown suitable for Confluence run script:
|
|
106
|
-
|
|
107
|
-
npm run build-docConf
|
|
108
|
-
|
|
109
|
-
This script will convert generated markdown into Confluence format. See console
|
|
110
|
-
output for converted file name.
|
|
111
|
-
|
|
112
|
-
Content of the confluence file can be inserted into Confluence page :
|
|
113
|
-
- start confluence page editation mode
|
|
114
|
-
- choose Insert more content / {} Markup option from toolbar
|
|
115
|
-
- in popup window choose to Insert Markdown format
|
|
116
|
-
- copy content of the converted confluence markdown file into the field in Confluence
|
|
117
|
-
- save it (Please note that page links doesn't work in page preview mode)
|
|
1
|
+
bim+ webclient
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
bim+ webclient is a javascript module for integrating bimplus into custom web pages
|
|
5
|
+
|
|
6
|
+
Quick Links
|
|
7
|
+
-----------
|
|
8
|
+
|
|
9
|
+
https://doc.allplan.com/display/bimpluspublic/Bimplus+Web+SDK+Reference
|
|
10
|
+
|
|
11
|
+
How to build
|
|
12
|
+
------------
|
|
13
|
+
|
|
14
|
+
### Install nodejs
|
|
15
|
+
[http://www.nodejs.org/](http://www.nodejs.org/)
|
|
16
|
+
|
|
17
|
+
### Install local npm modules
|
|
18
|
+
Open up a normal command line (admin is not needed) and go to the webclient folder
|
|
19
|
+
|
|
20
|
+
npm install
|
|
21
|
+
|
|
22
|
+
(whenever package.json has changed, you might to do this again)
|
|
23
|
+
|
|
24
|
+
### Build webclient
|
|
25
|
+
Library building process is using UMD (Universal Module Definition) output format so
|
|
26
|
+
it's compatible with both cjs and amd module formats. The same library can be use in the
|
|
27
|
+
client or on the server. Build process is using babel so it's possible to use new ES2015
|
|
28
|
+
code in source codes.
|
|
29
|
+
|
|
30
|
+
Library can be build in several ways as a dev or prod version.
|
|
31
|
+
To run a dev build with source maps run:
|
|
32
|
+
|
|
33
|
+
npm run build
|
|
34
|
+
|
|
35
|
+
To build a prod version - uglified, minified run:
|
|
36
|
+
|
|
37
|
+
npm run build-prod
|
|
38
|
+
|
|
39
|
+
Pulish new release to npm (Hint: Before doing this npm login needs to be done and the package version adjusted) :
|
|
40
|
+
|
|
41
|
+
npm run npm-publish
|
|
42
|
+
|
|
43
|
+
Check content of npm package (result is bimplus-webclient@(version).tar.gz)
|
|
44
|
+
|
|
45
|
+
npm run npm-pack
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Develop/Debug webclient
|
|
49
|
+
goto your webclient folder
|
|
50
|
+
|
|
51
|
+
npm link
|
|
52
|
+
|
|
53
|
+
goto your application folder which uses the webclient
|
|
54
|
+
|
|
55
|
+
npm link bimplus-webclient
|
|
56
|
+
|
|
57
|
+
Do you changes in the webclient and build
|
|
58
|
+
|
|
59
|
+
npm run build
|
|
60
|
+
|
|
61
|
+
or
|
|
62
|
+
|
|
63
|
+
npm run build-prod
|
|
64
|
+
|
|
65
|
+
Your app will automatically get the changes done in the renderer
|
|
66
|
+
|
|
67
|
+
After developing it might be wise to unlink:
|
|
68
|
+
goto your webclient folder
|
|
69
|
+
|
|
70
|
+
npm unlink
|
|
71
|
+
goto your application folder which uses the webclient
|
|
72
|
+
|
|
73
|
+
npm unlink bimplus-webclient
|
|
74
|
+
npm install
|
|
75
|
+
|
|
76
|
+
### Unit testing
|
|
77
|
+
To run the unit tests karma CLI is used. To get karma use
|
|
78
|
+
|
|
79
|
+
npm install
|
|
80
|
+
|
|
81
|
+
Run test in headleass mode
|
|
82
|
+
|
|
83
|
+
npm run test
|
|
84
|
+
|
|
85
|
+
The tests areperformed for all specified browsers in karma.conf.js.
|
|
86
|
+
|
|
87
|
+
### Documentation
|
|
88
|
+
Bimplus webclient uses npm documentation plugin for easy documentation generation.
|
|
89
|
+
To generate a documentation please install documentation plugin via npm :
|
|
90
|
+
|
|
91
|
+
npm install -g documentation
|
|
92
|
+
|
|
93
|
+
To create documentation in html format go to your webclient folder and run :
|
|
94
|
+
|
|
95
|
+
npm run build-doc
|
|
96
|
+
|
|
97
|
+
Documentation output will be in webclient/documentation folder
|
|
98
|
+
|
|
99
|
+
To create documentation in markdown format go to your webclient folder and run :
|
|
100
|
+
|
|
101
|
+
npm run build-docMd
|
|
102
|
+
|
|
103
|
+
Documentation output will be in webclient/documentation/Bimplus_WebSDK_doc.md file.
|
|
104
|
+
|
|
105
|
+
To create a markdown suitable for Confluence run script:
|
|
106
|
+
|
|
107
|
+
npm run build-docConf
|
|
108
|
+
|
|
109
|
+
This script will convert generated markdown into Confluence format. See console
|
|
110
|
+
output for converted file name.
|
|
111
|
+
|
|
112
|
+
Content of the confluence file can be inserted into Confluence page :
|
|
113
|
+
- start confluence page editation mode
|
|
114
|
+
- choose Insert more content / {} Markup option from toolbar
|
|
115
|
+
- in popup window choose to Insert Markdown format
|
|
116
|
+
- copy content of the converted confluence markdown file into the field in Confluence
|
|
117
|
+
- save it (Please note that page links doesn't work in page preview mode)
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bimplus-webclient",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "bim+ web client",
|
|
5
|
-
"main": "dist/bimplus-webclient.js",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "."
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"eslint": "eslint src/** test/**",
|
|
13
|
-
"build": "npm run eslint && webpack --config webpack.dev.js",
|
|
14
|
-
"build-prod": "npm run eslint && webpack --config webpack.prod.js",
|
|
15
|
-
"yarn-publish": "npm run build-prod && yarn publish",
|
|
16
|
-
"yarn-publish-branch": "npm run build-prod && yarn publish --tag",
|
|
17
|
-
"npm-pack": "npm run build-prod && npm pack",
|
|
18
|
-
"lint-doc": "documentation lint ./src/*.js",
|
|
19
|
-
"build-doc": "yarn lint-doc && documentation build ./src/*.js --config doc_config.yml -f html -o ./documentation",
|
|
20
|
-
"build-docMd": "yarn lint-doc && documentation build ./src/*.js -f md -o ./documentation/Bimplus_WebClient_doc.md",
|
|
21
|
-
"build-docConf": "yarn build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
22
|
-
"build-docAll": "yarn build-doc && yarn build-docConf",
|
|
23
|
-
"test": "node node_modules/karma/bin/karma start",
|
|
24
|
-
"test-chrome": "npm run test -- --single-run=true --browsers Chrome karma.conf.js",
|
|
25
|
-
"test-chrome-headless": "npm run test -- --single-run=true --browsers ChromeHeadless karma.conf.js",
|
|
26
|
-
"test-firefox": "npm run test -- --single-run=true --browsers Firefox karma.conf.js",
|
|
27
|
-
"test-firefox-headless": "npm run test -- --single-run=true --browsers FirefoxHeadless karma.conf.js",
|
|
28
|
-
"test-watch": "npm run test -- --browsers=Chrome --single-run=false --auto-watch"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@babel/core": "^7.
|
|
32
|
-
"@babel/preset-env": "^7.
|
|
33
|
-
"babel-loader": "^9.1.
|
|
34
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
35
|
-
"coverage-istanbul-loader": "^3.0.5",
|
|
36
|
-
"documentation": "^14.0.2",
|
|
37
|
-
"eslint": "^8.
|
|
38
|
-
"karma": "^6.4.2",
|
|
39
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
40
|
-
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
41
|
-
"karma-firefox-launcher": "^2.1.2",
|
|
42
|
-
"karma-qunit": "^4.1.1",
|
|
43
|
-
"karma-webpack": "^5.0.0",
|
|
44
|
-
"qunit": "^2.
|
|
45
|
-
"terser-webpack-plugin": "^5.3.9",
|
|
46
|
-
"webpack": "^5.
|
|
47
|
-
"webpack-cli": "^5.1.4"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"jquery": "3.7.
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "bimplus-webclient",
|
|
3
|
+
"version": "0.1.44",
|
|
4
|
+
"description": "bim+ web client",
|
|
5
|
+
"main": "dist/bimplus-webclient.js",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "."
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"eslint": "eslint src/** test/**",
|
|
13
|
+
"build": "npm run eslint && webpack --config webpack.dev.js",
|
|
14
|
+
"build-prod": "npm run eslint && webpack --config webpack.prod.js",
|
|
15
|
+
"yarn-publish": "npm run build-prod && yarn publish",
|
|
16
|
+
"yarn-publish-branch": "npm run build-prod && yarn publish --tag",
|
|
17
|
+
"npm-pack": "npm run build-prod && npm pack",
|
|
18
|
+
"lint-doc": "documentation lint ./src/*.js",
|
|
19
|
+
"build-doc": "yarn lint-doc && documentation build ./src/*.js --config doc_config.yml -f html -o ./documentation",
|
|
20
|
+
"build-docMd": "yarn lint-doc && documentation build ./src/*.js -f md -o ./documentation/Bimplus_WebClient_doc.md",
|
|
21
|
+
"build-docConf": "yarn build-docMd && cd ./documentation && python convert_to_confluence_md.py",
|
|
22
|
+
"build-docAll": "yarn build-doc && yarn build-docConf",
|
|
23
|
+
"test": "node node_modules/karma/bin/karma start",
|
|
24
|
+
"test-chrome": "npm run test -- --single-run=true --browsers Chrome karma.conf.js",
|
|
25
|
+
"test-chrome-headless": "npm run test -- --single-run=true --browsers ChromeHeadless karma.conf.js",
|
|
26
|
+
"test-firefox": "npm run test -- --single-run=true --browsers Firefox karma.conf.js",
|
|
27
|
+
"test-firefox-headless": "npm run test -- --single-run=true --browsers FirefoxHeadless karma.conf.js",
|
|
28
|
+
"test-watch": "npm run test -- --browsers=Chrome --single-run=false --auto-watch"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/core": "^7.23.3",
|
|
32
|
+
"@babel/preset-env": "^7.23.3",
|
|
33
|
+
"babel-loader": "^9.1.3",
|
|
34
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
35
|
+
"coverage-istanbul-loader": "^3.0.5",
|
|
36
|
+
"documentation": "^14.0.2",
|
|
37
|
+
"eslint": "^8.54.0",
|
|
38
|
+
"karma": "^6.4.2",
|
|
39
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
40
|
+
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
41
|
+
"karma-firefox-launcher": "^2.1.2",
|
|
42
|
+
"karma-qunit": "^4.1.1",
|
|
43
|
+
"karma-webpack": "^5.0.0",
|
|
44
|
+
"qunit": "^2.20.0",
|
|
45
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
46
|
+
"webpack": "^5.89.0",
|
|
47
|
+
"webpack-cli": "^5.1.4"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"jquery": "3.7.1"
|
|
51
|
+
}
|
|
52
|
+
}
|