This commit is contained in:
Cyrus Najmabadi 2019-06-28 11:46:19 -07:00
parent 997516a7b8
commit 7049a69189
10 changed files with 353 additions and 0 deletions

39
jsii/.jsii Normal file
View file

@ -0,0 +1,39 @@
{
"author": {
"name": "Pulumi",
"roles": [
"author"
]
},
"description": "Pulumi's Node.js SDK",
"homepage": "https://github.com/pulumi/pulumi#readme",
"jsiiVersion": "0.13.0 (build 8de3f42)",
"license": "Apache-2.0",
"name": "@pulumi/jsii",
"repository": {
"directory": "sdk/nodejs",
"type": "git",
"url": "git+https://github.com/pulumi/pulumi.git"
},
"schema": "jsii/0.10.0",
"targets": {
"dotnet": {
"namespace": "Acme.HelloNamespace",
"packageId": "Acme.HelloPackage"
},
"java": {
"maven": {
"artifactId": "hello-jsii",
"groupId": "com.acme.hello"
},
"package": "com.acme.hello"
},
"js": {
"npm": "@pulumi/jsii"
},
"sphinx": {}
},
"types": {},
"version": "0.0.1",
"fingerprint": "AvjjmUoQKd41wXgdMM/LwEvhfWUvyAdU1eCZaZKSgU0="
}

14
jsii/.npmignore Normal file
View file

@ -0,0 +1,14 @@
# Exclude typescript source and config
*.ts
tsconfig.json
# Include javascript files and typescript declarations
!*.js
!*.d.ts
# Exclude jsii outdir
dist
# Include .jsii
!.jsii

2
jsii/index.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
declare class Resource {
}

4
jsii/index.js Normal file
View file

