Updating so that we can include git and npm ignore files. Rem lib (#29)
functions.
This commit is contained in:
Родитель
9d6be2b2f6
Коммит
92f8fb1070
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "windows-admin-center-cli",
|
||||
"version": "0.1.15",
|
||||
"version": "0.1.18",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
||||
"dest": "./dist/lib",
|
||||
"lib": {
|
||||
"entryFile": "src/public_api.ts"
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
export * from './main';
|
||||
export * from './polyfills';
|
|
@ -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"
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче