Skip to content

Commit

Permalink
Merge branch 'master' of github.com:uiwjs/react-codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 30, 2020
2 parents b951963 + dc578fb commit 5b30c1f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 21,421 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Actions Build and Deploy @uiw/react-codemirror
name: Build & Deploy
on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build
lib
!src/lib
npm-debug.log*
package-lock.json
.DS_Store
.cache
.rdoc-dist
Expand Down
34 changes: 17 additions & 17 deletions .kktrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import path from 'path';
import webpack from 'webpack';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export const loaderOneOf = [
require.resolve('@kkt/loader-less'),
require.resolve('@kkt/loader-raw')
];

export const moduleScopePluginOpts = [
path.resolve(process.cwd(), 'README.md')
];

export default (conf, opts, webpack) => {
const pkg = require(path.resolve(process.cwd(), 'package.json'));

export default (conf, env, options) => {
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [
path.resolve(process.cwd(), 'README.md')
]
});
conf = lessModules(conf, env, options);
// Get the project version.
conf.plugins.push(
new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
})
);
conf.plugins.push(new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
}));
conf.output = { ...conf.output, publicPath: './' }
return conf;
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
react-codemirror
===

![Build & Deploy](https://github.com/uiwjs/react-codemirror/workflows/Build%20&%20Deploy/badge.svg)

CodeMirror component for React. demo @[uiwjs.github.io/react-codemirror/](https://uiwjs.github.io/react-codemirror/)

<a href="https://uiwjs.github.io/react-codemirror/"><img src="https://raw.githubusercontent.com/uiwjs/react-codemirror/master/react-codemirror.png" /></a>
Expand Down
Loading

0 comments on commit 5b30c1f

Please sign in to comment.