fix: now publishes dependencies

This commit is contained in:
Giles 2020-08-19 21:01:46 +01:00
parent 987ad12fb5
commit ea0dac2704
8 changed files with 32 additions and 7 deletions

View File

@ -1,7 +1,7 @@
local build = import 'lib/build.libsonnet'; local build = import 'lib/build.libsonnet';
local images = import 'lib/images.libsonnet'; local images = import 'lib/images.libsonnet';
local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet'; local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet';
local compose = import 'node_modules/@sigyl/jsonnet-compose/compose.libsonnet'; local compose = import 'lib/node_modules/@sigyl/jsonnet-compose/compose.libsonnet';
local util = import 'lib/util.libsonnet'; local util = import 'lib/util.libsonnet';
function( function(

View File

@ -1,5 +1,5 @@
local images = import 'images.libsonnet'; local images = import 'images.libsonnet';
local environment = import '../node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet'; local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet';
function(secrets) function(secrets)
images.docker { images.docker {

9
lib/package.json Normal file
View File

@ -0,0 +1,9 @@
{
"private": true,
"name": "@sigyl/jsonnet-drone",
"description": "jsonnet to build and deploy with drone",
"dependencies": {
"@sigyl/jsonnet-compose": "^0.0.2",
"@sigyl/jsonnet-drone-environment": "0.0.5"
}
}

View File

@ -1,4 +1,4 @@
local environment = import '../node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet'; local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet';
{ {
ssh: { ssh: {
settings +: { settings +: {

View File

@ -1,5 +1,5 @@
local compose = import '../node_modules/@sigyl/jsonnet-compose/compose.libsonnet'; local compose = import 'node_modules/@sigyl/jsonnet-compose/compose.libsonnet';
local environment = import '../node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet'; local environment = import 'node_modules/@sigyl/jsonnet-drone-environment/environment.libsonnet';
{ {
printEnv(file, env): function(step) compose([ printEnv(file, env): function(step) compose([
environment.envSet(env), environment.envSet(env),

13
lib/yarn.lock Normal file
View File

@ -0,0 +1,13 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@sigyl/jsonnet-compose@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-compose/-/jsonnet-compose-0.0.2.tgz#8900a21e8cd8109929b6042703f8645aacb9bcda"
integrity sha512-wWS3CgPeNi/o1pcS6n/4pafxlMD0KC9/RKMZr/ySmzeGNRW++sPuKuxajYse2TNd47uNDdeUSnk4aEeEIKL0zA==
"@sigyl/jsonnet-drone-environment@0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone-environment/-/jsonnet-drone-environment-0.0.5.tgz#9ea85e08904777bd21a3e4b30b0b91461d0285ff"
integrity sha512-xVGmdMO1pOyozAWUbJm6mzKBgsLPJ+1hWnGCK3AxPkr7kkDh18hu30+TLzlcQtqq76s5jUfvJUztezsGj/mIcw==

1
npmignore Normal file
View File

@ -0,0 +1 @@
/node_modules

View File

@ -4,9 +4,11 @@
"version": "0.0.2", "version": "0.0.2",
"description": "jsonnet to build and deploy with drone", "description": "jsonnet to build and deploy with drone",
"scripts": { "scripts": {
"publish": "git push --follow-tags origin master && npm publish", "publish-npm": "git push --follow-tags origin master && npm publish",
"release": "standard-version", "release": "standard-version",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"install": "cd lib && yarn",
"prePublishOnly": "cd lib && yarn"
}, },
"repository": { "repository": {
"type": "git", "type": "git",