@celljs/cli 3.7.7 → 3.8.0
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.
- package/lib/build/build-manager.d.ts.map +1 -1
- package/lib/build/build-manager.js.map +1 -1
- package/lib/build/build.d.ts +1 -1
- package/lib/build/build.d.ts.map +1 -1
- package/lib/build/build.js.map +1 -1
- package/lib/cell.js +8 -5
- package/lib/cell.js.map +1 -1
- package/lib/config/config.d.ts +1 -1
- package/lib/config/config.d.ts.map +1 -1
- package/lib/config/config.js.map +1 -1
- package/lib/deploy/deploy.d.ts +1 -1
- package/lib/deploy/deploy.d.ts.map +1 -1
- package/lib/deploy/deploy.js +4 -1
- package/lib/deploy/deploy.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/info/info.d.ts +1 -1
- package/lib/info/info.d.ts.map +1 -1
- package/lib/info/info.js.map +1 -1
- package/lib/init/init-manager.d.ts.map +1 -1
- package/lib/init/init-manager.js +5 -2
- package/lib/init/init-manager.js.map +1 -1
- package/lib/init/init.d.ts +1 -1
- package/lib/init/init.d.ts.map +1 -1
- package/lib/init/init.js.map +1 -1
- package/lib/init/templates.d.ts.map +1 -1
- package/lib/init/templates.js +0 -2
- package/lib/init/templates.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +5 -2
- package/lib/package.spec.js.map +1 -1
- package/lib/props/props.d.ts +1 -1
- package/lib/props/props.d.ts.map +1 -1
- package/lib/props/props.js +6 -3
- package/lib/props/props.js.map +1 -1
- package/lib/serve/serve-manager.d.ts.map +1 -1
- package/lib/serve/serve-manager.js.map +1 -1
- package/lib/serve/serve.d.ts +1 -1
- package/lib/serve/serve.d.ts.map +1 -1
- package/lib/serve/serve.js.map +1 -1
- package/lib/update/update.d.ts +1 -1
- package/lib/update/update.d.ts.map +1 -1
- package/lib/update/update.js.map +1 -1
- package/lib/utils/banner-util.js.map +1 -1
- package/package.json +9 -12
- package/src/cell.ts +1 -1
- package/src/init/init-manager.ts +1 -1
- package/src/init/templates.ts +0 -2
- package/src/package.spec.ts +1 -0
- package/src/props/props.ts +1 -1
- package/templates/accounts/tsconfig.json +7 -4
- package/templates/admin-app/tsconfig.json +7 -4
- package/templates/backend-app/package.json +3 -3
- package/templates/backend-app/test/home-controller.spec.ts +12 -9
- package/templates/backend-app/tsconfig.json +8 -5
- package/templates/cell-component/README.md +5 -14
- package/templates/cell-component/package.json +6 -6
- package/templates/cell-component/src/package.spec.ts +1 -0
- package/templates/cell-component/tsconfig.json +27 -1
- package/templates/database-app/tsconfig.json +7 -4
- package/templates/docker-app/tsconfig.json +7 -4
- package/templates/file-service/tsconfig.json +7 -4
- package/templates/jwt-app/package.json +3 -3
- package/templates/jwt-app/test/home-controller.spec.ts +12 -9
- package/templates/jwt-app/tsconfig.json +8 -5
- package/templates/microservice/examples/backend-app/tsconfig.json +7 -4
- package/templates/microservice/package.json +8 -11
- package/templates/microservice/packages/api/tsconfig.json +7 -4
- package/templates/microservice/packages/serviceA/tsconfig.json +7 -4
- package/templates/microservice/packages/serviceB/tsconfig.json +7 -4
- package/templates/microservice/tsconfig.json +7 -4
- package/templates/mycli/package.json +1 -1
- package/templates/mycli/tsconfig.json +7 -4
- package/templates/nest-app/test/app.e2e-spec.ts +1 -1
- package/templates/nest-app/tsconfig.build.json +9 -1
- package/templates/nest-app/tsconfig.json +7 -3
- package/templates/sample-app/tsconfig.json +7 -4
- package/templates/schedule/tsconfig.json +7 -4
- package/templates/standalone-app/tsconfig.json +7 -4
- package/templates/vue-app/tsconfig.json +6 -4
- package/LICENSE +0 -21
- package/templates/cell-component/.eslintrc.js +0 -10
- package/templates/microservice/lerna.json +0 -19
- package/templates/monorepo/.editorconfig +0 -12
- package/templates/monorepo/.eslintrc.js +0 -18
- package/templates/monorepo/.yarnrc +0 -1
- package/templates/monorepo/CHANGELOG.md +0 -5
- package/templates/monorepo/README.md +0 -0
- package/templates/monorepo/apps/sample-app/cell.yml +0 -0
- package/templates/monorepo/apps/sample-app/package.json +0 -33
- package/templates/monorepo/apps/sample-app/src/browser/assets/logo.png +0 -0
- package/templates/monorepo/apps/sample-app/src/browser/css-shims.d.ts +0 -30
- package/templates/monorepo/apps/sample-app/src/browser/hello.view.tsx +0 -31
- package/templates/monorepo/apps/sample-app/src/browser/module.ts +0 -3
- package/templates/monorepo/apps/sample-app/src/browser/style/hello.module.scss +0 -4
- package/templates/monorepo/apps/sample-app/src/common/welcome-protocol.ts +0 -5
- package/templates/monorepo/apps/sample-app/src/node/module.ts +0 -3
- package/templates/monorepo/apps/sample-app/src/node/welcome-server.ts +0 -9
- package/templates/monorepo/apps/sample-app/tsconfig.json +0 -30
- package/templates/monorepo/configs/root-compilation.tsconfig.json +0 -14
- package/templates/monorepo/configs/typedoc-tsconfig.json +0 -6
- package/templates/monorepo/configs/typedoc.json +0 -23
- package/templates/monorepo/lerna.json +0 -17
- package/templates/monorepo/package.json +0 -46
- package/templates/monorepo/packages/core/.eslintrc.js +0 -10
- package/templates/monorepo/packages/core/README.md +0 -1
- package/templates/monorepo/packages/core/cell.yml +0 -0
- package/templates/monorepo/packages/core/package.json +0 -40
- package/templates/monorepo/packages/core/src/browser/index.ts +0 -0
- package/templates/monorepo/packages/core/src/browser/module.ts +0 -4
- package/templates/monorepo/packages/core/src/common/index.ts +0 -0
- package/templates/monorepo/packages/core/src/common/module.ts +0 -4
- package/templates/monorepo/packages/core/src/node/index.ts +0 -0
- package/templates/monorepo/packages/core/src/node/module.ts +0 -4
- package/templates/monorepo/packages/core/src/package.spec.ts +0 -4
- package/templates/monorepo/packages/core/tsconfig.json +0 -13
- package/templates/monorepo/scripts/check-publish.js +0 -40
- package/templates/monorepo/scripts/compile-references.js +0 -286
- package/templates/monorepo/tsconfig.json +0 -20
- package/templates/monorepo/tsfmt.json +0 -3
- package/templates/puppeteer/.github/workflows/deploy.yml +0 -25
- package/templates/puppeteer/.vscode/launch.json +0 -23
- package/templates/puppeteer/README.md +0 -92
- package/templates/puppeteer/cell.yml +0 -11
- package/templates/puppeteer/package.json +0 -31
- package/templates/puppeteer/src/home-controller.ts +0 -11
- package/templates/puppeteer/src/module.ts +0 -5
- package/templates/puppeteer/src/puppeteer-controller.ts +0 -26
- package/templates/puppeteer/tsconfig.json +0 -29
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
"strictNullChecks": true,
|
|
11
11
|
"experimentalDecorators": true,
|
|
12
12
|
"emitDecoratorMetadata": true,
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"moduleResolution": "node",
|
|
13
|
+
"module": "node16",
|
|
14
|
+
"moduleResolution": "node16",
|
|
16
15
|
"jsx": "react",
|
|
17
16
|
"target": "ES2017",
|
|
18
17
|
"lib": [
|
|
@@ -21,7 +20,11 @@
|
|
|
21
20
|
],
|
|
22
21
|
"sourceMap": true,
|
|
23
22
|
"rootDir": "src",
|
|
24
|
-
"outDir": "lib"
|
|
23
|
+
"outDir": "lib",
|
|
24
|
+
"strict": false,
|
|
25
|
+
"types": [
|
|
26
|
+
"node"
|
|
27
|
+
]
|
|
25
28
|
},
|
|
26
29
|
"include": [
|
|
27
30
|
"src"
|
|
@@ -10,16 +10,19 @@
|
|
|
10
10
|
"strictNullChecks": true,
|
|
11
11
|
"experimentalDecorators": true,
|
|
12
12
|
"emitDecoratorMetadata": true,
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"moduleResolution": "node",
|
|
13
|
+
"module": "node16",
|
|
14
|
+
"moduleResolution": "node16",
|
|
16
15
|
"target": "ES2017",
|
|
17
16
|
"lib": [
|
|
18
17
|
"ES2017"
|
|
19
18
|
],
|
|
20
19
|
"sourceMap": true,
|
|
21
20
|
"rootDir": "src",
|
|
22
|
-
"outDir": "dist"
|
|
21
|
+
"outDir": "dist",
|
|
22
|
+
"strict": false,
|
|
23
|
+
"types": [
|
|
24
|
+
"node"
|
|
25
|
+
]
|
|
23
26
|
},
|
|
24
27
|
"include": [
|
|
25
28
|
"src"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "esnext",
|
|
4
|
-
"module": "
|
|
4
|
+
"module": "node16",
|
|
5
5
|
"strict": true,
|
|
6
6
|
"jsx": "preserve",
|
|
7
|
-
"moduleResolution": "
|
|
7
|
+
"moduleResolution": "node16",
|
|
8
8
|
"skipLibCheck": true,
|
|
9
9
|
"declaration": true,
|
|
10
10
|
"declarationMap": true,
|
|
@@ -15,14 +15,16 @@
|
|
|
15
15
|
"strictNullChecks": true,
|
|
16
16
|
"experimentalDecorators": true,
|
|
17
17
|
"emitDecoratorMetadata": true,
|
|
18
|
-
"downlevelIteration": true,
|
|
19
18
|
"lib": [
|
|
20
19
|
"ES2017",
|
|
21
20
|
"dom"
|
|
22
21
|
],
|
|
23
22
|
"sourceMap": true,
|
|
24
23
|
"rootDir": "src",
|
|
25
|
-
"outDir": "lib"
|
|
24
|
+
"outDir": "lib",
|
|
25
|
+
"types": [
|
|
26
|
+
"node"
|
|
27
|
+
]
|
|
26
28
|
},
|
|
27
29
|
"include": [
|
|
28
30
|
"src"
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Cellbang
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lerna": "2.2.0",
|
|
3
|
-
"npmClient": "yarn",
|
|
4
|
-
"useWorkspaces": true,
|
|
5
|
-
"version": "0.0.1",
|
|
6
|
-
"packages": [
|
|
7
|
-
"packages/*"
|
|
8
|
-
],
|
|
9
|
-
"command": {
|
|
10
|
-
"run": {
|
|
11
|
-
"stream": true
|
|
12
|
-
},
|
|
13
|
-
"publish": {
|
|
14
|
-
"forcePublish": true,
|
|
15
|
-
"skipGit": true,
|
|
16
|
-
"registry": "https://registry.npmjs.org/"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** @type {import('eslint').Linter.Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
root: true,
|
|
4
|
-
extends: [
|
|
5
|
-
require.resolve('@celljs/component/configs/base.eslintrc.json'),
|
|
6
|
-
require.resolve('@celljs/component/configs/warnings.eslintrc.json'),
|
|
7
|
-
require.resolve('@celljs/component/configs/errors.eslintrc.json'),
|
|
8
|
-
require.resolve('@celljs/component/configs/xss.eslintrc.json')
|
|
9
|
-
],
|
|
10
|
-
ignorePatterns: [
|
|
11
|
-
'**/{node_modules,lib}',
|
|
12
|
-
'plugins'
|
|
13
|
-
],
|
|
14
|
-
parserOptions: {
|
|
15
|
-
tsconfigRootDir: __dirname,
|
|
16
|
-
project: 'tsconfig.json'
|
|
17
|
-
}
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
unsafe-disable-integrity-migration true
|
|
File without changes
|
|
File without changes
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "@app/sample-app",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"cell-component"
|
|
6
|
-
],
|
|
7
|
-
"version": "0.0.0",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"files": [
|
|
10
|
-
"lib",
|
|
11
|
-
"src"
|
|
12
|
-
],
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@celljs/core": "2.42.0",
|
|
15
|
-
"@celljs/react": "2.42.0",
|
|
16
|
-
"@celljs/rpc": "2.42.0",
|
|
17
|
-
"@celljs/serve-static": "2.42.0",
|
|
18
|
-
"react": "^18.2.0",
|
|
19
|
-
"@app/core": "0.0.0"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@celljs/cli": "2.42.0"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"clean": "rimraf lib dist .cell",
|
|
26
|
-
"build": "cell build",
|
|
27
|
-
"start": "cell serve",
|
|
28
|
-
"deploy": "cell deploy -m scf -m test",
|
|
29
|
-
"deploy:test": "cell deploy -m scf -m test",
|
|
30
|
-
"deploy:pre": "cell deploy -m scf -m pre",
|
|
31
|
-
"deploy:prod": "cell deploy -m scf -m prod"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare module '*.css' {
|
|
2
|
-
const styles: {
|
|
3
|
-
[key: string]: string
|
|
4
|
-
}
|
|
5
|
-
export default styles
|
|
6
|
-
}
|
|
7
|
-
declare module '*.scss' {
|
|
8
|
-
const styles: {
|
|
9
|
-
[key: string]: string
|
|
10
|
-
}
|
|
11
|
-
export default styles
|
|
12
|
-
}
|
|
13
|
-
declare module '*.sass' {
|
|
14
|
-
const styles: {
|
|
15
|
-
[key: string]: string
|
|
16
|
-
}
|
|
17
|
-
export default styles
|
|
18
|
-
}
|
|
19
|
-
declare module '*.less' {
|
|
20
|
-
const styles: {
|
|
21
|
-
[key: string]: string
|
|
22
|
-
}
|
|
23
|
-
export default styles
|
|
24
|
-
}
|
|
25
|
-
declare module '*.styl' {
|
|
26
|
-
const styles: {
|
|
27
|
-
[key: string]: string
|
|
28
|
-
}
|
|
29
|
-
export default styles
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RpcUtil } from '@celljs/rpc/lib/common';
|
|
3
|
-
import { WelcomeServer } from '../common/welcome-protocol';
|
|
4
|
-
import { View } from '@celljs/react';
|
|
5
|
-
import styles from './style/hello.module.scss';
|
|
6
|
-
|
|
7
|
-
const Hello = () => {
|
|
8
|
-
const [ response, setResponse ] = React.useState('Loading');
|
|
9
|
-
React.useEffect(() => {
|
|
10
|
-
const welcomeServer = RpcUtil.get<WelcomeServer>(WelcomeServer);
|
|
11
|
-
const init = async () => {
|
|
12
|
-
setResponse(await welcomeServer.say());
|
|
13
|
-
}
|
|
14
|
-
init();
|
|
15
|
-
}, []);
|
|
16
|
-
|
|
17
|
-
return <div className={ styles.hello }>
|
|
18
|
-
<img alt="cell logo" src="./assets/logo.png"></img>
|
|
19
|
-
<div className="hello">
|
|
20
|
-
<h1>{response}</h1>
|
|
21
|
-
<p>
|
|
22
|
-
For a guide and recipes on how to configure / customize this project,<br />
|
|
23
|
-
check out the <a href="https://cell.cellbang.com/" target="_blank" rel="noopener">cell documentation</a>.
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@View({ index: true, component: Hello })
|
|
31
|
-
export default class {}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"skipLibCheck": true,
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"noImplicitAny": true,
|
|
8
|
-
"noEmitOnError": false,
|
|
9
|
-
"noImplicitThis": true,
|
|
10
|
-
"noUnusedLocals": true,
|
|
11
|
-
"strictNullChecks": true,
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"emitDecoratorMetadata": true,
|
|
14
|
-
"downlevelIteration": true,
|
|
15
|
-
"module": "commonjs",
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
"jsx": "react",
|
|
18
|
-
"target": "ES2017",
|
|
19
|
-
"lib": [
|
|
20
|
-
"ES2017",
|
|
21
|
-
"dom"
|
|
22
|
-
],
|
|
23
|
-
"sourceMap": true,
|
|
24
|
-
"rootDir": "src",
|
|
25
|
-
"outDir": "lib"
|
|
26
|
-
},
|
|
27
|
-
"include": [
|
|
28
|
-
"src"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"emit": "none",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"ignoreCompilerErrors": true,
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"noEmitOnError": true,
|
|
7
|
-
"allowJs": true
|
|
8
|
-
},
|
|
9
|
-
"exclude": [
|
|
10
|
-
"../+(apps|typings|scripts)/**",
|
|
11
|
-
"../packages/*/lib/**",
|
|
12
|
-
"**/node_modules/**",
|
|
13
|
-
"**/*.tsx",
|
|
14
|
-
"**/*spec.ts"
|
|
15
|
-
],
|
|
16
|
-
"excludeExternals": true,
|
|
17
|
-
"external-modulemap": ".*\/(packages)\/([\\w\\-_]+)\/",
|
|
18
|
-
"hideGenerator": true,
|
|
19
|
-
"name": "App TypeDoc",
|
|
20
|
-
"out": "../gh-pages/docs/next",
|
|
21
|
-
"readme": "../README.md",
|
|
22
|
-
"entryPointStrategy": "expand"
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lerna": "2.2.0",
|
|
3
|
-
"npmClient": "yarn",
|
|
4
|
-
"useWorkspaces": true,
|
|
5
|
-
"version": "0.0.0",
|
|
6
|
-
"command": {
|
|
7
|
-
"run": {
|
|
8
|
-
"stream": true
|
|
9
|
-
},
|
|
10
|
-
"publish": {
|
|
11
|
-
"graphType": "all",
|
|
12
|
-
"forcePublish": true,
|
|
13
|
-
"skipGit": true,
|
|
14
|
-
"registry": "https://registry.npmjs.org/"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"name": "monorepo",
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"engines": {
|
|
6
|
-
"yarn": ">=1.7.0 <2",
|
|
7
|
-
"node": ">=16"
|
|
8
|
-
},
|
|
9
|
-
"resolutions": {
|
|
10
|
-
"**/@types/node": "18"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"lerna": "^5.6.2",
|
|
14
|
-
"typedoc": "^0.23.21",
|
|
15
|
-
"typedoc-plugin-external-module-map": "~1.3.2",
|
|
16
|
-
"typedoc-plugin-remove-references": "^0.0.6",
|
|
17
|
-
"chai": "4.3.4",
|
|
18
|
-
"chai-spies": "1.0.0",
|
|
19
|
-
"chai-string": "^1.4.0"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"bootstrap": "lerna bootstrap",
|
|
23
|
-
"prepare": "yarn run prepare:references && yarn run prepare:build",
|
|
24
|
-
"prepare:references": "node scripts/compile-references.js",
|
|
25
|
-
"prepare:build": "yarn build && yarn run lint",
|
|
26
|
-
"build": "tsc -b configs/root-compilation.tsconfig.json",
|
|
27
|
-
"watch": "tsc -b configs/root-compilation.tsconfig.json -w",
|
|
28
|
-
"clean": "yarn lint:clean && lerna run clean",
|
|
29
|
-
"build:clean": "lerna run prepare",
|
|
30
|
-
"lint": "lerna run lint",
|
|
31
|
-
"lint:clean": "rimraf .eslintcache",
|
|
32
|
-
"lint:oneshot": "node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache=true \"{dev-packages,packages,examples}/**/*.{ts,tsx}\"",
|
|
33
|
-
"docs": "rimraf gh-pages/docs/next && typedoc --tsconfig tsconfig.json --options configs/typedoc.json .",
|
|
34
|
-
"test": "yarn test:references && yarn test:app",
|
|
35
|
-
"test:references": "node scripts/compile-references --dry-run",
|
|
36
|
-
"test:app": "lerna run test --scope \"@app/*!(-app)\" --stream --concurrency=1",
|
|
37
|
-
"publish": "yarn && yarn test && yarn publish:latest",
|
|
38
|
-
"publish:latest": "lerna publish --exact --ignore-scripts --yes --no-push && yarn -s publish:check",
|
|
39
|
-
"publish:next": "lerna publish preminor --exact --ignore-scripts --canary --preid next --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes && yarn publish:check",
|
|
40
|
-
"publish:check": "node scripts/check-publish.js"
|
|
41
|
-
},
|
|
42
|
-
"workspaces": [
|
|
43
|
-
"packages/*",
|
|
44
|
-
"apps/*"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# App - Core Component
|
|
File without changes
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@app/core",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "lib/common/index.js",
|
|
6
|
-
"typings": "lib/common/index.d.ts",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@celljs/core": "2.42.0"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"cell-component"
|
|
15
|
-
],
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/xxx/app.git"
|
|
20
|
-
},
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://github.com/xxx/app/issues"
|
|
23
|
-
},
|
|
24
|
-
"homepage": "https://github.com/xxx/app",
|
|
25
|
-
"files": [
|
|
26
|
-
"lib",
|
|
27
|
-
"src",
|
|
28
|
-
"cell.yml"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"lint": "cell-component lint",
|
|
32
|
-
"build": "cell-component build",
|
|
33
|
-
"watch": "cell-component watch",
|
|
34
|
-
"clean": "cell-component clean",
|
|
35
|
-
"test": "cell-component test:js"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@celljs/component": "2.42.0"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const chalk = require('chalk');
|
|
5
|
-
const cp = require('child_process');
|
|
6
|
-
const fs = require('fs');
|
|
7
|
-
|
|
8
|
-
checkPublish().catch(error => {
|
|
9
|
-
console.error(error);
|
|
10
|
-
process.exitCode = 1;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
async function checkPublish() {
|
|
14
|
-
const workspaces = JSON.parse(cp.execSync('yarn --silent workspaces info').toString());
|
|
15
|
-
await Promise.all(Object.values(workspaces).map(async workspace => {
|
|
16
|
-
const packagePath = path.resolve(workspace.location, 'package.json');
|
|
17
|
-
const pck = JSON.parse(await fs.promises.readFile(packagePath, 'utf8'));
|
|
18
|
-
if (!pck.private) {
|
|
19
|
-
const pckName = `${pck.name}@${pck.version}`;
|
|
20
|
-
const npmViewOutput = await new Promise(
|
|
21
|
-
resolve => cp.exec(`npm view ${pckName} version --json`,
|
|
22
|
-
(error, stdout, stderr) => {
|
|
23
|
-
if (error) {
|
|
24
|
-
console.error(error);
|
|
25
|
-
resolve('');
|
|
26
|
-
} else {
|
|
27
|
-
resolve(stdout.trim());
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
if (npmViewOutput) {
|
|
33
|
-
console.info(`${pckName}: published`);
|
|
34
|
-
} else {
|
|
35
|
-
console.error(`(${chalk.red('ERR')}) ${pckName}: ${chalk.red('NOT')} published`);
|
|
36
|
-
process.exitCode = 1;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
}
|