File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
components/schematics/shell Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
- import { Project } from '../utils/devkit-utils/config' ;
1
+ import { Project } from '../utils/devkit-utils/config' ;
2
2
3
3
/** Create custom theme for the given application configuration. */
4
4
export function createCustomTheme ( project : Project ) {
5
5
const name = project . name || 'app' ;
6
- return `// cli v6 bug,暂不支持 ~weui 写法,相关ISSUES
7
- // - [#10717](https://github.com/angular/angular-cli/issues/10717)
8
- // - [#10721](https://github.com/angular/angular-cli/issues/10721)
9
- // @import '~weui/src/style/weui.less';
10
- // @import '~ngx-weui/index';
11
- @import 'node_modules/weui/src/style/weui.less';
12
- @import 'node_modules/ngx-weui/index';
6
+ return `@import '~weui/src/style/weui.less';
7
+ @import '~ngx-weui/index';
13
8
14
9
// [自定义主题](https://cipchk.github.io/ngx-weui/#/docs/style)
15
10
// @weuiFontDefault: "Helvetica Neue";
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ngx-weui" ,
3
- "version" : " 7.0.0-rc.0 " ,
3
+ "version" : " 7.0.0-rc.1 " ,
4
4
"description" : " weui for angular" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ updateVersionReferences() {
26
26
)
27
27
}
28
28
29
+ buildSchematics () {
30
+ echo ' >> Compiling schematics'
31
+ schematics_source_dir=${PWD} /components/schematics/
32
+ schematics_dist_dir=${PWD} /publish/schematics/
33
+ $( npm bin) /tsc -p ${schematics_source_dir} tsconfig.json
34
+ echo ' >>>> Coping all json files'
35
+ rsync -am --include=" *.json" --include=" */" --exclude=* ${schematics_source_dir} / ${schematics_dist_dir} /
36
+ }
37
+
29
38
PWD=` pwd`
30
39
VERSION=$( node -p " require('./package.json').version" )
31
40
SOURCE=${PWD} /components
@@ -49,5 +58,8 @@ updateVersionReferences ${DIST}
49
58
echo " >> generate css"
50
59
node ./scripts/build/generate-css.js
51
60
61
+ echo ' Build schematics'
62
+ buildSchematics
63
+
52
64
# copy readme
53
65
cp README.md ${DIST} /README.md
You can’t perform that action at this time.
0 commit comments