Skip to content
This repository was archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Add an origami.json (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanmanning authored Dec 4, 2017
1 parent 715597f commit 219933e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions origami.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"description": "Origami component development tools.",
"origamiType": null,
"origamiVersion": 1,
"keywords": [],
"support": "https://github.com/Financial-Times/origami-build-tools/issues",
"supportStatus": "active",
"supportContact": {
"email": "[email protected]",
"slack": "financialtimes/ft-origami"
}
}
1 change: 1 addition & 0 deletions test/unit/fixtures/o-no-manifest/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
5 changes: 3 additions & 2 deletions test/unit/tasks/demo-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const demo = require('../../../lib/tasks/demo-build');

const obtPath = process.cwd();
const oTestPath = 'test/unit/fixtures/o-test';
const oNoManifestPath = path.resolve(obtPath, 'test/unit/fixtures/o-no-manifest');
const pathSuffix = '-demo';
const demoTestPath = path.resolve(obtPath, oTestPath + pathSuffix);

Expand All @@ -31,14 +32,14 @@ describe('Demo task', function () {

describe('Build demos', function () {
it('should fail if there is not a config file', function () {
process.chdir(obtPath);
process.chdir(oNoManifestPath);
fs.writeFileSync('bower.json', '{"name":"o-test"}', 'utf8');
return demo()
.then(() => {
throw new Error('promise resolved when it should have rejected');
}, function (err) {
expect(err.message).to.be(`Couldn\'t find demos config path, checked: ${path.join(process.cwd(),'origami.json')}`);
fs.unlinkSync(path.resolve(obtPath, 'bower.json'));
fs.unlinkSync(path.resolve(oNoManifestPath, 'bower.json'));
process.chdir(demoTestPath);
});
});
Expand Down

0 comments on commit 219933e

Please sign in to comment.