mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#229 remove private registry
This commit is contained in:
@@ -87,20 +87,4 @@ $ node -v
|
|||||||
v5.12.0
|
v5.12.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing npm
|
|
||||||
|
|
||||||
The npm package manager is included with Node.js, however it is not usually the latest version as npm is updated more frequently than node.js.
|
|
||||||
|
|
||||||
Update npm as follows:
|
|
||||||
|
|
||||||
`$ npm install npm -g`
|
|
||||||
|
|
||||||
## Configure Alfresco Private npm repository
|
|
||||||
|
|
||||||
All the distribution packages for the application development framework components are stored in Alfresco's private npm repository,
|
|
||||||
which is visible only from the internal Alfresco LAN (or through VPN). We need to tell npm about this repository.
|
|
||||||
|
|
||||||
Set up Alfresco's private npm repository as follows:
|
|
||||||
|
|
||||||
`$ npm set registry http://devproducts.alfresco.me:4873`
|
|
||||||
|
|
||||||
|
@@ -1,20 +0,0 @@
|
|||||||
FROM node:5
|
|
||||||
|
|
||||||
# Create src directory
|
|
||||||
RUN mkdir -p /usr/src
|
|
||||||
WORKDIR /usr/src
|
|
||||||
|
|
||||||
# Copy source and install app dependencies
|
|
||||||
COPY app /usr/src/app/
|
|
||||||
COPY assets /usr/src/assets/
|
|
||||||
COPY i18n /usr/src/i18n/
|
|
||||||
COPY app /usr/src/app/
|
|
||||||
COPY package.json index.html systemjs.config.js *.json LICENSE README.md /usr/src/
|
|
||||||
|
|
||||||
RUN npm install material-design-lite material-design-icons
|
|
||||||
RUN npm set registry http://devproducts.alfresco.me:4873/
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
|
@@ -13,34 +13,6 @@
|
|||||||
### Node
|
### Node
|
||||||
To correctly use this demo check that on your machine is running Node version 5.0.0 or higher.
|
To correctly use this demo check that on your machine is running Node version 5.0.0 or higher.
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
|
|
||||||
Docker machine with latest `platform-distribution:api-latest` image.
|
|
||||||
|
|
||||||
```
|
|
||||||
# docker-login is only needed the first time; after this your credentials will be cached
|
|
||||||
docker login dockerreg.alfresco.com
|
|
||||||
docker pull dockerreg.alfresco.com/platform-distribution:api-latest
|
|
||||||
docker-compose up
|
|
||||||
```
|
|
||||||
**Note:** for complete installation on Windows please review the instructions here: [Windows installation](WINDOWS.md)
|
|
||||||
|
|
||||||
to clean up afterwards
|
|
||||||
|
|
||||||
```
|
|
||||||
docker-compose rm
|
|
||||||
```
|
|
||||||
|
|
||||||
If you are using the local build you must also have configured your npm to use our private registry, where the
|
|
||||||
components are published. Currently the registry can only be accessed from Alfresco's London and Maidenhead offices.
|
|
||||||
|
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
|
|
||||||
Note this is a global setting which will apply to all your npm projects. You can use `npm config delete registry` to
|
|
||||||
remove the setting once you no longer need it, or you can temporarily comment out the line in your `.npmrc` file.
|
|
||||||
|
|
||||||
### Building and running
|
|
||||||
|
|
||||||
#### Local build
|
#### Local build
|
||||||
|
|
||||||
1 Install dependencies
|
1 Install dependencies
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
alfresco:
|
|
||||||
image: dockerreg.alfresco.com/platform-distribution:api-latest
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
@@ -108,8 +108,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-core
|
npm install --save ng2-alfresco-core
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -111,8 +111,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-datatable material-design-lite material-design-icons
|
npm install --save ng2-alfresco-datatable material-design-lite material-design-icons
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -72,8 +72,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -106,8 +106,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-documentlist
|
npm install --save ng2-alfresco-documentlist
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -53,8 +53,5 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"angular2",
|
"angular2",
|
||||||
"typescript"
|
"typescript"
|
||||||
],
|
]
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -114,8 +114,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-login
|
npm install --save ng2-alfresco-login
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -78,8 +78,5 @@
|
|||||||
"tslint": "^3.8.1",
|
"tslint": "^3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "^1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "^1.0.4"
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -121,8 +121,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-core ng2-alfresco-search
|
npm install --save ng2-alfresco-core ng2-alfresco-search
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -78,8 +78,5 @@
|
|||||||
"tslint": "3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -116,8 +116,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-upload
|
npm install --save ng2-alfresco-upload
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -78,8 +78,5 @@
|
|||||||
"tslint": "3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,8 +120,5 @@
|
|||||||
"blocking": true,
|
"blocking": true,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm set registry http://devproducts.alfresco.me:4873
|
|
||||||
npm install --save ng2-alfresco-viewer
|
npm install --save ng2-alfresco-viewer
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -113,8 +113,5 @@
|
|||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0"
|
||||||
"publishConfig": {
|
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user