From ac1a2c3b15ec69e1750fc07c5b23e1e9171d3f6a Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Wed, 23 Dec 2020 18:37:35 +0100 Subject: Update frontend code Introduce webpack to bundle required dependencies instead of relying on global libraries. Those global libraries are deprecated and will be removed soon. I tried to change the existing code as little as possible. However, the diff is huge because I fixed the indentation (tabs and spaces were mixed). Additionally, I tried to keep package.json and webpack.common.js as minimal as possible and took some inspiration from other official nextcloud apps. Npm scripts: - Production build: `npm run build` - Development build: `npm run dev` - Build and watch for changes: `npm run watch` The build script should be run before pushing a release. The source files (inside src/), installed packages (inside node_modules/) and various js configs (webpack.*.js, package*.json and babel.config.json) can be omitted from a release. Webpack will output the generated code to js/. Signed-off-by: Richard Steinmetz --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore (limited to '.gitignore') diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..88ca803 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +js/ -- cgit v1.2.3