Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from weseek/imprv/stop-babelifying
Browse files Browse the repository at this point in the history
Imprv/stop babelifying
  • Loading branch information
yuki-takei authored Dec 4, 2018
2 parents 6d6bdd5 + ddc7b61 commit 4c0c3ff
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 31 deletions.
2 changes: 0 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"react"
],
"plugins": [
"add-module-exports",
"transform-class-properties"
],
"env": {
"development": {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"main": "lib/index.js",
"files": [
"lib"
"lib", "src"
],
"scripts": {
"build:watch": "npm run build -- --watch",
Expand Down Expand Up @@ -36,8 +36,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-env": "^1.6.0",
"babel-preset-power-assert": "^2.0.0",
"babel-preset-react": "^6.24.1",
Expand Down
4 changes: 2 additions & 2 deletions src/client-entry.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { LsxPreRenderInterceptor } from './resource/js/util/Interceptor/LsxPreRenderInterceptor';
import { LsxPostRenderInterceptor } from './resource/js/util/Interceptor/LsxPostRenderInterceptor';

export default (crowi, crowiRenderer) => {
module.exports = (crowi, crowiRenderer) => {
// add interceptors
crowi.interceptorManager.addInterceptors([
new LsxPreRenderInterceptor(crowi),
new LsxPostRenderInterceptor(crowi),
]);
}
};
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './meta';
module.exports = require('./meta');
2 changes: 1 addition & 1 deletion src/meta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');

export default {
module.exports = {
pluginSchemaVersion: 2,
serverEntries: [
path.join(__dirname, 'server-entry.js')
Expand Down
4 changes: 0 additions & 4 deletions src/resource/js/components/PageNode.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
export class PageNode {

pagePath;
page;
children;

constructor(pagePath) {
this.pagePath = pagePath;
this.children = [];
Expand Down
2 changes: 1 addition & 1 deletion src/server-entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default (crowi, app) => {
module.exports = (crowi, app) => {
// add routes
require('./lib/routes')(crowi, app);
}
17 changes: 0 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,6 @@ babel-messages@^6.23.0:
dependencies:
babel-runtime "^6.22.0"

babel-plugin-add-module-exports@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25"

babel-plugin-check-es2015-constants@^6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
Expand All @@ -374,10 +370,6 @@ babel-plugin-syntax-async-functions@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"

babel-plugin-syntax-class-properties@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"

babel-plugin-syntax-exponentiation-operator@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
Expand All @@ -402,15 +394,6 @@ babel-plugin-transform-async-to-generator@^6.22.0:
babel-plugin-syntax-async-functions "^6.8.0"
babel-runtime "^6.22.0"

babel-plugin-transform-class-properties@^6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
dependencies:
babel-helper-function-name "^6.24.1"
babel-plugin-syntax-class-properties "^6.8.0"
babel-runtime "^6.22.0"
babel-template "^6.24.1"

babel-plugin-transform-es2015-arrow-functions@^6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
Expand Down

0 comments on commit 4c0c3ff

Please sign in to comment.