diff --git a/.gitignore b/.gitignore index 3afe5da..f47fd20 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,9 @@ jspm_packages .node_repl_history # We run on TypeScript and PEG.js -*.js \ No newline at end of file +*.js + +*.tgz +package +package-lock.json +.DS_Store \ No newline at end of file diff --git a/.npmignore b/.npmignore index 5cccb00..f6e528e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,9 @@ +*.pegjs *.ts +*.tgz !*.d.ts tsconfig.json -.vscode \ No newline at end of file +.vscode +tests +package +package-lock.json diff --git a/.travis.yml b/.travis.yml index 2197832..85d1b93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ language: node_js +os: osx node_js: - "node" diff --git a/package.json b/package.json index a9435a2..cc04e1a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "API to find an iOS mobile provision", "main": "index.js", "scripts": { - "prepublish": "tsc && pegjs parsers/security-find-identity.pegjs && pegjs parsers/security-find-certificate.pegjs", + "prepare": "tsc && pegjs parsers/security-find-identity.pegjs && pegjs parsers/security-find-certificate.pegjs", "test": "tsc && mocha", "watch": "mocha-typescript-watch" }, diff --git a/test.ts b/test.ts index 2c7343d..4146d37 100644 --- a/test.ts +++ b/test.ts @@ -29,7 +29,7 @@ function print(result: provision.Result) { } // These run end to end tests and run security tool and depend on the keychain, they will run only on mac. Consider running them during development. -describe.skip("api", () => { +describe("api", () => { describe("certificates", () => { it("list all", () => { const result = cert.read(); @@ -219,4 +219,5 @@ describe("provision", function() { // This test need to be added in future. it("can find profile by app-id, device udid and certificate"); it("unique filters duplicates"); + it("can parse a provisioning profile file"); });