Skip to content

Commit 6289982

Browse files
authored
Merge pull request #2 from seebees/package-setup
Package Setup
2 parents d7242b0 + e1a6ed8 commit 6289982

7 files changed

+140
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/node_modules/
2+
/build/
3+
.vscode
4+
.DS_Store
5+
/lerna-debug.log
6+
package-lock.json
7+
/.nyc_output
8+
/coverage

lerna.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"lerna": "2.11.0",
3+
"packages": [
4+
"modules/*"
5+
],
6+
"version": "independent",
7+
"command": {
8+
"bootstrap": {
9+
"nohoist": [
10+
"@types/*",
11+
"typedoc",
12+
"karma*"
13+
]
14+
}
15+
},
16+
"hoist": true,
17+
"nohoist": [
18+
"@types/*",
19+
"typedoc"
20+
]
21+
}

modules/tsconfig.module.settings.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./tsconfig.settings",
3+
"compilerOptions": {
4+
"target": "esnext",
5+
"outDir": "build/module",
6+
"module": "esnext",
7+
"allowSyntheticDefaultImports": true
8+
},
9+
"exclude": [
10+
"node_modules/**"
11+
]
12+
}

modules/tsconfig.settings.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"moduleResolution": "node",
5+
"module": "commonjs",
6+
"declaration": true,
7+
"declarationMap": true,
8+
"inlineSourceMap": true,
9+
"esModuleInterop": true,
10+
11+
"strict": true,
12+
13+
"noUnusedLocals": true,
14+
"noUnusedParameters": true,
15+
"noImplicitReturns": true,
16+
"noFallthroughCasesInSwitch": true,
17+
18+
"traceResolution": false,
19+
"listEmittedFiles": false,
20+
"listFiles": false,
21+
"pretty": true,
22+
23+
"lib": ["es2017", "dom"],
24+
25+
"typeRoots": [
26+
"node_modules/@types"
27+
],
28+
"composite": true
29+
}
30+
}

package.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "aws-encryption-sdk-browser",
3+
"private": true,
4+
"version": "0.0.1",
5+
"description": "AWS Encryption SDK for browsers",
6+
"main": "index.js",
7+
"scripts": {
8+
"bootstrap": "lerna bootstrap",
9+
"clean": "npm run clear-build-cache && lerna clean",
10+
"clear-build-cache": "rimraf ./modules/*/build/*",
11+
"build": "tsc -b",
12+
"pretest": "npm build",
13+
"test": "mocha --require ts-node/register modules/**/test/*test.ts"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "[email protected]:awslabs/aws-encryption-sdk-javascript.git"
18+
},
19+
"author": "[email protected]",
20+
"license": "UNLICENSED",
21+
"dependencies": {
22+
"chai": "^4.1.2",
23+
"lerna": "^2.11.0",
24+
"mocha": "^5.2.0",
25+
"rimraf": "^2.6.2",
26+
"ts-node": "^7.0.1",
27+
"tslib": "^1.9.3",
28+
"typescript": "^3.2.0"
29+
},
30+
"workspaces": [
31+
"modules/*"
32+
]
33+
}

tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files": [],
3+
"references": [
4+
5+
]
6+
}

wallaby.conf.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
const compilerOptions = Object.assign(
3+
{"esModuleInterop": true}
4+
)
5+
6+
module.exports = function (wallaby) {
7+
return {
8+
files: [
9+
'modules/**/src/**/*.ts',
10+
'modules/**/fixtures.ts',
11+
'!modules/**/test/**/*.test.ts',
12+
'!modules/**/node_modules/**',
13+
'!modules/**/build/**',
14+
],
15+
tests: [
16+
'modules/**/test/**/*test.ts',
17+
'!modules/**/node_modules/**',
18+
'!modules/**/build/**',
19+
],
20+
filesWithNoCoverageCalculated: [
21+
'modules/**/src/index.ts'
22+
],
23+
testFramework: 'mocha',
24+
compilers: {
25+
'**/*.ts': wallaby.compilers.typeScript(compilerOptions),
26+
},
27+
env: { type: 'node' },
28+
debug: true
29+
}
30+
}

0 commit comments

Comments
 (0)