cli package embryo to get started

This commit is contained in:
Fredrik Adelöw
2020-02-19 11:36:39 +01:00
parent 29b4e4f9a3
commit a4a07d03ed
5 changed files with 33 additions and 0 deletions
+2
View File
@@ -1,2 +1,4 @@
secrets.env
.DS_Store
cjs/
esm/
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
const hello = require('./src/index.ts');
console.log('output:', hello());
+19
View File
@@ -0,0 +1,19 @@
{
"name": "@spotify-backstage/cli",
"version": "1.0.0",
"main": "src/index.ts",
"main:src": "src/index.ts",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "web-scripts build",
"lint": "web-scripts lint",
"test": "web-scripts test"
},
"devDependencies": {
"@spotify/web-scripts": "^6.0.0"
},
"bin": {
"backstage-cli": "cli.js"
}
}
+5
View File
@@ -0,0 +1,5 @@
describe('dummy', () => {
it('dummy', () => {
expect(1).toBe(1);
});
});
+3
View File
@@ -0,0 +1,3 @@
const hello = () => 'Hello World';
module.exports = hello;