-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
146 changed files
with
6,673 additions
and
2,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,7 @@ module.exports = { | |
"**/dist/**/*", | ||
"**/__tests__/**/*", | ||
], | ||
"rules": { | ||
"no-console": "warn" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { startProcess } from '@boilerplate/generic' | ||
/* eslint-disable no-console */ | ||
|
||
startProcess().catch(console.error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// boilerplate | ||
export async function startProcess(): Promise<void> { | ||
// eslint-disable-next-line no-console | ||
console.log('hello world!') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
log.log | ||
deploy/* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "@appcontainer-node/app", | ||
"version": "1.0.0", | ||
"description": "AppContainer-Node.js", | ||
"private": true, | ||
"scripts": { | ||
"build": "rimraf dist && yarn build:main", | ||
"build:main": "tsc -p tsconfig.json", | ||
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.js appContainer-node.exe && node ../../../scripts/copy-natives.js win32-x64", | ||
"__test": "jest", | ||
"start": "node dist/index.js", | ||
"precommit": "lint-staged" | ||
}, | ||
"devDependencies": { | ||
"nexe": "^3.3.7", | ||
"lint-staged": "^7.2.0" | ||
}, | ||
"dependencies": { | ||
"@appcontainer-node/generic": "*" | ||
}, | ||
"peerDependencies": { | ||
"@sofie-automation/blueprints-integration": "*" | ||
}, | ||
"prettier": "@sofie-automation/code-standard-preset/.prettierrc.json", | ||
"engines": { | ||
"node": ">=12.20.0" | ||
}, | ||
"lint-staged": { | ||
"*.{js,css,json,md,scss}": [ | ||
"prettier" | ||
], | ||
"*.{ts,tsx}": [ | ||
"eslint" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
describe('tmp', () => { | ||
test('tmp', () => { | ||
// Note: To enable tests in this package, ensure that the "test" script is present in package.json | ||
expect(1).toEqual(1) | ||
}) | ||
}) | ||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { startProcess } from '@appcontainer-node/generic' | ||
/* eslint-disable no-console */ | ||
|
||
console.log('process started') // This is a message all Sofie processes log upon startup | ||
startProcess().catch(console.error) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const base = require('../../../../jest.config.base') | ||
const packageJson = require('./package') | ||
|
||
module.exports = { | ||
...base, | ||
name: packageJson.name, | ||
displayName: packageJson.name, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "@appcontainer-node/generic", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "rimraf dist && yarn build:main", | ||
"build:main": "tsc -p tsconfig.json", | ||
"__test": "jest", | ||
"precommit": "lint-staged" | ||
}, | ||
"peerDependencies": { | ||
"@sofie-automation/blueprints-integration": "*" | ||
}, | ||
"dependencies": { | ||
"@shared/api": "*", | ||
"@shared/worker": "*" | ||
}, | ||
"devDependencies": { | ||
"lint-staged": "^7.2.0" | ||
}, | ||
"prettier": "@sofie-automation/code-standard-preset/.prettierrc.json", | ||
"engines": { | ||
"node": ">=12.20.0" | ||
}, | ||
"lint-staged": { | ||
"*.{js,css,json,md,scss}": [ | ||
"prettier" | ||
], | ||
"*.{ts,tsx}": [ | ||
"eslint" | ||
] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
apps/appcontainer-node/packages/generic/src/__tests__/temp.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
describe('Temp', () => { | ||
// This is just a placeholder, to be replaced with real tests later on | ||
test('basic math', () => { | ||
expect(1 + 1).toEqual(2) | ||
}) | ||
}) |
Oops, something went wrong.