Skip to content

Commit

Permalink
restructure files for optimized docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Jun 13, 2021
1 parent 5bccb59 commit 5405457
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 35 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
/examples/dist
/examples/.cache
dist/
/tmp
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
FROM node:15.3.0-alpine
FROM node:15.3.0

WORKDIR /code/

ADD .babelrc /code/.babelrc
ADD tsconfig.json /code/tsconfig.json
ADD package-lock.json /code/package-lock.json
ADD package.json /code/package.json

RUN npm install

ADD memserver-boilerplate /code/memserver-boilerplate
ADD vendor /code/vendor/
ADD packages /code/packages
ADD scripts /code/scripts
ADD src /code/src
ADD test /code/test

RUN npm run npm-link-ember-packages
RUN node_modules/.bin/tsc
RUN npm run libs:build && npm install

ENTRYPOINT "/bin/bash"
10 changes: 0 additions & 10 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
- move to 4 packages? then its harder to use in project: @memserver/cli @memserver/server @memserver/model @memserver/response
- move to 2 packages? : @memserver/cli @memserver
- move to github actions
- add release-it/auto CHANGELOG
- remove qs?
- move @ember/string to emberx/string
- investigate decorator validations
- maybe a more in-depth serializer

through embroider create a local ember-packages and wire them to memserver with right module names

maybe remove require.caches for tests

JS needs pipeline operator(|>) and cheap Rust bindings(JS<->Rust) and runtimes need to have ava API as default testing API(test.serial, test etc)

- investigate silent Errors within MemServer.Server handler context
Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,29 @@
"ts-node": "^10.0.0"
},
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@babel/cli": "^7.14.3",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.14.2",
"@babel/plugin-proposal-private-methods": "^7.13.0",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-typescript": "^8.2.1",
"@types/jquery": "^3.5.5",
"auto-changelog": "^2.3.0",
"ava": "3.15.0",
"babel-loader": "^8.2.2",
"babel-plugin-module-extension-resolver": "^1.0.0-rc.2",
"cors": "^2.8.5",
"esbuild": "^0.12.6",
"express": "^4.17.1",
"fastboot": "^3.1.2",
"jquery": "3.6.0",
"qunitx": "^0.2.1",
"recursive-lookup": "^1.0.0",
"release-it": "^14.7.0",
"rollup": "^2.50.6",
"sinon": "^11.1.1",
"strip-ansi": "^7.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.1",
"typescript": "^4.3.2",
"webpack": "^5.37.0",
"webpack-cli": "^4.7.0",
"webpack-dev-server": "^4.0.0-beta.3",
"xmlhttprequest": "^1.8.0"
"webpack-dev-server": "^4.0.0-beta.3"
},
"ava": {
"files": [
Expand Down

0 comments on commit 5405457

Please sign in to comment.