2.0.2 • Published 7 years ago

csproj-integrity v2.0.2

Weekly downloads
41
License
MIT
Repository
github
Last release
7 years ago

csproj-integrity

Build Status dependencies Status


Node library for check the visual studio solution integrity parsing the csproj file.

You can use it with Grunt Plugin grunt-csproj-integrity

Install

    npm install csproj-integrity --save-dev

API

checkFiles

This task takes an array of path and check if all files are included in the .csproj file.

Arguments: string / array - the globby path of files to check.

Output JSON

{
    "status": [string] ["success", "error", "fail"],
    "message": [string],
    "data": [object]
}

In case of success the data is empty.

Usage example

const csproj = require('csproj-integrity');

csproj
.checkFiles(['Views/**/*.cshtml', 'Controllers/**/*.cs'])
.then(res => {
    let response = JSON.parse(res);

    // your code
})
.catch(err => {
    console.log(err.message);
});

checkIntegrity

This task check if all file included in the csproj file actually exist.

No arguments.

Output JSON

{
    "status": [string] ["success", "error", "fail"],
    "message": [string],
    "data": [object]
}

If case of success the data is all file founded in csproj file.

Usage example

const csproj = require('csproj-integrity');


csproj
.checkIntegrity()
.then(res => {
    let response = JSON.parse(res);

    // your code
})
.catch(err => {
    console.log(err.message);
});

TO DO

  • Unit test with TAPE
  • Check of duplicated
  • Gulp plugin
  • Rewrite using async / await
2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago