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: ...@@ -10,6 +10,7 @@ stages:
- vendor - vendor
- test - test
- test-generated - test-generated
- publish
variables: variables:
PHP_VERSION: '7.1' PHP_VERSION: '7.1'
...@@ -47,3 +48,14 @@ test:compile-generated: ...@@ -47,3 +48,14 @@ test:compile-generated:
- npm install -g npm - npm install -g npm
- npm --version - npm --version
- npm run-script test:compile-generated - 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", "name": "@devatscience/ng-model-runtime",
"version": "1.0.0", "version": "3.0.0",
"description": "Runtime library for the composer package irstea/ng-model-generator-bundle.", "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", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"files": [
"dist/**"
],
"keywords": [
"angular",
"api-platform",
"generator",
"models",
"rest",
"typescript"
],
"scripts": { "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", "lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix",
"test": "jest", "test": "jest",
"test:lint": "eslint '{src,tests}/**/*.{js,ts}'", "test:lint": "eslint '{src,tests}/**/*.{js,ts}'",
...@@ -13,15 +26,8 @@ ...@@ -13,15 +26,8 @@
}, },
"repository": { "repository": {
"type": "git", "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": { "engines": {
"node": "^10", "node": "^10",
"npm": ">=7" "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