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

6
Dockerfile.build

@ -4,9 +4,8 @@ WORKDIR /src
COPY src/Squidex/package*.json /tmp/ COPY src/Squidex/package*.json /tmp/
RUN cd /tmp \ # Install Node packages
&& npm install \ RUN cd /tmp && npm install --loglevel=error
&& npm rebuild node-sass
COPY . . COPY . .
@ -14,7 +13,6 @@ COPY . .
RUN cp -a /tmp/node_modules src/Squidex/ \ RUN cp -a /tmp/node_modules src/Squidex/ \
&& cd /src/Squidex \ && cd /src/Squidex \
&& npm run test:coverage \ && npm run test:coverage \
&& npm run build:copy \
&& npm run build && npm run build
# Test Backend # 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", "license": "MIT",
"repository": "https://github.com/SebastianStehle/Squidex", "repository": "https://github.com/SebastianStehle/Squidex",
"scripts": { "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": "karma start",
"test:coverage": "karma start karma.coverage.conf.js", "test:coverage": "karma start karma.coverage.conf.js",
"test:clean": "rimraf _test-output", "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", "tslint": "tslint -c tslint.json -p tsconfig.json app/**/*.ts",
"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",
"build": "webpack --config app-config/webpack.run.prod.js", "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"
"build:clean": "rimraf wwwroot/build",
"tslint": "tslint -c tslint.json -p tsconfig.json app/**/*.ts"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "7.1.4", "@angular/animations": "7.1.4",

Loading…
Cancel
Save