偏右
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
25 additions and
3 deletions
-
README.md
-
appveyor.yml
-
tests/run-tests.js
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
# Ant Design Pro |
|
|
# Ant Design Pro |
|
|
|
|
|
|
|
|
[](https://travis-ci.org/ant-design/ant-design-pro) [](https://gitter.im/ant-design/ant-design-pro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) |
|
|
[](https://travis-ci.org/ant-design/ant-design-pro) [](https://ci.appveyor.com/project/afc163/ant-design-pro/branch/master) [](https://gitter.im/ant-design/ant-design-pro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) |
|
|
|
|
|
|
|
|
开箱即用的中台前端/设计解决方案。 |
|
|
开箱即用的中台前端/设计解决方案。 |
|
|
|
|
|
|
|
|
|
|
|
@ -0,0 +1,22 @@ |
|
|
|
|
|
# Test against the latest version of this Node.js version |
|
|
|
|
|
environment: |
|
|
|
|
|
nodejs_version: "8" |
|
|
|
|
|
|
|
|
|
|
|
# Install scripts. (runs after repo cloning) |
|
|
|
|
|
install: |
|
|
|
|
|
# Get the latest stable version of Node.js or io.js |
|
|
|
|
|
- ps: Install-Product node $env:nodejs_version |
|
|
|
|
|
# install modules |
|
|
|
|
|
- npm install |
|
|
|
|
|
# Output useful info for debugging. |
|
|
|
|
|
- node --version |
|
|
|
|
|
- npm --version |
|
|
|
|
|
|
|
|
|
|
|
# Post-install test scripts. |
|
|
|
|
|
test_script: |
|
|
|
|
|
- npm run lint |
|
|
|
|
|
- npm run test:all |
|
|
|
|
|
- npm run build |
|
|
|
|
|
|
|
|
|
|
|
# Don't actually build. |
|
|
|
|
|
build: off |
|
|
@ -3,7 +3,7 @@ const { kill } = require('cross-port-killer'); |
|
|
|
|
|
|
|
|
const env = Object.create(process.env); |
|
|
const env = Object.create(process.env); |
|
|
env.BROWSER = 'none'; |
|
|
env.BROWSER = 'none'; |
|
|
const startServer = spawn('npm', ['start'], { |
|
|
const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['start'], { |
|
|
env, |
|
|
env, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ startServer.stdout.on('data', (data) => { |
|
|
data.toString().indexOf('Compiled with warnings') >= 0) { |
|
|
data.toString().indexOf('Compiled with warnings') >= 0) { |
|
|
// eslint-disable-next-line
|
|
|
// eslint-disable-next-line
|
|
|
console.log('Development server is started, ready to run tests.'); |
|
|
console.log('Development server is started, ready to run tests.'); |
|
|
const testCmd = spawn('npm', ['test'], { |
|
|
const testCmd = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['test'], { |
|
|
stdio: 'inherit', |
|
|
stdio: 'inherit', |
|
|
}); |
|
|
}); |
|
|
testCmd.on('exit', () => { |
|
|
testCmd.on('exit', () => { |
|
|
|