Commit 67df2a5c authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

ts: prépare la publication sur npm.

parent eca937e8
......@@ -10,6 +10,7 @@ stages:
- vendor
- test
- test-generated
- publish
variables:
PHP_VERSION: '7.1'
......@@ -47,3 +48,14 @@ test:compile-generated:
- npm install -g npm
- npm --version
- npm run-script test:compile-generated
npm:publish:
extends: .nodejs
stage: publish
only:
refs:
- tags
before_script:
- npm config set '//registry.npmjs.org/:_authToken' "$NPM_AUTH_TOKEN"
script:
- npm publish --access=public .
/src/
/tests/
/vendor/
/node_modules/
/output/
/.*
/php*
/composer*
{
"name": "irstea-ng-model",
"version": "1.0.0",
"description": "Runtime library for the composer package irstea/ng-model-generator-bundle.",
"name": "@devatscience/ng-model-runtime",
"version": "3.0.0",
"description": "Runtime library for models generated with the Composer package irstea/ng-model-generator-bundle.",
"author": "INRAE - dev@science <dsi-devs-dpt-solapp@inrae.fr>",
"license": "LGPL-3.0-or-later",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**"
],
"keywords": [
"angular",
"api-platform",
"generator",
"models",
"rest",
"typescript"
],
"scripts": {
"prepare": "rm -rf dist/ && tsc -p tsconfig.lib.json",
"prepare": "rm -rf dist && tsc -p tsconfig.lib.json",
"lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix",
"test": "jest",
"test:lint": "eslint '{src,tests}/**/*.{js,ts}'",
......@@ -13,15 +26,8 @@
},
"repository": {
"type": "git",
"url": "git@gitlab-ssh.irstea.fr:pole-is/bundles/ng-model-generator-bundle.git"
"url": "https://gitlab.irstea.fr/pole-is/bundles/ng-model-generator-bundle.git"
},
"keywords": [
"angular",
"api-platform"
],
"author": "Irstea - pôle IS",
"license": "LGPL-3.0-or-later",
"private": true,
"engines": {
"node": "^10",
"npm": ">=7"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment