Skip to content

Commit

Permalink
docs: add docz to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Feb 7, 2019
1 parent 509a5ec commit 8433468
Show file tree
Hide file tree
Showing 28 changed files with 14,026 additions and 232 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ about: Suggest an idea for this project

- [ ] Web
- [ ] Native (Mobile)
- [ ] Server

<!--- Describe how this affects the above environments -->
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ tmp**
dependencies/**/yarn.lock

./**/.vscode


.docz
3 changes: 0 additions & 3 deletions @remirror/remirror/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ module.exports = {
displayName: 'remirror',
setupFilesAfterEnv: [join(__dirname, 'jest.framework.ts')],
testEnvironment: 'jsdom',
moduleNameMapper: {
'@test-utils$': join(__dirname, 'src', '__tests__', 'test-utils.tsx'),
},
};
4 changes: 0 additions & 4 deletions @remirror/sample/package.json

This file was deleted.

22 changes: 1 addition & 21 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
module.exports = {
sourceMaps: true,
plugins: [
'@babel/plugin-transform-arrow-functions',
'@babel/plugin-proposal-class-properties',
'babel-plugin-styled-components',
'lodash',
],
presets: [
[
'@babel/preset-env',
{
targets: {
node: '8',
},
},
],
'@babel/preset-typescript',
],
babelrcRoots: ['./', './@remirror/*'],
};
module.exports = require('./config/base.babel');
6 changes: 5 additions & 1 deletion base.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"experimentalDecorators": true,
"strict": true,
"alwaysStrict": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"baseUrl": "./",
"paths": {
"@test-utils": ["@remirror/remirror/src/__tests__/test-utils.tsx"]
}
}
}
2 changes: 1 addition & 1 deletion config/base.babel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
sourceMaps: true,
presets: [
[
'@babel/preset-env',
Expand All @@ -10,6 +9,7 @@ module.exports = {
},
],
'@babel/preset-typescript',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
Expand Down
7 changes: 6 additions & 1 deletion config/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const { join } = require('path');
const { join, resolve } = require('path');

const baseDir = (...paths) => resolve(__dirname, '..', join(...paths));

const testRegex = process.env.TEST_ENV
? '/__tests__/.*\\.(spec|test)\\.tsx?$'
Expand Down Expand Up @@ -32,4 +34,7 @@ module.exports = {
setupFilesAfterEnv: [join(__dirname, 'jest.framework.ts')],
cacheDirectory: '../../.jest/cache',
testEnvironment: 'node',
moduleNameMapper: {
'@test-utils$': baseDir('@remirror', 'remirror', 'src', '__tests__', 'test-utils.tsx'),
},
};
6 changes: 6 additions & 0 deletions docz/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const defaultConfig = require('../config/base.babel');

module.exports = {
...defaultConfig,
presets: [...defaultConfig.presets, '@emotion/babel-preset-css-prop'],
};

0 comments on commit 8433468

Please sign in to comment.