Skip to content

Commit

Permalink
Add Static ACE assets during postinstall
Browse files Browse the repository at this point in the history
- Remove static ACE assets from source repository;
- Add static ACE assets during postinstall (mode && theme);
- Readme added to state that assets directory gets created during postinstall;
- Fixes #102
  • Loading branch information
exsilium committed Aug 27, 2019
1 parent eaf2c59 commit 9785b67
Show file tree
Hide file tree
Showing 131 changed files with 8 additions and 77,126 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"start": "./bin/pylon.sh",
"test": "npm run-script build && ./test/run-tests.sh",
"build": "mkdir -p ./plugins-client/lib.ppc/www/ppc && cd ppc && mkdir -p build && node ppc-package.js projects/default.ppp && cat ./build/ppc_release.js | sed 's/\\(\\/\\*FILEHEAD(\\).*//g' > ../plugins-client/lib.ppc/www/ppc/ppc.js && cd ..",
"postinstall": "if [ -d 'node_modules/ace' ]; then cd node_modules/ace; else mkdir -p node_modules; ln -s ../../ace node_modules/ace; ln -s ../../treehugger node_modules/treehugger; cd ../ace; fi; make clean pre_build; ./Makefile.dryice.js minimal; cd ../..; make worker; if [ -L 'node_modules/ace' ]; then rm node_modules/ace; rm node_modules/treehugger; rmdir node_modules; fi"
"postinstall": "if [ -d 'node_modules/ace' ]; then cd node_modules/ace; else mkdir -p node_modules; ln -s ../../ace node_modules/ace; ln -s ../../treehugger node_modules/treehugger; cd ../ace; fi; make clean pre_build; ./Makefile.dryice.js minimal; cd ../..; make worker; make mode; make theme; if [ -L 'node_modules/ace' ]; then rm node_modules/ace; rm node_modules/treehugger; rmdir node_modules; fi"
}
}
7 changes: 7 additions & 0 deletions plugins-client/lib.ace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Static assets

The ACE Editor static assets will be populated under `./www` directory during build phase by:

- make worker
- make mode
- make theme
262 changes: 0 additions & 262 deletions plugins-client/lib.ace/www/mode/mode-abap.js

This file was deleted.

216 changes: 0 additions & 216 deletions plugins-client/lib.ace/www/mode/mode-actionscript.js

This file was deleted.

117 changes: 0 additions & 117 deletions plugins-client/lib.ace/www/mode/mode-ada.js

This file was deleted.

Loading

0 comments on commit 9785b67

Please sign in to comment.