8000 Feature/react webpack testing by hkernbach · Pull Request #8712 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Feature/react webpack testing #8712

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

Merged
merged 120 commits into from
Oct 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
cd69644
init commit
hkernbach Dec 20, 2018
b142aa6
cleanup of not needed css
hkernbach Dec 20, 2018
731b879
todo
hkernbach Dec 20, 2018
a623be7
jquery ui 192 cusotm not needed anymore
hkernbach Dec 20, 2018
db4bf7e
leaflet
hkernbach Dec 20, 2018
afc414a
test files, remove after complete trasnfer to webpack
hkernbach Dec 20, 2018
35d12eb
more changes, see react/TODO.md for details
hkernbach Dec 20, 2018
847cb7c
webpack dev config
hkernbach Dec 20, 2018
4cb6092
added content of build direcotry, please remmeber TODO.md - this need…
hkernbach Dec 20, 2018
7dad615
html react
hkernbach Dec 20, 2018
1676dba
added needed images, also refactor is here needed
hkernbach Dec 20, 2018
0de3d79
aardvark question
hkernbach Dec 20, 2018
c3c2b6b
temp commented out shard distribution, changed app
hkernbach Dec 20, 2018
5459ab3
gitignore aardvark + react
hkernbach Dec 20, 2018
f3d2c14
src ace - why? donw know
hkernbach Dec 20, 2018
04f2eb9
Merge branch 'devel' into feature/react-webpack-testing
hkernbach Dec 20, 2018
176db8b
Merge branch 'devel' into feature/react-webpack-testing
hkernbach Jan 9, 2019
ca305ac
renamed ejs files to html
hkernbach Jan 10, 2019
d8a460c
rm not needed files
hkernbach Jan 10, 2019
16bc053
new pure versions
hkernbach Jan 10, 2019
3608fbf
fix aardvark for react
hkernbach Jan 11, 2019
ba3bcb1
more fixes, still sigma js wheel nav svg icons not wokring
hkernbach Jan 11, 2019
c69c21c
grunt cleanup, more removals to come
hkernbach Jan 11, 2019
55c1e73
new manifest
hkernbach Jan 11, 2019
aaa1a56
fix ace
hkernbach Jan 11, 2019
f276e13
rm not needed files
hkernbach Jan 11, 2019
c205632
working version with first react native component
hkernbach Jan 11, 2019
7b196b4
Added missing typescript types
mchacki Jan 15, 2019
349f949
Formatting
pluma Apr 9, 2019
2cb74ff
merge devel into feature branch
hkernbach Jun 13, 2019
4fc2d05
rm unused views
hkernbach Jun 13, 2019
1fef16b
better check of variable
hkernbach Jun 19, 2019
3175d62
pre-compiled ejs templates, fixing tippy tooltips, fixing sigma js
hkernbach Jun 19, 2019
457abdd
not needed ,
hkernbach Jun 19, 2019
4e2326c
hg ignore
hkernbach Jun 19, 2019
2507a03
tippy js module
hkernbach Jun 19, 2019
7e800d4
precompile, do not longer require file per file
hkernbach Jun 19, 2019
dd346d0
added build env file
hkernbach Jun 24, 2019
bbedc54
added devel env file
hkernbach Jun 24, 2019
900a642
load env files for devel and build environemnts
hkernbach Jun 24, 2019
242584b
load config js properly
hkernbach Jun 24, 2019
06273b4
executable again, needs future fix
hkernbach Jun 24, 2019
894ed80
load host via env file
hkernbach Jun 24, 2019
eeea72d
arnagojs host detection regarding dev or build mode
hkernbach Jun 24, 2019
efc8cca
task repeater rise to 10s interval instead of 1s
hkernbach Jun 24, 2019
a2dbbb1
rm old app js version
hkernbach Jun 24, 2019
d031e76
rm old extra css
hkernbach Jun 24, 2019
6d63daa
rm old templates
hkernbach Jun 24, 2019
de08750
rm libs js
hkernbach Jun 24, 2019
cbf3f9c
more cleanup, remove old index html
hkernbach Jun 24, 2019
ad8fc62
rm old style css
hkernbach Jun 24, 2019
dacdca2
rm old style minified css
hkernbach Jun 24, 2019
fd78009
adjust new `make frontend` command to new react build structure
hkernbach Jun 24, 2019
e1a1bf5
rm not needed css
hkernbach Jun 24, 2019
5b87793
todo
hkernbach Jun 24, 2019
6bd708d
hljs instead of jquery.snippet.min.js
hkernbach Jun 24, 2019
56f8c47
Merge branch 'devel' of github.com:arangodb/arangodb into feature/rea…
hkernbach Aug 15, 2019
191fff0
updated todo
hkernbach Aug 15, 2019
cf0d8f6
Merge branch 'devel' of github.com:arangodb/arangodb into feature/rea…
hkernbach Aug 15, 2019
6f68312
updated noty version. changed internal apis to fit new noty version
hkernbach Aug 15, 2019
e26302c
rm old node package json, rm old grunt file, those will not be used a…
hkernbach Aug 15, 2019
6250414
updated todo
hkernbach Aug 15, 2019
0850c02
rm not needed files
hkernbach Aug 15, 2019
75dfa22
updated todo
hkernbach Aug 15, 2019
c718848
updated todo
hkernbach Aug 15, 2019
8000 8d957ff
do not use crazy global vars
hkernbach Aug 16, 2019
90f19ae
updated todo
hkernbach Aug 16, 2019
8d621bb
updated todo
hkernbach Aug 16, 2019
6c777ce
rm compress img folder, moved compressed to img, adjusted manifest
hkernbach Aug 16, 2019
6d604c3
add replc scss
hkernbach Aug 16, 2019
a153e5b
remove old build folder
hkernbach Aug 16, 2019
34ab5d3
not needed anymore
hkernbach Aug 16, 2019
5e67658
adjusted gitignore file
hkernbach Aug 16, 2019
4980813
adjusted release.sh script
hkernbach Aug 16, 2019
0fc27e3
adjusted release.sh script
hkernbach Aug 16, 2019
afe2217
adjusted readme maintainers
hkernbach Aug 16, 2019
bc5293d
updated todo
hkernbach Aug 16, 2019
1c5402f
png instead of svg, cleanup not needed files, proper version login img
hkernbach Aug 16, 2019
d8d0ceb
up
hkernbach Aug 16, 2019
d489cd4
updated todo
hkernbach Aug 16, 2019
4054bd2
remove console log
hkernbach Aug 16, 2019
5d7aa4e
cluster task only in cluster
hkernbach Aug 16, 2019
551dc7a
adjusted readme maintainers
hkernbach Aug 16, 2019
70dd354
updated todo
hkernbach Aug 16, 2019
aaeb19f
remove the cool web ui name 😢
hkernbach Aug 16, 2019
f143b84
clean up, finalization
hkernbach Aug 16, 2019
279ad6b
added missing assets
hkernbach Aug 16, 2019
88e6e2e
added package lock
hkernbach Aug 16, 2019
11498fa
added build - needs to discussion if we want to check that in or not
hkernbach Aug 16, 2019
ade7e3c
use old shard view for now until react view is finalized
hkernbach Aug 16, 2019
c53c800
react build
hkernbach Aug 16, 2019
8913d11
Merge branch 'devel' of ssh://github.com/arangodb/ArangoDB into featu…
mchacki Aug 20, 2019
029b3d3
updated maintainers
hkernbach Aug 20, 2019
bd919d6
Update js/apps/system/_admin/aardvark/APP/manifest.json
hkernbach Aug 20, 2019
2ec1cdd
changed manifest
hkernbach Aug 20, 2019
c0d2230
Merge branch 'feature/react-webpack-testing' of github.com:arangodb/a…
hkernbach Aug 20, 2019
6d29f68
rm todo file
hkernbach Aug 20, 2019
2e778a4
updated react manifest
hkernbach Aug 20, 2019
4825bff
rm react logo
hkernbach Aug 20, 2019
f583faa
reverted port changes
hkernbach Aug 20, 2019
bf11f6f
Fixed img folder
mchacki Aug 21, 2019
2507c83
Merge branch 'devel' of github.com:arangodb/arangodb into feature/rea…
hkernbach Aug 26, 2019
ebed167
Merge branch 'devel' of ssh://github.com/arangodb/ArangoDB into featu…
mchacki Oct 10, 2019
76f915e
Merge branch 'devel' of ssh://github.com/arangodb/ArangoDB into featu…
mchacki Oct 10, 2019
d1ede39
Merged with devel, solved hidden merge conflicts. Also added react/bu…
mchacki Oct 10, 2019
14686d8
merge devel into feature branch
hkernbach Oct 14, 2019
6ae1502
Merge branch 'feature/react-webpack-testing' of github.com:arangodb/a…
hkernbach Oct 14, 2019
1a7e87a
updated uploadfile library
hkernbach Oct 14, 2019
f58debe
require sort order
hkernbach Oct 14, 2019
2ca2f5b
Merge branch 'devel' of github.com:arangodb/arangodb into feature/rea…
hkernbach Oct 21, 2019
b8ca12a
cleanup, correct name + version
hkernbach Oct 21, 2019
f11e6ee
rm hgignore file
hkernbach Oct 21, 2019
b21d0e7
re-added commented out noty functions
hkernbach Oct 21, 2019
24ef465
removed duplicate
hkernbach Oct 21, 2019
bdb0420
removed duplicate
hkernbach Oct 21, 2019
b1ccce2
noty
hkernbach Oct 21, 2019
b00e648
added automatic proxy setup
hkernbach Oct 21, 2019
d3accf9
readme maintainers
hkernbach Oct 21, 2019
5f7be06
Merge branch 'devel' of github.com:arangodb/arangodb into feature/rea…
hkernbach Oct 22, 2019
ea1d2b0
jslint
hkernbach Oct 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 7 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,13 @@ test.cpp.txt
js/apps/*
!js/apps/system
!js/apps/system/*
!js/apps/system/_admin/aardvark/APP/build
!js/apps/system/_admin/aardvark/APP/build/*
!js/apps/system/_admin/aardvark/APP/frontend/build
!js/apps/system/_admin/aardvark/APP/frontend/build/*
js/apps/system/_admin/aardvark/APP/node_modules/*

js/apps/system/_admin/aardvark/APP/frontend/build/app.js
js/apps/system/_admin/aardvark/APP/frontend/build/app.js.gz
js/apps/system/_admin/aardvark/APP/frontend/build/templates.js
js/apps/system/_admin/aardvark/APP/frontend/build/templates.js.gz
js/apps/system/_admin/aardvark/APP/frontend/build/extra.css
js/apps/system/_admin/aardvark/APP/frontend/build/extra.css.gz
js/apps/system/_admin/aardvark/APP/frontend/build/index.html
js/apps/system/_admin/aardvark/APP/frontend/build/libs.js
js/apps/system/_admin/aardvark/APP/frontend/build/libs.js.gz
js/apps/system/_admin/aardvark/APP/frontend/build/style.css
js/apps/system/_admin/aardvark/APP/frontend/build/scripts.html.part
js/apps/system/_admin/aardvark/APP/package-lock.json
js/apps/system/_admin/aardvark/APP/react/node_modules/
js/apps/system/_admin/aardvark/APP/react/node_modules/*
js/apps/system/_admin/aardvark/APP/react/yarn.lock
js/apps/system/_admin/aardvark/APP/react/build/*
js/apps/system/_admin/aardvark/APP/react/build


.gdb-history
npm-debug.log
Expand Down
13 changes: 3 additions & 10 deletions Installation/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ else
exit 1
fi

if grunt --version; then
echo "grunt found."
else
echo "grunt missing from your system"
exit 1
fi

if gitbook --version; then
echo "gitbook found."
else
Expand Down Expand Up @@ -335,12 +328,12 @@ if [ "$SWAGGER" == "1" ]; then
./utils/generateSwagger.sh
fi

echo "GRUNT"
echo "REACT"
(
cd js/apps/system/_admin/aardvark/APP
cd js/apps/system/_admin/aardvark/APP/react
rm -rf node_modules
npm install
grunt deploy
npm run build
)

git add -f Documentation/Examples/*.generated
Expand Down
26 changes: 9 additions & 17 deletions README_maintainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,28 +215,20 @@ To remove all available node modules and start a clean installation run:

The frontend can also be built using these commands:

cd <SourceRoot>/js/apps/system/_admin/aardvark/APP/
cd <SourceRoot>/js/apps/system/_admin/aardvark/APP/react
npm install
grunt deploy
npm run build

For development purposes, go to `js/apps/system/_admin/aardvark/APP/` and open
`manifest.json`. Then apply the following change:
For development purposes, go to `js/apps/system/_admin/aardvark/APP/react` and
run:

```
"/app.js": {
- "path": "frontend/build/app.min.js",
- "gzip": true
+ "path": "frontend/build/app.js",
+ "gzip": false
},
```
npm start

Then run `grunt`, `grunt deploy` and `grunt watch`. This should make every
change in the code available after a reload for the browser. It is faster this
way because the minification step is skipped.
This will deploy a development server (Port: 3000) and automatically start your
favorite browser and open the web UI.

Note: You might need to do the same for other files.
Usually the change for `app` should suffice however.
All changes to any source will automatically re-build and reload your browser.
Enjoy :)

#### NPM Dependencies

Expand Down
8 changes: 4 additions & 4 deletions cmake/frontend/aardvark.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
################################################################################
add_custom_target(frontend
COMMENT "create frontend build"
COMMAND npm i --prefix ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP
COMMAND npm install --prefix ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP grunt
COMMAND ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP/node_modules/grunt/bin/grunt --gruntfile ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP/GruntFile.js deploy
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP/react
COMMAND npm install
COMMAND npm run build
)

add_custom_target(frontend_clean
COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP/node_modules
COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_SOURCE_DIR}/js/apps/system/_admin/aardvark/APP/react/node_modules
COMMENT "Removing frontend node modules"
)

Loading
0