forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: sync ant-design v3.19.6 (NG-ZORRO#3602) * fix(module:table): fix sortChange with dynamic columns (NG-ZORRO#3603) (NG-ZORRO#3605) close NG-ZORRO#3603 * chore: sync with antd 3.19 (NG-ZORRO#3590) * chore: sync with antd 3.19 * test(module:page-header): fix test * chore: refactor commit hook (NG-ZORRO#3610) * chore: refactor commit hook * chore(packaging): clean dependencie * chore(packaging): clean dev dependencie * chore: refactor commit hook (NG-ZORRO#3610) * chore: refactor commit hook * chore(packaging): clean dependencie * chore(packaging): clean dev dependencie * chore: refactor commit hook (NG-ZORRO#3610) * chore: refactor commit hook * chore(packaging): clean dependencie * chore(packaging): clean dev dependencie * build: refactor scripts ref NG-ZORRO#2474 * chore: update ci config * ci: fix integration * ci: add travis_wait * ci: fix ci * ci: fix ci * ci: fix ci * ci: fix ci * ci: fix ci * chore: fix type * build: add site release scripts * build: _ * build: add `test:watch` task * build: fix `test:watch` task * chore: bump node to 12.1.0 * ci: add now.json
- Loading branch information
Showing
58 changed files
with
1,262 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.9.0 | ||
12.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const {join} = require('path'); | ||
|
||
const packageJson = require('./package.json'); | ||
const buildVersion = packageJson.version; | ||
|
||
module.exports = { | ||
projectVersion: buildVersion, | ||
projectDir: __dirname, | ||
componentsDir: join(__dirname, 'components'), | ||
scriptsDir: join(__dirname, 'scripts'), | ||
outputDir: join(__dirname, 'dist'), | ||
publishDir: join(__dirname, 'publish'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'use strict'; | ||
const message = process.env['HUSKY_GIT_PARAMS']; | ||
const fs = require('fs'); | ||
|
||
const types = [ | ||
'build', | ||
"chore", | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
"release", | ||
'revert', | ||
'style', | ||
'test' | ||
]; | ||
|
||
const scopes = [ | ||
"showcase", | ||
"packaging", | ||
"changelog", | ||
"schematics", | ||
"module:*" | ||
]; | ||
|
||
function parseMessage(message) { | ||
const PATTERN = /^(\w+)(?:\(([^)]+)\))?\: (.+)$/; | ||
const match = PATTERN.exec(message); | ||
if (!match) { | ||
return null; | ||
} | ||
return { | ||
type: match[1] || null, | ||
scope: match[2] || null, | ||
} | ||
} | ||
|
||
function getScopesRule() { | ||
const messages = fs.readFileSync(message, {encoding: 'utf-8'}); | ||
const parsed = parseMessage(messages.split('\n')[0]); | ||
if (!parsed) { | ||
return [2, 'always', scopes] | ||
} | ||
const { scope, type } = parsed; | ||
if (scope && !scopes.includes(scope) && type !== 'release' && !/module:.+/.test(scope)) { | ||
return [2, 'always', scopes] | ||
} else { | ||
return [2, 'always', []] | ||
} | ||
} | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
rules: { | ||
'type-enum': [2, 'always', types], | ||
'scope-enum': getScopesRule | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Alibaba.com All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE | ||
*/ | ||
|
||
export * from './public-api'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Alibaba.com All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE | ||
*/ | ||
|
||
export * from './break-point'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,40 @@ | ||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files | ||
|
||
// tslint:disable-next-line:no-import-side-effect | ||
import 'zone.js/dist/zone-testing'; | ||
|
||
import { getTestBed } from '@angular/core/testing'; | ||
import { | ||
BrowserDynamicTestingModule, | ||
platformBrowserDynamicTesting | ||
platformBrowserDynamicTesting, | ||
BrowserDynamicTestingModule | ||
} from '@angular/platform-browser-dynamic/testing'; | ||
|
||
// tslint:disable-next-line:no-any | ||
declare const __karma__: any; | ||
// tslint:disable-next-line:no-any | ||
declare const require: any; | ||
|
||
const tags = __karma__.config.args[0]; | ||
// First, initialize the Angular testing environment. | ||
getTestBed().initTestEnvironment( | ||
BrowserDynamicTestingModule, | ||
platformBrowserDynamicTesting() | ||
); | ||
|
||
let filterRegExp: RegExp; | ||
|
||
if (tags) { | ||
filterRegExp = new RegExp(`(${tags})\\.spec\\.ts$`); | ||
} else { | ||
filterRegExp = /\.spec\.ts$/; | ||
} | ||
|
||
// Then we find all the tests. | ||
const context = require.context('./', true, /\.spec\.ts$/); | ||
// Filter specify file | ||
const specFiles = context.keys().filter((path: string) => { | ||
console.log(filterRegExp); | ||
return filterRegExp.test(path); | ||
}); | ||
// And load the modules. | ||
context.keys().map(context); | ||
specFiles.map(context); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const path = require('path'); | ||
|
||
const projectDir = __dirname; | ||
const tsconfigPath = path.join(projectDir, 'scripts/gulp/tsconfig.json'); | ||
|
||
if (projectDir.includes(' ')) { | ||
console.error('Error: Cannot run the build tasks if the project is ' + | ||
'located in a directory with spaces in between. Please rename your project directory.'); | ||
process.exit(1); | ||
} | ||
|
||
// Register TS compilation. | ||
require('ts-node').register({ | ||
project: tsconfigPath | ||
}); | ||
|
||
require('./scripts/gulp/gulpfile'); |
Oops, something went wrong.