Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
feat(generate): extract generate code into separate module #271
Browse files Browse the repository at this point in the history
  • Loading branch information
rudxde committed Mar 19, 2022
1 parent 66494f3 commit b78217d
Show file tree
Hide file tree
Showing 71 changed files with 45,519 additions and 11,845 deletions.
8,123 changes: 8,101 additions & 22 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/cli/.eslintignore
@@ -0,0 +1,7 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
dist
# don't lint nyc coverage output
coverage
.nyc_output
95 changes: 95 additions & 0 deletions packages/cli/.eslintrc.js
@@ -0,0 +1,95 @@
module.exports = {
"env": {
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"plugins": [
"@typescript-eslint",
],
"rules": {
"@typescript-eslint/indent": [
"error",
4,
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "error",
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
}
],
"@typescript-eslint/semi": [
"error",
"always"
],
"eol-last": "error",
"linebreak-style": [
"error",
"unix"
],
"max-len": [
"error",
{
"code": 160
}
],
"no-console": [
"error",
{
"allow": [
"log",
"info",
"warn",
"table",
"error",
"timeStamp",
]
}
],
"@typescript-eslint/explicit-function-return-type": [
"error"
],
"@typescript-eslint/type-annotation-spacing": [
"error",
{
"before": false,
"after": true,
overrides: {
arrow: { before: true, after: true }
}
}
]
}
};
134 changes: 134 additions & 0 deletions packages/cli/CHANGELOG.md
@@ -0,0 +1,134 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.7.1](https://github.com/rudxde/lerna-dockerize/compare/v0.7.0...v0.7.1) (2021-08-16)

**Note:** Version bump only for package lerna-dockerize





# [0.7.0](https://github.com/rudxde/lerna-dockerize/compare/v0.6.0...v0.7.0) (2021-07-12)


### Bug Fixes

* remove lerna version: vundefined logging at startup ([ec0a49e](https://github.com/rudxde/lerna-dockerize/commit/ec0a49e8bfc303439012902eb7a81c327164c232))


### Features

* add support for --platform flag for dockerfile FROM instruction ([f7e3f40](https://github.com/rudxde/lerna-dockerize/commit/f7e3f40922b5acdc98f49b905928b3b9ecfe7bf3))





# [0.6.0](https://github.com/rudxde/lerna-dockerize/compare/v0.5.0...v0.6.0) (2021-06-17)


### Features

* add support for install parameters ([bd9f626](https://github.com/rudxde/lerna-dockerize/commit/bd9f6264344c1f4765995570f1b6f7ecfca3fcc3))
* add warning for misuse of the --if-exists flag in the RUN command ([6f17659](https://github.com/rudxde/lerna-dockerize/commit/6f176599d41e5bc69c0ffb3894b4e5b0c9dc9687))





# [0.5.0](https://github.com/rudxde/lerna-dockerize/compare/v0.4.1...v0.5.0) (2021-06-12)


### Bug Fixes

* add support for custom registry and digest for images ([7e0486a](https://github.com/rudxde/lerna-dockerize/commit/7e0486a7fe1069a1ac2b0f376e5439f7b566315b)), closes [#53](https://github.com/rudxde/lerna-dockerize/issues/53)


### Features

* add finalStage option to enable or disable final stage generation ([1a57118](https://github.com/rudxde/lerna-dockerize/commit/1a57118d5f51002a40f06269bce6127742371ecc))
* add possibility to set options in lerna.json ([efd6eaa](https://github.com/rudxde/lerna-dockerize/commit/efd6eaacea761c34966d766285a27563bb1de9d4))





## [0.4.1](https://github.com/rudxde/lerna-dockerize/compare/v0.4.0...v0.4.1) (2021-05-25)


### Bug Fixes

* add prepare stage only when npm install is present ([bd9836a](https://github.com/rudxde/lerna-dockerize/commit/bd9836af42075428ac685ace844f3bf60caa6ea0))
* await yargs.parse for support of new yargs typings version ([a2951a0](https://github.com/rudxde/lerna-dockerize/commit/a2951a031add69058eb1db6fd417fe783af8c4b0))





# [0.4.0](https://github.com/rudxde/lerna-dockerize/compare/v0.3.0...v0.4.0) (2021-05-17)


### Features

* add package.json slimming ([29d5a49](https://github.com/rudxde/lerna-dockerize/commit/29d5a49d2dc0b05891366893e6850e758a58c93f))
* split stages into extra prepare stage ([e5dae45](https://github.com/rudxde/lerna-dockerize/commit/e5dae45a228a7b911f29986be0c75a9d4d75224c))





# [0.3.0](https://github.com/rudxde/lerna-dockerize/compare/v0.2.0...v0.3.0) (2021-05-05)


### Bug Fixes

* right array index for extendet-docker-syntax if exists npm run ([15dafbe](https://github.com/rudxde/lerna-dockerize/commit/15dafbe0eaddfb30e701a019e2a93658216c9a97))


### Features

* add hoist option ([7520090](https://github.com/rudxde/lerna-dockerize/commit/7520090bfb45dadbdcb962219acc0583950d70a0))
* add option to overwrite final stage ([12f527f](https://github.com/rudxde/lerna-dockerize/commit/12f527fc8103ba5e5f7105ff811bd3ea03e4c810))
* add support for local scripts for RUN --if-exists ([00e70e8](https://github.com/rudxde/lerna-dockerize/commit/00e70e8bcfbae9db5497e7cc348d355add5da7c3))
* add warning if Dockerfile was parsed as empty ([5f57510](https://github.com/rudxde/lerna-dockerize/commit/5f57510ba9dcc2d38f3210ec5fd633b6accba4bb))
* set yargs help width to terminal width ([844876f](https://github.com/rudxde/lerna-dockerize/commit/844876f479635fb39b9add41df38726a711545f1))
* setup logging ([4f52602](https://github.com/rudxde/lerna-dockerize/commit/4f52602645176aee798bb27ad7d3ddf5bf1f4061))





# [0.2.0](https://github.com/rudxde/lerna-dockerize/compare/v0.1.0...v0.2.0) (2021-04-25)


### Features

* add dockerfileWorkingDir option ([f237a16](https://github.com/rudxde/lerna-dockerize/commit/f237a16bc7f66b6882862ed7a2c293c4f77c6901))
* add lernaCommand option ([b8bdd51](https://github.com/rudxde/lerna-dockerize/commit/b8bdd5163ede77e10d73f0dabee1af882a87de31))
* add outDockerfileName option ([c875f9a](https://github.com/rudxde/lerna-dockerize/commit/c875f9a970c8ddc9375ac2208117b6f900ccd1bb))
* add support for yarn install ([e89ecc6](https://github.com/rudxde/lerna-dockerize/commit/e89ecc6b12b7f3e7551df835e245f1a8c81fb6c7))
* setup yargs and add base and template dockerfile option ([8df310a](https://github.com/rudxde/lerna-dockerize/commit/8df310a82b973e2cf2a6723a5b13350520994e97))





# 0.1.0 (2021-04-23)


### Bug Fixes

* adapt package bin to work with windows ([80c37cd](https://github.com/rudxde/lerna-dockerize/commit/80c37cd923175c7a451d791092795a23d1fa15d2))
* add bin.js with nodeenv header for cli script ([5a7d5e6](https://github.com/rudxde/lerna-dockerize/commit/5a7d5e6137ac43027978b86a9dc17345eca10065))
* linting errors ([07bc7a4](https://github.com/rudxde/lerna-dockerize/commit/07bc7a40388c0333fe27a78fa8fa65f82b5f4e58))
* replace local package stage name in from clause through scoped name ([cc18fba](https://github.com/rudxde/lerna-dockerize/commit/cc18fbae563f08e804f4bb0e8b580f21a5d08033))
* tests ([8a9bd2c](https://github.com/rudxde/lerna-dockerize/commit/8a9bd2c368c0f68f5c74b158ef901aff611e1cd4))


### Features

* add npm:publish script ([cd67247](https://github.com/rudxde/lerna-dockerize/commit/cd67247c0bfe3e1149b2cfc3201013a8aa821047))
* setup lerna ([693f440](https://github.com/rudxde/lerna-dockerize/commit/693f440f151dacb1a94806de1c8956ec2a304bf7))

0 comments on commit b78217d

Please sign in to comment.