create-steedos-app 2.2.52-beta.36 → 2.2.52-beta.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import type { PackageManager } from './helpers/get-pkg-manager';
2
+ export declare class DownloadError extends Error {
3
+ }
4
+ export declare function createApp({ appPath, packageManager, example, examplePath, typescript, }: {
5
+ appPath: string;
6
+ packageManager: PackageManager;
7
+ example?: string;
8
+ examplePath?: string;
9
+ typescript?: boolean;
10
+ }): Promise<void>;
@@ -0,0 +1,27 @@
1
+ This is a [Steedos](https://www.steedos.com/) project bootstrapped with [`create-steedos-app`](https://github.com/steedos/steedos-platform/tree/master/packages/create-steedos-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run start
9
+ # or
10
+ yarn start
11
+ ```
12
+
13
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14
+
15
+ ## Learn More
16
+
17
+ To learn more about Steedos Platform, take a look at the following resources:
18
+
19
+ - [Steedos Documentation](https://www.steedos.com/docs) - learn about Steedos features and API.
20
+
21
+ You can check out [the Steedos GitHub repository](https://github.com/steedos/steedos-platform/) - your feedback and contributions are welcome!
22
+
23
+ ## Deploy your project
24
+
25
+ The easiest way to deploy your Steedos app is to use the [Docker Template](https://github.com/steedos/docker).
26
+
27
+ Check out our [Steedos deployment documentation](https://www.steedos.com/docs/deploy/getting-started) for more details.
@@ -0,0 +1,32 @@
1
+ PORT=5000
2
+ ROOT_URL=http://127.0.0.1:5000
3
+ TRANSPORTER=redis://127.0.0.1:6379
4
+ CACHER=redis://127.0.0.1:6379/1
5
+ MONGO_URL=mongodb://127.0.0.1:27017/steedos
6
+ MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local
7
+
8
+ STEEDOS_CFS_STORE=local
9
+ STEEDOS_STORAGE_DIR=./storage
10
+
11
+ # 身份验证
12
+ STEEDOS_TENANT_ENABLE_PASSWORD_LOGIN=true
13
+ STEEDOS_TENANT_TOKEN_SECRET=change-me
14
+
15
+ # 绑定华炎云账户
16
+ STEEDOS_CLOUD_API_KEY=
17
+ STEEDOS_CLOUD_SPACE_ID=
18
+
19
+ # vscode 代码同步
20
+ METADATA_SERVER=
21
+ METADATA_APIKEY=
22
+
23
+ # CDN in china, default is https://unpkg.com
24
+ STEEDOS_UNPKG_URL=https://npm.elemecdn.com
25
+ STEEDOS_PUBLIC_PAGE_ASSETURLS=https://unpkg.com/@steedos-ui/builder-widgets@2.2.32/dist/assets.json
26
+
27
+ SSO_OIDC_CONFIG_URL=
28
+ SSO_OIDC_CLIENT_ID=
29
+ SSO_OIDC_CLIENT_SECRET=
30
+ SSO_OIDC_NAME=
31
+ SSO_OIDC_LOGO=
32
+ SSO_OIDC_REQUIRE_LOCAL_ACCOUNT=false
@@ -0,0 +1,17 @@
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ **/.DS_Store
4
+
5
+ **/node_modules
6
+
7
+ .npmrc
8
+ .yarnrc
9
+ **/npm-error.log
10
+ **/yarn-error.log
11
+ **/lerna-debug.log
12
+
13
+ storage
14
+ dist
15
+ logs
16
+
17
+ .env.local
package/dist/gitignore ADDED
@@ -0,0 +1,17 @@
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ **/.DS_Store
4
+
5
+ **/node_modules
6
+
7
+ .npmrc
8
+ .yarnrc
9
+ **/npm-error.log
10
+ **/yarn-error.log
11
+ **/lerna-debug.log
12
+
13
+ storage
14
+ dist
15
+ logs
16
+
17
+ .env.local
@@ -0,0 +1,12 @@
1
+ export declare type RepoInfo = {
2
+ username: string;
3
+ name: string;
4
+ branch: string;
5
+ filePath: string;
6
+ };
7
+ export declare function isUrlOk(url: string): Promise<boolean>;
8
+ export declare function getRepoInfo(url: URL, examplePath?: string): Promise<RepoInfo | undefined>;
9
+ export declare function hasRepo({ username, name, branch, filePath, }: RepoInfo): Promise<boolean>;
10
+ export declare function existsInRepo(nameOrUrl: string): Promise<boolean>;
11
+ export declare function downloadAndExtractRepo(root: string, { username, name, branch, filePath }: RepoInfo): Promise<void>;
12
+ export declare function downloadAndExtractExample(root: string, name: string): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare type PackageManager = 'npm' | 'pnpm' | 'yarn';
2
+ export declare function getPkgManager(): PackageManager;
@@ -0,0 +1 @@
1
+ export declare function tryGitInit(root: string): boolean;
@@ -0,0 +1,22 @@
1
+ import type { PackageManager } from './get-pkg-manager';
2
+ interface InstallArgs {
3
+ /**
4
+ * Indicate whether to install packages using npm, pnpm or Yarn.
5
+ */
6
+ packageManager: PackageManager;
7
+ /**
8
+ * Indicate whether there is an active Internet connection.
9
+ */
10
+ isOnline: boolean;
11
+ /**
12
+ * Indicate whether the given dependencies are devDependencies.
13
+ */
14
+ devDependencies?: boolean;
15
+ }
16
+ /**
17
+ * Spawn a package manager installation with either Yarn or NPM.
18
+ *
19
+ * @returns A Promise that resolves once the installation is finished.
20
+ */
21
+ export declare function install(root: string, dependencies: string[] | null, { packageManager, isOnline, devDependencies }: InstallArgs): Promise<void>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export declare function isFolderEmpty(root: string, name: string): boolean;
@@ -0,0 +1 @@
1
+ export declare function getOnline(): Promise<boolean>;
@@ -0,0 +1 @@
1
+ export declare function isWriteable(directory: string): Promise<boolean>;
@@ -0,0 +1,3 @@
1
+ export declare function makeDir(root: string, options?: {
2
+ recursive: boolean;
3
+ }): Promise<void>;
@@ -0,0 +1,4 @@
1
+ export declare function validateNpmName(name: string): {
2
+ valid: boolean;
3
+ problems?: string[];
4
+ };
@@ -0,0 +1 @@
1
+ export {};