Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add npm publishing information #114

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## npm
/node_modules/
/npm-debug.log

## testing
/coverage/

# build
/.tsbuildinfo
12 changes: 12 additions & 0 deletions open-scd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,18 @@ export class OpenSCD extends Plugging(Editing(LitElement)) {
mwc-top-app-bar-fixed {
--mdc-theme-text-disabled-on-light: rgba(255, 255, 255, 0.38);
} /* hack to fix disabled icon buttons rendering black */

aside {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
overflow: hidden;
opacity: 0;
margin: 0;
padding: 0;
}
`;
}

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 29 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,36 @@
{
"name": "open-scd-core",
"version": "0.0.0",
"name": "@openscd/open-scd-core",
"version": "0.0.1-rc2.8",
"description": "The core editor component of open-scd, without any extensions pre-installed.",
"repository": {
"type": "git",
"url": "git+https://github.com/openscd/open-scd-core.git"
},
"keywords": [
"scl",
"xml",
"iec",
"61850",
"iec61850",
"scd",
"openscd"
],
"author": "OMICRON Electronics GmbH",
"contributors": [
"Christian Dinkel <christian.dinkel@omicronenergy.com>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/openscd/open-scd-core/issues"
},
"homepage": "https://github.com/openscd/open-scd-core#readme",
"packageManager": "npm@8.12.2",
"type": "module",
"browser": "./foundation.js",
"main": "./foundation.js",
"exports": {
".": "dist/foundation.js",
"/open-scd.js": "dist/open-scd.js"
".": "./foundation.js",
"./open-scd.js": "./open-scd.js"
},
"scripts": {
"start": "npm run build && concurrently -k -r \"tsc -b --watch --preserveWatchOutput\" \"wds\"",
Expand All @@ -16,7 +40,7 @@
"analyze": "cem analyze --litelement",
"build": "npm run extract && npm run localize && npm run compile",
"compile": "tsc -b && tsc foundation.ts --declaration --emitDeclarationOnly --outDir dist",
"doc": "npm run analyze -- --exclude dist && typedoc --out dist/doc foundation.ts",
"doc": "npm run analyze -- --exclude dist && typedoc --out doc foundation.ts",
"prepublish": "npm run lint && npm run build && npm run doc",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
Expand Down