mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
22 lines
619 B
JavaScript
Executable File
22 lines
619 B
JavaScript
Executable File
#! /usr/bin/env node
|
|
|
|
/* eslint strict: 0 */
|
|
'use strict';
|
|
|
|
// Ensure that data directory exist.
|
|
require('mkdirp').sync('./_data');
|
|
|
|
const buildDemosList = require('./build-demos-list');
|
|
buildDemosList(['./components', './docs'], './_data/demos-list.js');
|
|
|
|
const buildCommon = require('./build-common');
|
|
buildCommon([
|
|
'./components',
|
|
'./docs/react',
|
|
'./CHANGELOG.md',
|
|
], './_data/react-components.js');
|
|
buildCommon('./docs/practice', './_data/practice.js');
|
|
buildCommon('./docs/pattern', './_data/pattern.js');
|
|
buildCommon('./docs/spec', './_data/spec.js');
|
|
buildCommon('./docs/resource', './_data/resource.js');
|