Skip to content

Commit

Permalink
Ensure browser build scripts are consistent between engines
Browse files Browse the repository at this point in the history
  • Loading branch information
surilindur authored and rubensworks committed Oct 7, 2024
1 parent 9999778 commit 97e9416
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion engines/query-sparql-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"build": "yarn run build:ts",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"prepare": "comunica-compile-config config/config-default.json > engine-default.js && comunica-compile-config config/config-browser.json > engine-browser.js",
"browser": "yarn run prepare && \"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --mode production",
"browser": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production",
"browser-profile": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production --profile --json > stats.json && node \"../../node_modules/.bin/webpack-bundle-analyzer\" stats.json && rm stats.json",
"integration": "rdf-test-suite-ldf spec/sparql-engine.js https://comunica.github.io/manifest-ldf-tests/sparql-file/file-manifest.ttl -d 200000 -c ../../.rdf-test-suite-ldf-cache/"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions engines/query-sparql-rdfjs-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"build": "npm run build:ts",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"prepare": "comunica-compile-config config/config-default.json > engine-default.js",
"browser": "npm run prepare && \"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --mode production",
"browser-profile": "\"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --profile --mode production --json > stats.json && webpack-bundle-analyzer stats.json && rm stats.json",
"browser": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production",
"browser-profile": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production --profile --json > stats.json && node \"../../node_modules/.bin/webpack-bundle-analyzer\" stats.json && rm stats.json",
"integration": "rdf-test-suite-ldf spec/sparql-engine.js https://comunica.github.io/manifest-ldf-tests/sparql-rdfjs/rdfjs-manifest.ttl -d 200000 -c ../../.rdf-test-suite-ldf-cache/"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion engines/query-sparql-rdfjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"build": "yarn run build:ts",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"prepare": "comunica-compile-config config/config-default.json > engine-default.js",
"browser": "yarn run prepare && \"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --mode production",
"browser": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production",
"browser-profile": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production --profile --json > stats.json && node \"../../node_modules/.bin/webpack-bundle-analyzer\" stats.json && rm stats.json",
"integration": "rdf-test-suite-ldf spec/sparql-engine.js https://comunica.github.io/manifest-ldf-tests/sparql-rdfjs/rdfjs-manifest.ttl -d 200000 -c ../../.rdf-test-suite-ldf-cache/"
},
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions engines/query-sparql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"build": "yarn run build:ts",
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
"prepare": "comunica-compile-config config/config-default.json > engine-default.js",
"browser": "yarn run prepare && \"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --mode production",
"browser-profile": "\"../../node_modules/webpack/bin/webpack.js\" --config webpack.config.js --profile --mode production --json > stats.json && webpack-bundle-analyzer stats.json && rm stats.json",
"browser": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production",
"browser-profile": "node \"../../node_modules/webpack/bin/webpack.js\" --mode production --profile --json > stats.json && node \"../../node_modules/.bin/webpack-bundle-analyzer\" stats.json && rm stats.json",
"spec:base": "node ../../node_modules/rdf-test-suite/bin/Runner.js spec/sparql-engine.js http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl -c ../../.rdf-test-suite-cache/",
"spec:query": "yarn run spec:base -s http://www.w3.org/TR/sparql11-query/",
"spec:update": "yarn run spec:base -s http://www.w3.org/TR/sparql11-update/",
Expand Down Expand Up @@ -315,6 +315,7 @@
"process": "^0.11.10"
},
"browser": {
"./lib/index.js": "./lib/index-browser.js"
"./lib/index.js": "./lib/index-browser.js",
"./test/util": "./test/util-browser"
}
}

0 comments on commit 97e9416

Please sign in to comment.