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:
Miel Truyen 2019-11-15 01:36:08 +01:00
parent 75923aba90
commit 651a96a227
9 changed files with 3084 additions and 3014 deletions

View File

@ -3,17 +3,17 @@
"version": "0.0.1", "version": "0.0.1",
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@babel/cli": "latest", "@babel/cli": "csx",
"@babel/core": "7.7.0", "@babel/core": "csx",
"@babel/plugin-proposal-class-properties": "latest", "@babel/plugin-proposal-class-properties": "csx",
"@babel/plugin-proposal-decorators": "latest", "@babel/plugin-proposal-decorators": "csx",
"@babel/plugin-proposal-export-default-from": "latest", "@babel/plugin-proposal-export-default-from": "csx",
"@babel/plugin-proposal-export-namespace-from": "latest", "@babel/plugin-proposal-export-namespace-from": "csx",
"@babel/plugin-proposal-nullish-coalescing-operator": "latest", "@babel/plugin-proposal-nullish-coalescing-operator": "csx",
"@babel/plugin-proposal-optional-chaining": "latest", "@babel/plugin-proposal-optional-chaining": "csx",
"@babel/plugin-proposal-private-methods": "latest", "@babel/plugin-proposal-private-methods": "csx",
"@babel/plugin-transform-react-jsx": "latest", "@babel/plugin-transform-react-jsx": "csx",
"@babel/preset-env": "latest", "@babel/preset-env": "csx",
"jsdoc": "latest", "jsdoc": "latest",
"sass": "latest", "sass": "latest",
"rollup": "latest", "rollup": "latest",
@ -27,16 +27,16 @@
"npm-run-all": "latest" "npm-run-all": "latest"
}, },
"scripts": { "scripts": {
"dev": "npm-run-all -p watch:babel-transform-csx watch:csx-custom-elements watch:test start: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-custom-elements build: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-custom-elements watch:test", "watch": "npm-run-all -p watch:babel-transform-csx watch:csx watch:test",
"start:test": "serve public", "start:test": "serve public",
"build:test": "rollup -c", "build:test": "rollup -c",
"watch:test": "rollup -c -w", "watch:test": "rollup -c -w",
"build:babel-transform-csx": "cd packages/babel-plugin-transform-csx && npm run build", "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: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": { "resolutions": {
"@babel/helpers": "file:./packages/babel-helpers" "@babel/helpers": "file:./packages/babel-helpers"

View File

@ -9,7 +9,7 @@ A babel plugin to transform the JSX (e.g. ```<div>{this.helloWorld}</div>``` ) i
### Installation ### 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: And in your .babelrc file:
``` ```

View File

@ -9,18 +9,18 @@
}, },
"devDependencies": { "devDependencies": {
"esutils": "^2.0.3", "esutils": "^2.0.3",
"@babel/cli": "7.6.4", "@babel/cli": "csx",
"@babel/plugin-proposal-class-properties": "latest", "@babel/plugin-proposal-class-properties": "csx",
"@babel/plugin-proposal-decorators": "latest", "@babel/plugin-proposal-decorators": "csx",
"@babel/plugin-proposal-export-default-from": "latest", "@babel/plugin-proposal-export-default-from": "csx",
"@babel/plugin-proposal-export-namespace-from": "latest", "@babel/plugin-proposal-export-namespace-from": "csx",
"@babel/plugin-proposal-nullish-coalescing-operator": "latest", "@babel/plugin-proposal-nullish-coalescing-operator": "csx",
"@babel/plugin-proposal-optional-chaining": "latest", "@babel/plugin-proposal-optional-chaining": "csx",
"@babel/plugin-proposal-private-methods": "latest", "@babel/plugin-proposal-private-methods": "csx",
"@babel/preset-env": "latest", "@babel/preset-env": "csx",
"@babel/helper-builder-react-jsx": "7.3.0", "@babel/helper-builder-react-jsx": "csx",
"@babel/helper-plugin-utils": "7.0.0", "@babel/helper-plugin-utils": "csx",
"@babel/plugin-syntax-jsx": "7.2.0", "@babel/plugin-syntax-jsx": "csx",
"jsdoc": "latest", "jsdoc": "latest",
"rollup": "latest", "rollup": "latest",
"rollup-plugin-babel": "latest", "rollup-plugin-babel": "latest",
@ -31,7 +31,7 @@
"npm-run-all": "latest" "npm-run-all": "latest"
}, },
"dependencies":{ "dependencies":{
"@babel/core": "7.6.4" "@babel/core": "csx"
}, },
"scripts": { "scripts": {
"build": "rollup -c", "build": "rollup -c",

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@ Thus removing the need for the clumsy setState({...}) method, which is now inste
### Installation ### Installation
``` ```
npm install @cerxes/csx --save-dev --registry http://npm.cerxes.net npm install @cerxes/csx --save-dev --registry https://npm.cerxes.net
``` ```
### Configure ### Configure

View File

@ -9,23 +9,23 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@babel/cli": "latest", "@babel/cli": "csx",
"@babel/core": "^7.7.2", "@babel/core": "csx",
"@babel/plugin-proposal-class-properties": "latest", "@babel/plugin-proposal-class-properties": "csx",
"@babel/plugin-proposal-decorators": "latest", "@babel/plugin-proposal-decorators": "csx",
"@babel/plugin-proposal-export-default-from": "latest", "@babel/plugin-proposal-export-default-from": "csx",
"@babel/plugin-proposal-export-namespace-from": "latest", "@babel/plugin-proposal-export-namespace-from": "csx",
"@babel/plugin-proposal-nullish-coalescing-operator": "latest", "@babel/plugin-proposal-nullish-coalescing-operator": "csx",
"@babel/plugin-proposal-optional-chaining": "latest", "@babel/plugin-proposal-optional-chaining": "csx",
"@babel/plugin-proposal-private-methods": "latest", "@babel/plugin-proposal-private-methods": "csx",
"@babel/preset-env": "latest", "@babel/preset-env": "csx",
"jsdoc": "latest", "jsdoc": "latest",
"rollup": "latest", "rollup": "1.25.0",
"rollup-plugin-babel": "latest", "rollup-plugin-babel": "4.3.3-csx",
"rollup-plugin-node-resolve": "latest", "rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-commonjs": "latest", "rollup-plugin-terser": "5.1.2",
"rollup-plugin-terser": "latest", "rollup-plugin-json": "4.0.0",
"rollup-plugin-json": "latest", "acorn-private-class-elements": "0.1.2",
"npm-run-all": "latest" "npm-run-all": "latest"
}, },
"scripts": { "scripts": {

View File

@ -3,7 +3,6 @@ import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs'; import commonjs from 'rollup-plugin-commonjs';
import { terser } from 'rollup-plugin-terser'; import { terser } from 'rollup-plugin-terser';
import json from "rollup-plugin-json"; import json from "rollup-plugin-json";
// `npm run build` -> `production` is true // `npm run build` -> `production` is true
// `npm run dev` -> `production` is false // `npm run dev` -> `production` is false
const production = !process.env.ROLLUP_WATCH; const production = !process.env.ROLLUP_WATCH;
@ -20,8 +19,6 @@ export default {
babel(), // babel (the reason we're doing all of this, babel transpiling) 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) 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 production && terser() // minify, but only in production
], ],
external: [ external: [

File diff suppressed because it is too large Load Diff

2144
yarn.lock

File diff suppressed because it is too large Load Diff