From 0705d321da6e7c49872e13edfe607bd23b4b2f11 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 23 Mar 2022 15:37:36 -0700 Subject: [PATCH] invert npmignore to include what we want (#4605) * invert npmignore to include what we want * remove line for no-longer-existent src/**/*.spec.js files from npmignore * cleanup npmignore comments * remove platform dirs from npmignore, they were removed from the repo * remove one more platform reference from npmignore * publish example/ and app.js, at least for now Co-authored-by: John Hill Co-authored-by: Shefali Joshi Co-authored-by: Jamie V --- .npmignore | 61 ++++++++++++++++++++---------------------------------- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/.npmignore b/.npmignore index 13b8b511e2..4dc1a00188 100644 --- a/.npmignore +++ b/.npmignore @@ -1,44 +1,27 @@ -*.scssc -*.zip -*.gzip -*.tgz -*.DS_Store +# Ignore everything first (will not ignore special files like LICENSE.md, +# README.md, and package.json)... +/**/* -*.sass-cache -*COMPILE.css +# ...but include these folders... +!/dist/**/* +!/src/**/* -# Intellij project configuration files -*.idea -*.iml +# We might be able to remove this if it is not imported by any project directly. +# https://github.com/nasa/openmct/issues/4992 +!/example/**/* -# External dependencies +# We will remove this in https://github.com/nasa/openmct/issues/4922 +!/app.js -# Build output -target +# ...except for these files in the above folders. +/src/**/*Spec.js +/src/**/test/ +# TODO move test utils into test/ folders +/src/utils/testing.js -# Mac OS X Finder -.DS_Store - -# Closed source libraries -closed-lib - -# Node, Bower dependencies -node_modules -bower_components - -Procfile - -# Protractor logs -protractor/logs - -# npm-debug log -npm-debug.log - -# Infra and tests -.circleci -.github -e2e -codecov.yml -lighthouserc.yml -*.Spec.js -karma.conf.js +# Also include these special top-level files. +!copyright-notice.js +!copyright-notice.html +!index.html +!openmct.js +!SECURITY.md \ No newline at end of file