mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-570] Script for Pushing to Registry (#1875)
* change prepublish to build only add .npmrc in the gitignore and npmignore clean .npmrc during the clean task change registry during publish with npmrc file add rimraf install in npm publish * add option to link an alfresco-js-api from github * npm build on develop branch will use the alfresco-js-api from develop * modify script after review add -gitjsapi to starts.sh to change jsapi pointing add -vjsapi to starts.sh to change jsapi pointing * start dist demo shell script option
This commit is contained in:
committed by
Eugenio Romano
parent
1fadfa8166
commit
72704cad57
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ ng2-components/ng2-alfresco-userinfo-old/src/services/ecm-user.service.spec.ts
|
||||
src/environments/
|
||||
/ng2-components/ng2-example-webpack/
|
||||
/ng2-components/config/coverage/
|
||||
*.npmrc
|
||||
|
@@ -15,7 +15,11 @@ env:
|
||||
|
||||
script:
|
||||
- if ([ "$MODULE" == "ng2-components" ]); then
|
||||
if ([ "$TRAVIS_BRANCH" = "master" ]); then
|
||||
(./scripts/npm-build-all.sh -t || exit 1;);
|
||||
else
|
||||
(./scripts/npm-build-all.sh -t -gitjsapi development|| exit 1;);
|
||||
fi
|
||||
fi
|
||||
- if ([ "$MODULE" == "ng2-demo-shell" ]); then
|
||||
(cd demo-shell-ng2 && npm install && npm run test || exit 1;);
|
||||
|
@@ -17,8 +17,13 @@ install:
|
||||
# Get the latest stable version of Node.js or io.js
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
# install module
|
||||
- IF %COMPONENT_NAME% EQU ng2-components (cd scripts && sh npm-build-all.sh -t)
|
||||
- IF %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1)
|
||||
- if %COMPONENT_NAME% EQU ng2-components (
|
||||
if %APPVEYOR_REPO_BRANCH EQU master
|
||||
(cd scripts && sh npm-build-all.sh -t || exit 1)
|
||||
else
|
||||
(cd scripts && sh npm-build-all.sh -t -gitjsapi development|| exit 1)
|
||||
)
|
||||
- if %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1)
|
||||
|
||||
# Don't actually build.
|
||||
build: off
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-analytics.js",
|
||||
"contributors": [
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-diagrams.js",
|
||||
"contributors": [
|
||||
|
1
ng2-components/ng2-activiti-form/.gitignore
vendored
1
ng2-components/ng2-activiti-form/.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-form.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-processlist.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-tasklist.js",
|
||||
"repository": {
|
||||
|
1
ng2-components/ng2-alfresco-core/.gitignore
vendored
1
ng2-components/ng2-alfresco-core/.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-core.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-datatable.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-documentlist.js",
|
||||
"repository": {
|
||||
|
1
ng2-components/ng2-alfresco-login/.gitignore
vendored
1
ng2-components/ng2-alfresco-login/.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-login.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-search.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-social.js",
|
||||
"repository": {
|
||||
|
1
ng2-components/ng2-alfresco-tag/.gitignore
vendored
1
ng2-components/ng2-alfresco-tag/.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-tag.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-upload.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-userinfo.js",
|
||||
"repository": {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,7 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
demo/localTestFile.pdf
|
||||
|
||||
coverage/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,7 +4,8 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
|
@@ -1,6 +1,7 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
.idea
|
||||
.npmrc
|
||||
typings
|
||||
coverage
|
||||
dist
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
.npmrc
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
|
@@ -11,6 +11,8 @@ require('zone.js/dist/jasmine-patch');
|
||||
require('zone.js/dist/async-test');
|
||||
require('zone.js/dist/fake-async-test');
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||
|
||||
var appContext = require.context('./src', true, /\.spec\.ts/);
|
||||
appContext.keys().forEach(appContext);
|
||||
|
||||
|
@@ -4,12 +4,13 @@
|
||||
"version": "1.4.0",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings bundles coverage",
|
||||
"clean": "rimraf dist node_modules typings bundles coverage .npmrc",
|
||||
"rimraf": "rimraf",
|
||||
"build": "webpack --config webpack.build.js --progress --profile --bail",
|
||||
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run --component",
|
||||
"test-browser": "karma start karma.conf.js --reporters kjhtml --component",
|
||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||
"prepublish" : "npm run test"
|
||||
"prepublish" : "npm run build"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-webscript.js",
|
||||
"repository": {
|
||||
|
@@ -38,12 +38,43 @@ feel for what's available.
|
||||
|
||||
```sh
|
||||
./start.sh -update or -u
|
||||
``
|
||||
|
||||
* Install a different version of the ng2-components specified in the package.json his option is not compatible with -d
|
||||
|
||||
```sh
|
||||
./start.sh -version or -v COMPONENTS_VERSION
|
||||
|
||||
./start.sh -v 1.4.0
|
||||
```
|
||||
|
||||
* Start the demo in development mode building the relative folder ng2-components with all the components and pointing to this component instead to the node_modules one
|
||||
|
||||
```sh
|
||||
./start.sh -develop -d
|
||||
./start.sh -develop or -d
|
||||
```
|
||||
|
||||
* Start the demo start the demo shell in dist mode
|
||||
|
||||
```sh
|
||||
./start.sh -dist
|
||||
```
|
||||
|
||||
* If you want start the demo shell using an alfresco-js-api referenced by commit-ish version of the JS-API
|
||||
|
||||
```sh
|
||||
./start.sh -gitjsapi commit-ish
|
||||
|
||||
./start.sh -gitjsapi development
|
||||
|
||||
./start.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
|
||||
```
|
||||
|
||||
* If you want start the alfresco-js-api against a commit-ish version of the JS-API
|
||||
|
||||
```sh
|
||||
./start.sh -vjsapi 1.4.0
|
||||
|
||||
```
|
||||
|
||||
* If you want to build all your local component:
|
||||
@@ -55,13 +86,23 @@ feel for what's available.
|
||||
* If you want to build all your local component and run the test:
|
||||
|
||||
```sh
|
||||
./npm-buid-alll.sh -t or -test
|
||||
./npm-buid-all.sh -t or -test
|
||||
```
|
||||
|
||||
* If you want clean the ng2-components folder node_modules before to build
|
||||
|
||||
```sh
|
||||
./npm-buid-alll.sh -c
|
||||
./npm-buid-all.sh -c
|
||||
```*
|
||||
|
||||
If you want build to build all the components against a commit-ish version of the JS-API
|
||||
|
||||
```sh
|
||||
./npm-buid-all.sh -gitjsapi commit-ish
|
||||
|
||||
./npm-build-all.sh -gitjsapi development
|
||||
|
||||
./npm-build-all.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
|
||||
```
|
||||
|
||||
* If you want clean all your local component and the demo shell:
|
||||
|
@@ -3,6 +3,8 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
eval RUN_TEST=false
|
||||
eval EXEC_CLEAN=false
|
||||
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
|
||||
eval GIT_ISH=""
|
||||
|
||||
eval projects=( "ng2-alfresco-core"
|
||||
"ng2-alfresco-datatable"
|
||||
@@ -21,11 +23,13 @@ eval projects=( "ng2-alfresco-core"
|
||||
"ng2-alfresco-viewer"
|
||||
"ng2-alfresco-webscript"
|
||||
"ng2-alfresco-userinfo" )
|
||||
|
||||
show_help() {
|
||||
echo "Usage: npm-build-all.sh"
|
||||
echo ""
|
||||
echo "-t or -test build all your local component and run also the test on them"
|
||||
echo "-c or -clean the ndode_moduels folder before to start the build"
|
||||
echo "-c or -clean the node_modules folder before to start the build"
|
||||
echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
|
||||
}
|
||||
|
||||
enable_test(){
|
||||
@@ -37,6 +41,11 @@ test_project() {
|
||||
npm run test -- --component $1 || exit 1
|
||||
}
|
||||
|
||||
enable_js_api_git_link() {
|
||||
GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
|
||||
EXEC_GIT_NPM_INSTALL_JSAPI=true
|
||||
}
|
||||
|
||||
clean() {
|
||||
EXEC_CLEAN=true
|
||||
}
|
||||
@@ -45,6 +54,8 @@ while [[ $1 == -* ]]; do
|
||||
case "$1" in
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-t|--test) enable_test; shift;;
|
||||
-gitjsapi) enable_js_api_git_link $2; shift 2;;
|
||||
-v|--version) install_version_pacakge $2; shift 2;;
|
||||
-c|--clean) clean; shift;;
|
||||
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
|
||||
esac
|
||||
@@ -65,6 +76,14 @@ npm run pkg-build
|
||||
echo "====== Install ng2-components dependencies ====="
|
||||
npm install
|
||||
|
||||
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
|
||||
npm install $GIT_ISH
|
||||
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
cd "$DIR/../ng2-components/"
|
||||
fi
|
||||
|
||||
echo "====== Build ng2-components ====="
|
||||
npm run build || exit 1
|
||||
|
||||
|
@@ -3,7 +3,9 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
eval FORCE_PUBLISH=false
|
||||
eval NPM_REGISTRY=""
|
||||
eval EXEC_CHANGE_REGISTRY=false
|
||||
eval NPM_REGISTRY=false
|
||||
eval TOKEN_REGISTRY=""
|
||||
eval OPTIONS=""
|
||||
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
@@ -13,6 +15,7 @@ show_help() {
|
||||
echo ""
|
||||
echo "-f or -force publish the package with force"
|
||||
echo "-r or -registry to publish in an alternative npm registry -registry 'http://npm.local.me:8080/' "
|
||||
echo "-token auth token for publish in the npm registry"
|
||||
echo "-t or -tag to add a tag when publish a package"
|
||||
}
|
||||
|
||||
@@ -20,6 +23,21 @@ enable_force(){
|
||||
OPTIONS="$OPTIONS -force"
|
||||
}
|
||||
|
||||
enable_change_registry(){
|
||||
NPM_REGISTRY=$1
|
||||
EXEC_CHANGE_REGISTRY=true
|
||||
}
|
||||
|
||||
get_token_registry(){
|
||||
TOKEN_REGISTRY=$1
|
||||
|
||||
if [[ "${TOKEN_REGISTRY}" == "" ]]
|
||||
then
|
||||
echo "token missing -token"
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
add_tag(){
|
||||
eval TAG=$1
|
||||
|
||||
@@ -34,8 +52,6 @@ add_tag(){
|
||||
}
|
||||
|
||||
change_registry(){
|
||||
NPM_REGISTRY=$1
|
||||
|
||||
if [[ "${NPM_REGISTRY}" == "" ]]
|
||||
then
|
||||
echo "NPM registry required WITH OPTION -r | -registry"
|
||||
@@ -43,7 +59,10 @@ change_registry(){
|
||||
fi
|
||||
|
||||
echo "====== CHANGE REGISTRY: ${NPM_REGISTRY} ====="
|
||||
npm config set registry ${NPM_REGISTRY}
|
||||
touch .npmrc
|
||||
echo 'strict-ssl=false' >> .npmrc
|
||||
echo 'registry=http://'${NPM_REGISTRY} >> .npmrc
|
||||
echo '//'${NPM_REGISTRY}'/:_authToken="'${TOKEN_REGISTRY}'"' >> .npmrc
|
||||
}
|
||||
|
||||
while [[ $1 == -* ]]; do
|
||||
@@ -51,7 +70,7 @@ while [[ $1 == -* ]]; do
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-t|--tag) add_tag $2; shift 2;;
|
||||
-f|--force) enable_force; shift;;
|
||||
-r|--registry) change_registry $2; shift 2;;
|
||||
-r|--registry) get_token_registry $2; shift 2;;
|
||||
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
|
||||
esac
|
||||
done
|
||||
@@ -75,10 +94,23 @@ for PACKAGE in \
|
||||
ng2-alfresco-userinfo
|
||||
do
|
||||
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||
echo "====== PUBLISHING: ${DESTDIR} ===== npm publish ${OPTIONS}"
|
||||
echo "====== MOVE DIR: ${DESTDIR} ===== "
|
||||
cd ${DESTDIR}
|
||||
echo "====== INSTALL AND CLEAN ===== "
|
||||
npm install rimraf
|
||||
npm run clean
|
||||
npm install
|
||||
|
||||
if $EXEC_CHANGE_REGISTRY == true; then
|
||||
change_registry
|
||||
fi
|
||||
|
||||
echo "====== PUBLISHING: ${DESTDIR} ===== npm publish ${OPTIONS}"
|
||||
npm publish ${OPTIONS}
|
||||
|
||||
if $EXEC_CHANGE_REGISTRY == true; then
|
||||
npm run rimraf .npmrc
|
||||
fi
|
||||
|
||||
cd ${DIR}
|
||||
done
|
||||
|
130
scripts/start.sh
130
scripts/start.sh
@@ -6,15 +6,44 @@ eval EXEC_INSTALL=false
|
||||
eval EXEC_UPDATE=false
|
||||
eval EXEC_CLEAN=false
|
||||
eval EXEC_DEVELOP=false
|
||||
eval EXEC_VERSION=false
|
||||
eval ENABLE_DIST=false
|
||||
eval EXEC_GIT_NPM_INSTALL_JSAPI=false
|
||||
eval EXEC_VERSION_JSAPI=false
|
||||
eval JSAPI_VERSION=""
|
||||
eval NG2_COMPONENTS_VERSION=""
|
||||
eval GIT_ISH=""
|
||||
|
||||
eval projects=( "ng2-alfresco-core"
|
||||
"ng2-alfresco-datatable"
|
||||
"ng2-activiti-diagrams"
|
||||
"ng2-activiti-analytics"
|
||||
"ng2-activiti-form"
|
||||
"ng2-activiti-tasklist"
|
||||
"ng2-activiti-processlist"
|
||||
"ng2-alfresco-documentlist"
|
||||
"ng2-alfresco-login"
|
||||
"ng2-alfresco-search"
|
||||
"ng2-alfresco-social"
|
||||
"ng2-alfresco-tag"
|
||||
"ng2-alfresco-social"
|
||||
"ng2-alfresco-upload"
|
||||
"ng2-alfresco-viewer"
|
||||
"ng2-alfresco-webscript"
|
||||
"ng2-alfresco-userinfo" )
|
||||
|
||||
show_help() {
|
||||
echo "Usage: start.sh"
|
||||
echo ""
|
||||
echo "-d or -develop start the demo shell using the relative ng2-components folder to link the components"
|
||||
echo "-dist start the demo shell in dist mode"
|
||||
echo "-i or -install start the demo shell and install the dependencies"
|
||||
echo "-u or -update start the demo shell and update the dependencies"
|
||||
echo "-v or -version install different version of ng2_components from npm defined in the package.json this option is not compatible with -d"
|
||||
echo "-c or -clean clean the demo shell and reinstall the dependencies"
|
||||
echo "-r or -registry to download the packages from an alternative npm registry example -registry 'http://npm.local.me:8080/' "
|
||||
echo "-gitjsapi to build all the components against a commit-ish version of the JS-API"
|
||||
echo "-vjsapi install different version from npm of JS-API defined in the package.json"
|
||||
}
|
||||
|
||||
install() {
|
||||
@@ -29,6 +58,39 @@ develop() {
|
||||
EXEC_DEVELOP=true
|
||||
}
|
||||
|
||||
enable_dist() {
|
||||
ENABLE_DIST=true
|
||||
}
|
||||
|
||||
enable_js_api_git_link() {
|
||||
GIT_ISH='git://github.com/Alfresco/alfresco-js-api.git#'$1
|
||||
EXEC_GIT_NPM_INSTALL_JSAPI=true
|
||||
}
|
||||
|
||||
version_component() {
|
||||
NG2_COMPONENTS_VERSION=$1
|
||||
|
||||
if [[ "${NG2_COMPONENTS_VERSION}" == "" ]]
|
||||
then
|
||||
echo "NG2 components version required with -v | -version"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
EXEC_VERSION=true
|
||||
}
|
||||
|
||||
version_js_api() {
|
||||
JSAPI_VERSION=$1
|
||||
|
||||
if [[ "${JSAPI_VERSION}" == "" ]]
|
||||
then
|
||||
echo "JSAPI version required with -vJSApi"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
EXEC_VERSION_JSAPI=true
|
||||
}
|
||||
|
||||
change_registry(){
|
||||
NPM_REGISTRY=$1
|
||||
|
||||
@@ -55,6 +117,10 @@ while [[ $1 == -* ]]; do
|
||||
-c|--clean) clean; shift;;
|
||||
-d|--develop) develop; shift;;
|
||||
-r|--registry) change_registry $2; shift 2;;
|
||||
-r|--version) version_component $2; shift 2;;
|
||||
-dist) enable_dist; shift;;
|
||||
-gitjsapi) enable_js_api_git_link $2; shift 2;;
|
||||
-vjsapi) version_js_api $2; shift 2;;
|
||||
-*) shift;;
|
||||
esac
|
||||
done
|
||||
@@ -78,21 +144,71 @@ if $EXEC_INSTALL == true; then
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_UPDATE == true; then
|
||||
echo "====== Update Demo shell ====="
|
||||
if $EXEC_INSTALL == true; then
|
||||
echo "====== Install Demo shell ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm update
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_VERSION == true; then
|
||||
echo "====== Install version "${NG2_COMPONENTS_VERSION}" of ng2-components ====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
|
||||
if [[ "${EXEC_DEVELOP}" == "" ]]
|
||||
then
|
||||
echo "Option -v is not compatible with -d see the help"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for PACKAGE in ${projects[@]}
|
||||
do
|
||||
npm install ${PACKAGE}@${NG2_COMPONENTS_VERSION}
|
||||
done
|
||||
fi
|
||||
|
||||
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
|
||||
npm install $GIT_ISH
|
||||
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
cd "$DIR/../ng2-components/"
|
||||
fi
|
||||
|
||||
if $EXEC_GIT_NPM_INSTALL_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$GIT_ISH'====="
|
||||
npm install $GIT_ISH
|
||||
cd "$DIR/../ng2-components/node_modules/alfresco-js-api"
|
||||
npm install
|
||||
fi
|
||||
|
||||
if $EXEC_VERSION_JSAPI == true; then
|
||||
echo "====== Use the alfresco JS-API '$JSAPI_VERSION'====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm install alfresco-js-api@${JSAPI_VERSION}
|
||||
fi
|
||||
|
||||
if $EXEC_DEVELOP == true; then
|
||||
echo "====== Start Demo shell development mode====="
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
if $ENABLE_DIST == true; then
|
||||
echo "====== Build and start dist Demo shell ====="
|
||||
npm run build:dev
|
||||
npm run start:dist
|
||||
else
|
||||
echo "====== Start Demo shell ====="
|
||||
npm run start:dev
|
||||
fi
|
||||
|
||||
if $EXEC_DEVELOP == false; then
|
||||
echo "====== Start Demo shell ====="
|
||||
else
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
|
||||
if $ENABLE_DIST == true; then
|
||||
echo "====== Build and start dist Demo shell ====="
|
||||
npm run build
|
||||
npm run start:dist
|
||||
else
|
||||
echo "====== Start Demo shell dev mode====="
|
||||
npm run start
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user