Browse Source

Prepare script.

pull/342/head
Sebastian 7 years ago
parent
commit
0756b78a00
  1. 3
      Dockerfile
  2. 6
      Dockerfile.build
  3. 5442
      src/Squidex/package-lock.json
  4. 9
      src/Squidex/package.json

3
Dockerfile

@ -8,7 +8,7 @@ WORKDIR /src
COPY src/Squidex/package*.json /tmp/
# Install Node packages
RUN cd /tmp && npm install
RUN cd /tmp && npm install --loglevel=error
COPY . .
@ -16,7 +16,6 @@ COPY . .
RUN cp -a /tmp/node_modules src/Squidex/ \
&& cd src/Squidex \
&& npm run test:coverage \
&& npm run build:copy \
&& npm run build
# Test Backend

6
Dockerfile.build

@ -4,9 +4,8 @@ WORKDIR /src
COPY src/Squidex/package*.json /tmp/
RUN cd /tmp \
&& npm install \
&& npm rebuild node-sass
# Install Node packages
RUN cd /tmp && npm install --loglevel=error
COPY . .
@ -14,7 +13,6 @@ COPY . .
RUN cp -a /tmp/node_modules src/Squidex/ \
&& cd /src/Squidex \
&& npm run test:coverage \
&& npm run build:copy \
&& npm run build
# Test Backend

5442
src/Squidex/package-lock.json

File diff suppressed because it is too large

9
src/Squidex/package.json

@ -5,15 +5,14 @@
"license": "MIT",
"repository": "https://github.com/SebastianStehle/Squidex",
"scripts": {
"prepare": "cpx node_modules/oidc-client/dist/oidc-client.min.js wwwroot/scripts/",
"start": "webpack-dev-server --config app-config/webpack.run.dev.js --inline --port 3000 --hot",
"test": "karma start",
"test:coverage": "karma start karma.coverage.conf.js",
"test:clean": "rimraf _test-output",
"dev": "cpx node_modules/oidc-client/dist/oidc-client.min.js wwwroot/scripts/ && webpack-dev-server --config app-config/webpack.run.dev.js --inline --port 3000",
"start": "cpx node_modules/oidc-client/dist/oidc-client.min.js wwwroot/scripts/ && webpack-dev-server --config app-config/webpack.run.dev.js --inline --port 3000 --hot",
"tslint": "tslint -c tslint.json -p tsconfig.json app/**/*.ts",
"build": "webpack --config app-config/webpack.run.prod.js",
"build:copy": "cpx node_modules/oidc-client/dist/oidc-client.min.js wwwroot/scripts/",
"build:clean": "rimraf wwwroot/build",
"tslint": "tslint -c tslint.json -p tsconfig.json app/**/*.ts"
"build:clean": "rimraf wwwroot/build"
},
"dependencies": {
"@angular/animations": "7.1.4",

Loading…
Cancel
Save