ensuring we get JSON files and that entry point points correctly, it works finally

This commit is contained in:
softchris 2019-06-21 18:50:20 +01:00
Родитель 7dc3ff1c11
Коммит 3730dcf25f
3 изменённых файлов: 11 добавлений и 9 удалений

Просмотреть файл

@ -2,13 +2,13 @@
"$schema": "@angular-devkit/architect/src/builders-schema.json",
"builders": {
"deploy": {
"implementation": "./src/builders/deploy.builder",
"schema": "./src/builders/deploy.schema.json",
"implementation": "./out/builders/deploy.builder",
"schema": "./out/builders/deploy.schema.json",
"description": "Deploy to Azure builder"
},
"logout": {
"implementation": "./src/builders/logout.builder",
"schema": "./src/builders/logout.schema.json",
"implementation": "./out/builders/logout.builder",
"schema": "./out/builders/logout.schema.json",
"description": "Logout from Azure builder"
}
}

Просмотреть файл

@ -3,8 +3,8 @@
"schematics": {
"ng-add": {
"description": "Adds Angular Deploy Azure to the application without affecting any templates",
"factory": "./src/ng-add/index#ngAdd",
"schema": "./src/ng-add/schema.json",
"factory": "./out/ng-add/index#ngAdd",
"schema": "./out/ng-add/schema.json",
"aliases": ["install"]
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure/ng-deploy",
"version": "0.1.0-beta.3",
"version": "0.1.0-beta.4",
"main": "out/ng-add/index.js",
"files": [
"out/",
@ -9,10 +9,12 @@
],
"description": "@azure/ng-deploy - Deploy Angular apps to Azure using the Angular CLI",
"scripts": {
"build": "tsc -p tsconfig.json",
"build": "tsc -p tsconfig.json && npm run copy:builders:json && npm run copy:ngadd:json",
"start": "npm run build:watch",
"build:watch": "npm run build -- -w",
"test:jest": "jest --watch"
"test:jest": "jest --watch",
"copy:builders:json": "cp ./src/builders/*.json ./out/builders",
"copy:ngadd:json": "cp ./src/ng-add/*.json ./out/ng-add"
},
"keywords": [
"schematics"