Skip to content

Commit

Permalink
chore: refacotor, fix validation, add internal json
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayden Naydenov committed Nov 10, 2023
1 parent 962816c commit 2582ea8
Show file tree
Hide file tree
Showing 9 changed files with 1,398 additions and 1,627 deletions.
2 changes: 1 addition & 1 deletion packages/base/package-scripts.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const scripts = {
generateAPI: {
default: "nps generateAPI.prepare generateAPI.preprocess generateAPI.jsdoc generateAPI.cleanup",
generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs"`,
validateCEM: `ajv validate -s ${LIB}/cem/schema.json -d dist/custom-elements.json --allow-union-types --all-errors`,
validateCEM: `node "${LIB}/cem/validate.js"`,
prepare: `copy-and-watch "dist/**/*.js" jsdoc-dist/`,
preprocess: `node "${preprocessJSDocScript}" jsdoc-dist/`,
jsdoc: `jsdoc -c "${LIB}/jsdoc/configTypescript.json"`,
Expand Down
1 change: 1 addition & 0 deletions packages/tools/components-package/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const overrides = tsMode ? [{
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"lines-between-class-members": "off",
}
}] : [];
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/components-package/nps.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const getScripts = (options) => {
generateAPI: {
default: "nps generateAPI.prepare generateAPI.preprocess generateAPI.jsdoc generateAPI.cleanup generateAPI.prepareManifest",
generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs"`,
validateCEM: `ajv validate -s ${LIB}/cem/schema.json -d dist/custom-elements.json --allow-union-types --all-errors`,
validateCEM: `node "${LIB}/cem/validate.js"`,
prepare: `node "${LIB}/copy-and-watch/index.js" --silent "dist/**/*.js" jsdoc-dist/`,
prepareManifest: `node "${LIB}/generate-custom-elements-manifest/index.js" dist dist`,
preprocess: `node "${preprocessJSDocScript}" jsdoc-dist/ src`,
Expand Down
Loading

0 comments on commit 2582ea8

Please sign in to comment.