Skip to content
Snippets Groups Projects
Commit f20a378c authored by Millicent Billette's avatar Millicent Billette
Browse files

export minified modules in gitlab-pages

parent dad8448c
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ pages:
script:
- npm run test:production
- mkdir public
- cp -rf generated/minified/* public/dist/
- mv generated/coverage public/
- mv generated/jscpd/html public/jscpd
- mv generated/maintainability public/
......
......@@ -2,7 +2,7 @@
"name": "g1lib",
"version": "3.0.2",
"description": "An ubiquitous static javascript toolbox lib for Ǧ1 / Duniter ecosystem with reliability in mind.",
"main": "all.min.mjs",
"main": "all.mjs",
"author": {
"name": "[1000i100] Millicent Billette",
"email": "git@1000i100.fr",
......
......@@ -6,15 +6,16 @@
"clean": "rm -rf generated*",
"build": "run-s build:**",
"build:mk:npm": "mkdirp generated/npm",
"build:mk:minfied": "mkdirp generated/minified",
"build:mk:vendors": "mkdirp generated/vendors",
"build:vendors": "node CI/build.js",
"build:npm:all": "rollup src/all.mjs --format esm --file generated/npm/all.mjs",
"build:npm:crypto": "rollup src/crypto.mjs --format esm --file generated/npm/crypto.mjs",
"build:npm:dictionaryBuilder": "rollup src/dictionary-builder.mjs --format esm --file generated/npm/dictionary-builder.mjs",
"packaging": "https://github.com/1000i100/latinize-to-ascii/blob/master/package.json",
"build:npm:min:all": "terser generated/npm/all.mjs -o generated/npm/all.min.mjs",
"build:npm:min:crypto": "terser generated/npm/crypto.mjs -o generated/npm/crypto.min.mjs",
"build:npm:min:dictionaryBuilder": "terser generated/npm/dictionary-builder.mjs -o generated/npm/dictionary-builder.min.mjs",
"build:npm:min:all": "terser generated/npm/all.mjs -o generated/minified/all.mjs",
"build:npm:min:crypto": "terser generated/npm/crypto.mjs -o generated/minified/crypto.mjs",
"build:npm:min:dictionaryBuilder": "terser generated/npm/dictionary-builder.mjs -o generated/minified/dictionary-builder.mjs",
"build:npm:cp": "cp npm/* generated/npm/",
"build:npm:cp:readme": "cp README* generated/npm/",
"test": "run-s test:dev",
......@@ -29,7 +30,8 @@
"test:production:complexity": "./node_modules/.bin/es6-plato -r -d generated/maintainability ./src/*",
"test:production:complexity:badgesAndThreshold": "node CI/plato-badges.js",
"test:production:test2npm": "cp src/*.test.mjs generated/npm/",
"test:production:runTests": "cd generated/npm/ && c8 ava",
"test:production:coverage": "cd generated/npm/ && c8 ava",
"test:production:testMinified": "cd generated/npm/ && cp -rf ../minified/* ./ && ava",
"test:production:clean": "rm -rf generated/npm/*.test.mjs generated/npm/node_modules"
},
"dependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment