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
|
||||
```
|
||||
|
||||
## 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
|
||||
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
|
||||
|
||||
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,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-core
|
||||
```
|
||||
|
||||
|
@@ -111,8 +111,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-datatable material-design-lite material-design-icons
|
||||
```
|
||||
|
||||
|
@@ -72,8 +72,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"logError": true
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
}
|
||||
|
@@ -106,8 +106,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-documentlist
|
||||
```
|
||||
|
||||
|
@@ -53,8 +53,5 @@
|
||||
"keywords": [
|
||||
"angular2",
|
||||
"typescript"
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -114,8 +114,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-login
|
||||
```
|
||||
|
||||
|
@@ -78,8 +78,5 @@
|
||||
"tslint": "^3.8.1",
|
||||
"typescript": "^1.8.10",
|
||||
"typings": "^1.0.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
}
|
||||
|
@@ -121,8 +121,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-core ng2-alfresco-search
|
||||
```
|
||||
|
||||
|
@@ -78,8 +78,5 @@
|
||||
"tslint": "3.8.1",
|
||||
"typescript": "1.8.10",
|
||||
"typings": "1.0.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
}
|
||||
|
@@ -116,8 +116,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-upload
|
||||
```
|
||||
|
||||
|
@@ -78,8 +78,5 @@
|
||||
"tslint": "3.8.1",
|
||||
"typescript": "1.8.10",
|
||||
"typings": "1.0.4"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
}
|
||||
|
@@ -120,8 +120,5 @@
|
||||
"blocking": true,
|
||||
"logInfo": false,
|
||||
"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
|
||||
|
||||
```sh
|
||||
npm set registry http://devproducts.alfresco.me:4873
|
||||
npm install --save ng2-alfresco-viewer
|
||||
```
|
||||
|
||||
|
@@ -113,8 +113,5 @@
|
||||
"logInfo": false,
|
||||
"logError": true
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"publishConfig": {
|
||||
"registry": "http://devproducts.alfresco.me:4873/"
|
||||
}
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
|
Reference in New Issue
Block a user