Built with our own fork of babel, whoo! (this fork is usable in external projects when building CSX-projects, it's class-properties proposal + decorators actually works...)
This commit is contained in:
parent
75923aba90
commit
651a96a227
32
package.json
32
package.json
@ -3,17 +3,17 @@
|
||||
"version": "0.0.1",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "latest",
|
||||
"@babel/core": "7.7.0",
|
||||
"@babel/plugin-proposal-class-properties": "latest",
|
||||
"@babel/plugin-proposal-decorators": "latest",
|
||||
"@babel/plugin-proposal-export-default-from": "latest",
|
||||
"@babel/plugin-proposal-export-namespace-from": "latest",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "latest",
|
||||
"@babel/plugin-proposal-optional-chaining": "latest",
|
||||
"@babel/plugin-proposal-private-methods": "latest",
|
||||
"@babel/plugin-transform-react-jsx": "latest",
|
||||
"@babel/preset-env": "latest",
|
||||
"@babel/cli": "csx",
|
||||
"@babel/core": "csx",
|
||||
"@babel/plugin-proposal-class-properties": "csx",
|
||||
"@babel/plugin-proposal-decorators": "csx",
|
||||
"@babel/plugin-proposal-export-default-from": "csx",
|
||||
"@babel/plugin-proposal-export-namespace-from": "csx",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "csx",
|
||||
"@babel/plugin-proposal-optional-chaining": "csx",
|
||||
"@babel/plugin-proposal-private-methods": "csx",
|
||||
"@babel/plugin-transform-react-jsx": "csx",
|
||||
"@babel/preset-env": "csx",
|
||||
"jsdoc": "latest",
|
||||
"sass": "latest",
|
||||
"rollup": "latest",
|
||||
@ -27,16 +27,16 @@
|
||||
"npm-run-all": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "npm-run-all -p watch:babel-transform-csx watch:csx-custom-elements watch:test start:test",
|
||||
"build": "npm-run-all -s build:babel-transform-csx build:csx-custom-elements build:test",
|
||||
"watch": "npm-run-all -p watch:babel-transform-csx watch:csx-custom-elements watch:test",
|
||||
"dev": "npm-run-all -p watch:babel-transform-csx watch:csx watch:test start:test",
|
||||
"build": "npm-run-all -s build:babel-transform-csx build:csx build:test",
|
||||
"watch": "npm-run-all -p watch:babel-transform-csx watch:csx watch:test",
|
||||
"start:test": "serve public",
|
||||
"build:test": "rollup -c",
|
||||
"watch:test": "rollup -c -w",
|
||||
"build:babel-transform-csx": "cd packages/babel-plugin-transform-csx && npm run build",
|
||||
"build:csx-custom-elements": "cd packages/csx && npm run build",
|
||||
"build:csx": "cd packages/csx && npm run build",
|
||||
"watch:babel-transform-csx": "cd packages/babel-plugin-transform-csx && npm run watch",
|
||||
"watch:csx-custom-elements": "cd packages/csx && npm run watch"
|
||||
"watch:csx": "cd packages/csx && npm run watch-es6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@babel/helpers": "file:./packages/babel-helpers"
|
||||
|
||||
@ -9,7 +9,7 @@ A babel plugin to transform the JSX (e.g. ```<div>{this.helloWorld}</div>``` ) i
|
||||
### Installation
|
||||
|
||||
```
|
||||
npm install @cerxes/babel-plugin-transform-csx --save-dev --registry http://npm.cerxes.net
|
||||
npm install @cerxes/babel-plugin-transform-csx --save-dev --registry https://npm.cerxes.net
|
||||
```
|
||||
And in your .babelrc file:
|
||||
```
|
||||
|
||||
@ -9,18 +9,18 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"esutils": "^2.0.3",
|
||||
"@babel/cli": "7.6.4",
|
||||
"@babel/plugin-proposal-class-properties": "latest",
|
||||
"@babel/plugin-proposal-decorators": "latest",
|
||||
"@babel/plugin-proposal-export-default-from": "latest",
|
||||
"@babel/plugin-proposal-export-namespace-from": "latest",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "latest",
|
||||
"@babel/plugin-proposal-optional-chaining": "latest",
|
||||
"@babel/plugin-proposal-private-methods": "latest",
|
||||
"@babel/preset-env": "latest",
|
||||
"@babel/helper-builder-react-jsx": "7.3.0",
|
||||
"@babel/helper-plugin-utils": "7.0.0",
|
||||
"@babel/plugin-syntax-jsx": "7.2.0",
|
||||
"@babel/cli": "csx",
|
||||
"@babel/plugin-proposal-class-properties": "csx",
|
||||
"@babel/plugin-proposal-decorators": "csx",
|
||||
"@babel/plugin-proposal-export-default-from": "csx",
|
||||
"@babel/plugin-proposal-export-namespace-from": "csx",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "csx",
|
||||
"@babel/plugin-proposal-optional-chaining": "csx",
|
||||
"@babel/plugin-proposal-private-methods": "csx",
|
||||
"@babel/preset-env": "csx",
|
||||
"@babel/helper-builder-react-jsx": "csx",
|
||||
"@babel/helper-plugin-utils": "csx",
|
||||
"@babel/plugin-syntax-jsx": "csx",
|
||||
"jsdoc": "latest",
|
||||
"rollup": "latest",
|
||||
"rollup-plugin-babel": "latest",
|
||||
@ -31,7 +31,7 @@
|
||||
"npm-run-all": "latest"
|
||||
},
|
||||
"dependencies":{
|
||||
"@babel/core": "7.6.4"
|
||||
"@babel/core": "csx"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@ Thus removing the need for the clumsy setState({...}) method, which is now inste
|
||||
### Installation
|
||||
|
||||
```
|
||||
npm install @cerxes/csx --save-dev --registry http://npm.cerxes.net
|
||||
npm install @cerxes/csx --save-dev --registry https://npm.cerxes.net
|
||||
```
|
||||
|
||||
### Configure
|
||||
|
||||
@ -9,23 +9,23 @@
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "latest",
|
||||
"@babel/core": "^7.7.2",
|
||||
"@babel/plugin-proposal-class-properties": "latest",
|
||||
"@babel/plugin-proposal-decorators": "latest",
|
||||
"@babel/plugin-proposal-export-default-from": "latest",
|
||||
"@babel/plugin-proposal-export-namespace-from": "latest",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "latest",
|
||||
"@babel/plugin-proposal-optional-chaining": "latest",
|
||||
"@babel/plugin-proposal-private-methods": "latest",
|
||||
"@babel/preset-env": "latest",
|
||||
"@babel/cli": "csx",
|
||||
"@babel/core": "csx",
|
||||
"@babel/plugin-proposal-class-properties": "csx",
|
||||
"@babel/plugin-proposal-decorators": "csx",
|
||||
"@babel/plugin-proposal-export-default-from": "csx",
|
||||
"@babel/plugin-proposal-export-namespace-from": "csx",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "csx",
|
||||
"@babel/plugin-proposal-optional-chaining": "csx",
|
||||
"@babel/plugin-proposal-private-methods": "csx",
|
||||
"@babel/preset-env": "csx",
|
||||
"jsdoc": "latest",
|
||||
"rollup": "latest",
|
||||
"rollup-plugin-babel": "latest",
|
||||
"rollup-plugin-node-resolve": "latest",
|
||||
"rollup-plugin-commonjs": "latest",
|
||||
"rollup-plugin-terser": "latest",
|
||||
"rollup-plugin-json": "latest",
|
||||
"rollup": "1.25.0",
|
||||
"rollup-plugin-babel": "4.3.3-csx",
|
||||
"rollup-plugin-node-resolve": "5.2.0",
|
||||
"rollup-plugin-terser": "5.1.2",
|
||||
"rollup-plugin-json": "4.0.0",
|
||||
"acorn-private-class-elements": "0.1.2",
|
||||
"npm-run-all": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@ -3,7 +3,6 @@ import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
import json from "rollup-plugin-json";
|
||||
|
||||
// `npm run build` -> `production` is true
|
||||
// `npm run dev` -> `production` is false
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
@ -20,8 +19,6 @@ export default {
|
||||
babel(), // babel (the reason we're doing all of this, babel transpiling)
|
||||
resolve({// node_modules (again we have to add support in rollup for something that is NodeJS default)
|
||||
}),
|
||||
commonjs({ // CJS-modules (require-style bundle support, again something rollup doesnt handle by default)
|
||||
}),
|
||||
production && terser() // minify, but only in production
|
||||
],
|
||||
external: [
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user