wip: serve frontend with parcel on a separate port for dev
Showing
.babelrc
deleted
100644 → 0
.proxyrc.js
0 → 100644
dist/dev/index.html
0 → 100644
dist/js/jquery.js
0 → 100644
This diff is collapsed.
This diff is collapsed.
| ... | @@ -2,10 +2,11 @@ | ... | @@ -2,10 +2,11 @@ |
| "name": "Gargantext", | "name": "Gargantext", | ||
| "version": "0.0.7.3.7", | "version": "0.0.7.3.7", | ||
| "scripts": { | "scripts": { | ||
| "build": "spago build", | "build": "spago bundle --module Main --outfile dist/bundle.min.js --minify --source-maps", | ||
| "bundle": "spago bundle --module Main --outfile dist/bundle.min.js --minify --source-maps", | "watch": "pscid -O dist/bundle.min.js -I src", | ||
| "css": "$npm_execpath run css-themes", | "bundle-dev": "spago bundle --module Main --outfile dist/index.js", | ||
| "css-themes": "$npm_execpath run css-default-theme && $npm_execpath run css-dark-theme && $npm_execpath run css-darkster-theme && $npm_execpath run css-greyson-theme && $npm_execpath run css-herbie-theme && $npm_execpath run css-monotony-theme", | "css": "$npm_execpath css-themes", | ||
| "css-themes": "$npm_execpath css-default-theme && $npm_execpath css-dark-theme && $npm_execpath css-darkster-theme && $npm_execpath css-greyson-theme && $npm_execpath css-herbie-theme && $npm_execpath css-monotony-theme", | |||
| "css-default-theme": "sass src/sass/themes/default.scss:dist/styles/bootstrap-default.css", | "css-default-theme": "sass src/sass/themes/default.scss:dist/styles/bootstrap-default.css", | ||
| "css-dark-theme": "cp node_modules/bootstrap-dark/src/bootstrap-dark.css dist/styles/bootstrap-dark.css", | "css-dark-theme": "cp node_modules/bootstrap-dark/src/bootstrap-dark.css dist/styles/bootstrap-dark.css", | ||
| "css-darkster-theme": "sass src/sass/themes/darkster.scss:dist/styles/bootstrap-darkster.css", | "css-darkster-theme": "sass src/sass/themes/darkster.scss:dist/styles/bootstrap-darkster.css", | ||
| ... | @@ -16,7 +17,12 @@ | ... | @@ -16,7 +17,12 @@ |
| "repl": "spago repl", | "repl": "spago repl", | ||
| "server": "serve -l 8008 dist", | "server": "serve -l 8008 dist", | ||
| "server-ssl": "ssl-serve --ssl dist", | "server-ssl": "ssl-serve --ssl dist", | ||
| "test": "spago test" | "test": "spago test", | ||
| "serve": "npx parcel serve --no-hmr --dist-dir ./dist/dev/bundle ./dist/dev/index.html" | |||
| }, | |||
| "alias": { | |||
| "$": "jquery", | |||
| "jQuery": "jquery" | |||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "@fontsource/crete-round": "~5.0.12", | "@fontsource/crete-round": "~5.0.12", | ||
| ... | @@ -47,6 +53,7 @@ | ... | @@ -47,6 +53,7 @@ |
| "graphql": "~15.6.1", | "graphql": "~15.6.1", | ||
| "graphql-ws": "~5.5.0", | "graphql-ws": "~5.5.0", | ||
| "highlightjs": "~9.16.2", | "highlightjs": "~9.16.2", | ||
| "http-proxy-middleware": "^3.0.3", | |||
| "immer": "~9.0.5", | "immer": "~9.0.5", | ||
| "isomorphic-unfetch": "~3.1.0", | "isomorphic-unfetch": "~3.1.0", | ||
| "markdown-it": "~13.0.1", | "markdown-it": "~13.0.1", | ||
| ... | @@ -70,6 +77,7 @@ | ... | @@ -70,6 +77,7 @@ |
| "@getgauge/cli": "~1.4.0", | "@getgauge/cli": "~1.4.0", | ||
| "esbuild": "~0.21.1", | "esbuild": "~0.21.1", | ||
| "parcel": "~2.8.2", | "parcel": "~2.8.2", | ||
| "process": "^0.11.10", | |||
| "react-testing-library": "~8.0.1", | "react-testing-library": "~8.0.1", | ||
| "sass": "~1.77.0", | "sass": "~1.77.0", | ||
| "serve": "~14.2.3", | "serve": "~14.2.3", | ||
| ... | ... |
Please register or sign in to comment