Skip to content

Commit

Permalink
releases: 7.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Dec 4, 2018
1 parent b992ad7 commit ba9ccd7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
11 changes: 3 additions & 8 deletions components/schematics/shell/custom-theme.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import {Project} from '../utils/devkit-utils/config';
import { Project } from '../utils/devkit-utils/config';

/** Create custom theme for the given application configuration. */
export function createCustomTheme(project: Project) {
const name = project.name || 'app';
return `// cli v6 bug,暂不支持 ~weui 写法,相关ISSUES
// - [#10717](https://github.com/angular/angular-cli/issues/10717)
// - [#10721](https://github.com/angular/angular-cli/issues/10721)
// @import '~weui/src/style/weui.less';
// @import '~ngx-weui/index';
@import 'node_modules/weui/src/style/weui.less';
@import 'node_modules/ngx-weui/index';
return `@import '~weui/src/style/weui.less';
@import '~ngx-weui/index';
// [自定义主题](https://cipchk.github.io/ngx-weui/#/docs/style)
// @weuiFontDefault: "Helvetica Neue";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-weui",
"version": "7.0.0-rc.0",
"version": "7.0.0-rc.1",
"description": "weui for angular",
"repository": {
"type": "git",
Expand Down
12 changes: 12 additions & 0 deletions scripts/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ updateVersionReferences() {
)
}

buildSchematics() {
echo '>> Compiling schematics'
schematics_source_dir=${PWD}/components/schematics/
schematics_dist_dir=${PWD}/publish/schematics/
$(npm bin)/tsc -p ${schematics_source_dir}tsconfig.json
echo '>>>> Coping all json files'
rsync -am --include="*.json" --include="*/" --exclude=* ${schematics_source_dir}/ ${schematics_dist_dir}/
}

PWD=`pwd`
VERSION=$(node -p "require('./package.json').version")
SOURCE=${PWD}/components
Expand All @@ -49,5 +58,8 @@ updateVersionReferences ${DIST}
echo ">> generate css"
node ./scripts/build/generate-css.js

echo 'Build schematics'
buildSchematics

# copy readme
cp README.md ${DIST}/README.md

0 comments on commit ba9ccd7

Please sign in to comment.