diff --git a/package-lock.json b/package-lock.json index c469115..cdcded4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "windows-admin-center-cli", - "version": "0.1.15", + "version": "0.1.18", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 19c20e9..2ba7d32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "windows-admin-center-cli", - "version": "0.1.15", + "version": "0.1.18", "description": "Cli for creating a new Windows Admin Center extension.", "main": "index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 1108720..ed8d03e 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ const manifestUrlSearch = '{!manifest-url}' * --tool - name of the tool / extension that is being built. **/ const cwd = process.cwd(); +const ignoresPath = __dirname.substring(0, __dirname.length - 3) + 'templates\\ignores'; const templatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\windows-admin-center-extension-template'; const upgradedTemplatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\upgrade\\windows-admin-center-extension-template'; const manifestTemplatePath = __dirname.substring(0, __dirname.length - 3) + 'templates\\manifest'; @@ -56,6 +57,8 @@ function create(type, company, primary, secondary, version) { fse.copySync(upgradedTemplatePath, productPath); } + fse.copySync(ignoresPath, productPath); + if (type === 'tool') { // make tool manifest fse.copyFileSync(manifestTemplatePath + '\\tool-manifest.json', productPath + '\\src\\manifest.json'); diff --git a/templates/upgrade/windows-admin-center-extension-template/.gitignore b/templates/ignores/.gitignore similarity index 100% rename from templates/upgrade/windows-admin-center-extension-template/.gitignore rename to templates/ignores/.gitignore diff --git a/templates/upgrade/windows-admin-center-extension-template/.npmignore b/templates/ignores/.npmignore similarity index 100% rename from templates/upgrade/windows-admin-center-extension-template/.npmignore rename to templates/ignores/.npmignore diff --git a/templates/upgrade/windows-admin-center-extension-template/ng-package.json b/templates/upgrade/windows-admin-center-extension-template/ng-package.json deleted file mode 100644 index bdd2b26..0000000 --- a/templates/upgrade/windows-admin-center-extension-template/ng-package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "./node_modules/ng-packagr/ng-package.schema.json", - "dest": "./dist/lib", - "lib": { - "entryFile": "src/public_api.ts" - } -} \ No newline at end of file diff --git a/templates/upgrade/windows-admin-center-extension-template/src/public_api.ts b/templates/upgrade/windows-admin-center-extension-template/src/public_api.ts deleted file mode 100644 index 0d70e45..0000000 --- a/templates/upgrade/windows-admin-center-extension-template/src/public_api.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './main'; -export * from './polyfills'; diff --git a/templates/upgrade/windows-admin-center-extension-template/src/tsconfig.lib.json b/templates/upgrade/windows-admin-center-extension-template/src/tsconfig.lib.json deleted file mode 100644 index d0915fd..0000000 --- a/templates/upgrade/windows-admin-center-extension-template/src/tsconfig.lib.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/lib", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2018" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "enableResourceInlining": true - }, - "exclude": [ - "src/app", - "src/test.ts", - "**/*.test.ts", - "**/*.spec.ts" - ] -}