@gip-recia/evaluator
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "@gip-recia/evaluator", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Evaluator", | ||
@@ -34,5 +34,5 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@gip-recia/esup-publisher-webcomponents-utils": "^0.0.1", | ||
"@gip-recia/subject-infos": "^0.0.9", | ||
"@gip-recia/subject-search-button": "^0.0.11", | ||
"@gip-recia/esup-publisher-webcomponents-utils": "^0.0.2", | ||
"@gip-recia/subject-infos": "^0.0.10", | ||
"@gip-recia/subject-search-button": "^0.0.12", | ||
"lit": "^2.2.0" | ||
@@ -63,5 +63,6 @@ }, | ||
"rollup-plugin-summary": "^1.3.0", | ||
"rollup-plugin-terser": "^7.0.2" | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-visualizer": "^5.6.0" | ||
}, | ||
"customElements": "custom-elements.json" | ||
} |
@@ -37,10 +37,17 @@ # **Esup Evaluator et Edit-Evaluator** | ||
```html | ||
<script src="./path/to/evaluator.bundle.js"></script> | ||
<script src="./path/to/evaluator.bundle.min.js"></script> | ||
``` | ||
3. Ajout du composant dans l'application/composant : | ||
3. Ajout des composants sur une page HTML : | ||
```html | ||
<esup-evaluator .evaluator="..."> </esup-evaluator> | ||
<esup-edit-evaluator .evaluator="..."> </esup-edit-evaluator> | ||
```js | ||
const evaluator = document.createElement('esup-evaluator'); | ||
evaluator.evaluator = {...}; | ||
evaluator.config = {...}; | ||
document.body.appendChild(evaluator); | ||
const editEvaluator = document.createElement('esup-edit-evaluator'); | ||
editEvaluator.evaluator = {...}; | ||
editEvaluator.config = {...}; | ||
document.body.appendChild(editEvaluator); | ||
``` | ||
@@ -47,0 +54,0 @@ |
@@ -6,23 +6,54 @@ // Import rollup plugins | ||
import summary from 'rollup-plugin-summary' | ||
import { visualizer } from 'rollup-plugin-visualizer' | ||
export default { | ||
plugins: [ | ||
// Resolve bare module specifiers to relative paths | ||
resolve(), | ||
// Minify HTML template literals | ||
minifyHTML(), | ||
// Minify JS | ||
terser({ | ||
ecma: 2020 | ||
}), | ||
// Print bundle summary | ||
summary() | ||
], | ||
input: 'src/index.js', | ||
output: { | ||
file: 'dist/evaluator.bundle.js', | ||
name: 'esupEvaluator', | ||
format: 'umd' | ||
export default [ | ||
// Non-minified bundle | ||
{ | ||
plugins: [ | ||
// Resolve bare module specifiers to relative paths | ||
resolve(), | ||
// Print bundle summary | ||
summary() | ||
], | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
file: 'dist/evaluator.bundle.js', | ||
name: 'esupEvaluator', | ||
format: 'umd' | ||
} | ||
], | ||
preserveEntrySignatures: 'strict' | ||
}, | ||
preserveEntrySignatures: 'strict' | ||
} | ||
// Minified bundle | ||
{ | ||
plugins: [ | ||
// Resolve bare module specifiers to relative paths | ||
resolve(), | ||
// Minify HTML template literals | ||
minifyHTML(), | ||
// Minify JS | ||
terser({ | ||
ecma: 2020, | ||
format: { | ||
comments: false | ||
} | ||
}), | ||
// Print bundle summary | ||
summary(), | ||
// Visualize bundle size | ||
visualizer({ | ||
filename: 'dist/evaluator.bundle.min-stats.html' | ||
}) | ||
], | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
file: 'dist/evaluator.bundle.min.js', | ||
name: 'esupEvaluator', | ||
format: 'umd' | ||
} | ||
], | ||
preserveEntrySignatures: 'strict' | ||
} | ||
] |
import { css } from 'lit' | ||
export const bootstrapStyle = css` | ||
@charset "UTF-8"; | ||
/*! | ||
* Bootstrap v5.1.3 (https://getbootstrap.com/) | ||
* Copyright 2011-2021 The Bootstrap Authors | ||
* Copyright 2011-2021 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) | ||
*/ | ||
*, | ||
@@ -12,0 +5,0 @@ *::before, |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
507139
25
7245
176
24
1
+ Added@gip-recia/esup-publisher-webcomponents-utils@0.0.2(transitive)
+ Added@gip-recia/js-tree@0.0.11(transitive)
+ Added@gip-recia/subject-infos@0.0.10(transitive)
+ Added@gip-recia/subject-search-button@0.0.12(transitive)
- Removed@gip-recia/esup-publisher-webcomponents-utils@0.0.1(transitive)
- Removed@gip-recia/js-tree@0.0.10(transitive)
- Removed@gip-recia/subject-infos@0.0.9(transitive)
- Removed@gip-recia/subject-search-button@0.0.11(transitive)