File tree Expand file tree Collapse file tree 8 files changed +81
-0
lines changed Expand file tree Collapse file tree 8 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = require ( '@lcdev/eslint-config/cwd' ) ( __dirname ) ;
Original file line number Diff line number Diff line change
1
+ ## App Config CLI
2
+
3
+ This is a package for the CLI portion of App Config. It's also accesible through the main package.
4
+
5
+ ``` shell
6
+ # these two are essentially the same thing
7
+
8
+ npx @app-config/cli
9
+
10
+ npx @lcdev/app-config
11
+ ```
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @app-config/cli" ,
3
+ "description" : " CLI for @lcdev/app-config" ,
4
+ "version" : " 2.0.2" ,
5
+ "license" : " MPL-2.0" ,
6
+ "author" : {
7
+ "name" : " Launchcode" ,
8
+
9
+ "url" : " https://lc.dev"
10
+ },
11
+ "repository" : {
12
+ "type" : " git" ,
13
+ "url" : " https://github.com/launchcodedev/app-config.git"
14
+ },
15
+ "main" : " dist/index.js" ,
16
+ "module" : " dist/es/index.js" ,
17
+ "types" : " dist/index.d.ts" ,
18
+ "files" : [
19
+ " /dist" ,
20
+ " !*.tsbuildinfo" ,
21
+ " !*.test.*"
22
+ ],
23
+ "bin" : {
24
+ "app-config" : " dist/index.js"
25
+ },
26
+ "scripts" : {
27
+ "build" : " tsc -b" ,
28
+ "build:es" : " tsc -b tsconfig.es.json" ,
29
+ "clean" : " rm -rf dist *.tsbuildinfo" ,
30
+ "lint" : " eslint src" ,
31
+ "fix" : " eslint --fix src" ,
32
+ "test" : " jest --passWithNoTests" ,
33
+ "prepublishOnly" : " yarn clean && yarn build && yarn build:es"
34
+ },
35
+ "dependencies" : {
36
+ "@lcdev/app-config" : " 2"
37
+ },
38
+ "devDependencies" : {},
39
+ "prettier" : " @lcdev/prettier" ,
40
+ "jest" : {
41
+ "preset" : " @lcdev/jest"
42
+ }
43
+ }
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ import { cli } from '@lcdev/app-config/dist/cli' ;
4
+
5
+ cli . parse ( ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "target" : " es2020" ,
5
+ "module" : " es2020" ,
6
+ "outDir" : " ./dist/es"
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " @lcdev/tsconfig" ,
3
+ "compilerOptions" : {
4
+ "rootDir" : " ./src" ,
5
+ "outDir" : " ./dist"
6
+ },
7
+ "include" : [" src/**/*" ],
8
+ "exclude" : [" node_modules" ]
9
+ }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ replace_version_references() {
35
35
sed -i " s#[\" ]@lcdev\\ /app-config[\" ]: [\" ]2 || $PREV_VERSION [\" ]#\" @lcdev\\ /app-config\" : \" 2 || $VERSION \" #g" $@
36
36
sed -i " s#[\" ]@lcdev\\ /app-config[\" ]: [\" ]1 || 2 || $PREV_VERSION [\" ]#\" @lcdev\\ /app-config\" : \" 1 || 2 || $VERSION \" #g" $@
37
37
38
+ sed -i " s#[\" ]@lcdev\\ /app-config-cli[\" ]: [\" ]$PREV_VERSION [\" ]#\" @lcdev\\ /app-config-cli\" : \" $VERSION \" #g" $@
38
39
sed -i " s#[\" ]@lcdev\\ /app-config-webpack-plugin[\" ]: [\" ]$PREV_VERSION [\" ]#\" @lcdev\\ /app-config-webpack-plugin\" : \" $VERSION \" #g" $@
39
40
sed -i " s#[\" ]@lcdev\\ /app-config-inject[\" ]: [\" ]$PREV_VERSION [\" ]#\" @lcdev\\ /app-config-inject\" : \" $VERSION \" #g" $@
40
41
sed -i " s#[\" ]@lcdev\\ /app-config-vault[\" ]: [\" ]$PREV_VERSION [\" ]#\" @lcdev\\ /app-config-vault\" : \" $VERSION \" #g" $@
@@ -44,11 +45,13 @@ replace_version_references() {
44
45
}
45
46
46
47
new_version ./app-config
48
+ new_version ./app-config-cli
47
49
new_version ./app-config-webpack-plugin
48
50
new_version ./app-config-inject
49
51
new_version ./app-config-vault
50
52
new_version ./app-config-react-native-transformer
51
53
54
+ replace_version_references ./app-config-cli/package.json
52
55
replace_version_references ./app-config-webpack-plugin/package.json
53
56
replace_version_references ./app-config-inject/package.json
54
57
replace_version_references ./app-config-react-native-transformer/package.json
Original file line number Diff line number Diff line change 5
5
"workspaces" : {
6
6
"packages" : [
7
7
" app-config" ,
8
+ " app-config-cli" ,
8
9
" app-config-webpack-plugin" ,
9
10
" app-config-inject" ,
10
11
" app-config-react-native-transformer" ,
You can’t perform that action at this time.
0 commit comments