@ -0,0 +1,4 @@
"use strict";
class Resource {
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsTUFBTSxRQUFRO0NBRWIiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBSZXNvdXJjZSB7XHJcblxyXG59Il19

3
jsii/index.ts Normal file
View file

@ -0,0 +1,3 @@
class Resource {
}

45
jsii/npm-debug.log Normal file
View file

@ -0,0 +1,45 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'package' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 verbose run-script [ 'prepackage', 'package', 'postpackage' ]
5 info lifecycle @pulumi/jsii@0.0.1~prepackage: @pulumi/jsii@0.0.1
6 silly lifecycle @pulumi/jsii@0.0.1~prepackage: no script for prepackage, continuing
7 info lifecycle @pulumi/jsii@0.0.1~package: @pulumi/jsii@0.0.1
8 verbose lifecycle @pulumi/jsii@0.0.1~package: unsafe-perm in lifecycle true
9 verbose lifecycle @pulumi/jsii@0.0.1~package: PATH: /usr/share/npm/bin/node-gyp-bin:/mnt/c/go/src/github.com/pulumi/pulumi/jsii/node_modules/.bin:/home/cyrusn/.local/bin:/home/cyrusn/go/src/github.com/grpc/grpc/third_party/protobuf/src:/home/cyrusn/go/src/github.com/grpc/grpc/bins/opt:/home/cyrusn/go/src/github.com/pulumi/pulumi/sdk/nodejs/bin::/opt/pulumi/bin:/home/cyrusn/go/bin:/usr/lib/go-1.9/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
10 verbose lifecycle @pulumi/jsii@0.0.1~package: CWD: /mnt/c/go/src/github.com/pulumi/pulumi/jsii
11 silly lifecycle @pulumi/jsii@0.0.1~package: Args: [ '-c', 'jsii-pacmak -v' ]
12 silly lifecycle @pulumi/jsii@0.0.1~package: Returned: code: 1 signal: null
13 info lifecycle @pulumi/jsii@0.0.1~package: Failed to exec package script
14 verbose stack Error: @pulumi/jsii@0.0.1 package: `jsii-pacmak -v`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at EventEmitter.emit (events.js:214:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at ChildProcess.emit (events.js:214:7)
14 verbose stack at maybeClose (internal/child_process.js:925:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid @pulumi/jsii@0.0.1
16 verbose cwd /mnt/c/go/src/github.com/pulumi/pulumi/jsii
17 error Linux 4.4.0-18362-Microsoft
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "package"
19 error node v8.10.0
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error @pulumi/jsii@0.0.1 package: `jsii-pacmak -v`
22 error Exit status 1
23 error Failed at the @pulumi/jsii@0.0.1 package script 'jsii-pacmak -v'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the @pulumi/jsii package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error jsii-pacmak -v
23 error You can get information on how to open an issue for this project with:
23 error npm bugs @pulumi/jsii
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls @pulumi/jsii
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

65
jsii/package.json Normal file
View file

@ -0,0 +1,65 @@
{
"name": "@pulumi/jsii",
"version": "0.0.1",
"description": "Pulumi's Node.js SDK",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/pulumi/pulumi.git",
"directory": "sdk/nodejs"
},
"author": {
"name": "Pulumi"
},
"main": "bin/index.js",
"types": "bin/index.d.ts",
"scripts": {
"build": "jsii",
"watch": "jsii -w",
"package": "jsii-pacmak -v"
},
"jsii": {
"outdir": "dist",
"targets": {
"java": {
"package": "com.acme.hello",
"maven": {
"groupId": "com.acme.hello",
"artifactId": "hello-jsii"
}
},
"dotnet": {
"namespace": "Acme.HelloNamespace",
"packageId": "Acme.HelloPackage"
},
"sphinx": {}
}
},
"dependencies": {},
"devDependencies": {
"@types/deasync": "^0.1.0",
"@types/minimist": "^1.2.0",
"@types/mocha": "^2.2.42",
"@types/node": "^10.12.7",
"@types/normalize-package-data": "^2.4.0",
"@types/read-package-tree": "5.2.0",
"@types/semver": "^5.5.0",
"istanbul": "^0.4.5",
"jsii": "^0.13.0",
"jsii-pacmak": "^0.13.0",
"mocha": "^3.5.0",
"node-gyp": "^3.6.2",
"tslint": "^5.11.0"
},
"pulumi": {
"comment": "Do not remove. Marks this as as a deployment-time-only package"
},
"engines": {
"node": ">=8.0.0"
},
"bugs": {
"url": "https://github.com/pulumi/pulumi/issues"
},
"homepage": "https://github.com/pulumi/pulumi#readme",
"keywords": []
}

36
jsii/tsconfig.json Normal file
View file

@ -0,0 +1,36 @@
{
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2016",
"es2017.object",
"es2017.string"
],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"stripInternal": true,
"target": "ES2018"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
],
"_generated_by_jsii_": "Generated by jsii - safe to delete, and ideally should be in .gitignore"
}

21
jsii/tsconfig.json.old Normal file
View file

@ -0,0 +1,21 @@
{
"compilerOptions": {
"outDir": "bin",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": false,
"stripInternal": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true
},
"files": [
"index.ts"
]
}

124
jsii/tslint.json Normal file
View file

@ -0,0 +1,124 @@
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"file-header": [
true,
"Copyright \\d{4}-\\d{4}, Pulumi Corporation."
],
"forin": true,
"indent": [
true,
"spaces"
],
"interface-name": false,
"jsdoc-format": false,
"label-position": true,
"member-access": false,
"member-ordering": [
true,
"static-before-instance",
"variables-before-functions"
],
"no-any": false,
"no-arg": true,
"no-bitwise": false,
"no-conditional-assignment": false,
"no-consecutive-blank-lines": false,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-inferrable-types": false,
"no-internal-module": true,
"no-parameter-properties": false,
"no-require-imports": false,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-keyword": true,
"no-var-requires": false,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"ordered-imports": true,
"prefer-const": true,
"quotemark": [
true,
"double",
"avoid-escape"
],
"radix": true,
"semicolon": true,
"switch-default": true,
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never"
}
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef": [
false,
"call-signature",
"parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"check-format",
"allow-leading-underscore",
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-module",
"check-separator",
"check-type"
]
}
}