Skip to content

Commit

Permalink
Merge 14422a4 into 5b6bd02
Browse files Browse the repository at this point in the history
  • Loading branch information
jbadan committed Oct 25, 2019
2 parents 5b6bd02 + 14422a4 commit 5688d40
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 35 deletions.
12 changes: 4 additions & 8 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');

const defaultPresets = [
'@babel/preset-react',
[
'@babel/preset-env',
{
Expand All @@ -13,10 +12,12 @@ const defaultPresets = [
const defaultPlugins = [
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-object-assign'
];

const productionPlugins = [
'babel-plugin-transform-react-constant-elements',
[
'transform-react-remove-prop-types',
{
Expand All @@ -27,15 +28,10 @@ const productionPlugins = [
];

module.exports = {
presets: defaultPresets,
presets: defaultPresets.concat(['@babel/preset-react']),
plugins: defaultPlugins,
env: {
production: {
presets: [
[
'@babel/preset-env'
]
],
cjs: {
plugins: productionPlugins
}
}
Expand Down
6 changes: 1 addition & 5 deletions ci-scripts/publish-rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ npm run std-version -- --prerelease rc --no-verify

git push --follow-tags "https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG" "$TRAVIS_BRANCH" > /dev/null 2>&1;

npm run build:copy-files

cd lib

npm publish --tag prerelease
npm publish lib --tag prerelease
8 changes: 1 addition & 7 deletions ci-scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ echo "$std_ver"

git push --follow-tags "https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG" master > /dev/null 2>&1;

npm run build:copy-files

cd lib

npm publish

cd ..
npm publish lib

# run this after publish to make sure GitHub finishes updating from the push
npm run release:create -- --repo $TRAVIS_REPO_SLUG --tag $release_tag --branch master
Expand Down
94 changes: 88 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@
"url": "https://github.com/SAP/fundamental-react"
},
"scripts": {
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
"build-doc:netlify": "npm run build && NETLIFY=true npm run build-doc",
"build-doc": "node scripts/build.js && cp build/index.html build/404.html",
"build-js": "node scripts/build.js",
"build:copy-files": "cp -rf package.json README.md NOTICE.txt LICENSE.txt CHANGELOG.md lib",
"build:index": "babel-node devtools/buildIndexFiles.js",
"build:lint:fix": "npm run build:lint -- --fix",
"build:lint": "eslint 'src/**' --ext .js,.jsx --env browser,node",
"build": "npm run build:index && rm -rf lib && NODE_ENV=production babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\",\"src/**/*.Component.js\",\"src/_playground/*\",\"src/**/*.stories.js\"",
"config:lint:fix": "npm run config:lint -- --fix",
"build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel src --out-dir lib --ignore \"src/**/*.spec.js\",\"src/**/*.test.js\",\"src/**/*.Component.js\",\"src/_playground/*\",\"src/**/*.stories.js\"",
"build": "npm run build:index && rm -rf lib && npm run build:cjs && npm run build:copy-files",
"config:lint": "eslint 'config/**' --ext .js,.jsx --env browser,node",
"deploy": "gh-pages -d build",
"devtools:lint": "eslint 'devtools/**' --ext .js,.jsx --env browser,node",
"docs:dev": "FUNDAMENTAL_REACT_PLAYGROUND=true npm start",
"dry-run": "npm run build && npm publish --dry-run",
"dry-run": "npm run build && npm publish lib --dry-run",
"lint:fix": "npm run build:lint:fix && npm run scripts:lint:fix && npm run config:lint:fix",
"lint:pre-commit": "printf \"running pre-commit lint...\" && npm run lint && printf \"done!\n\"",
"lint": "npm run build:lint && npm run scripts:lint && npm run config:lint && npm run devtools:lint && npm run style:lint",
Expand All @@ -49,14 +47,15 @@
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive"
},
"dependencies": {
"@babel/runtime": "^7.6.3",
"chain-function": "^1.0.1",
"classnames": "^2.2.6",
"react-focus-lock": "^2.1.1",
"fundamental-styles": "~0.3.0-rc.4",
"hoist-non-react-statics": "^3.3.0",
"keycode": "^2.2.0",
"prop-types": "^15.7.1",
"react-foco": "^1.3.0",
"react-focus-lock": "^2.1.1",
"react-overlays": "^1.1.2",
"react-popper": "^1.3.3",
"shortid": "^2.2.14"
Expand All @@ -68,6 +67,7 @@
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-object-rest-spread": "^7.3.1",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@storybook/addon-a11y": "^5.2.1",
Expand All @@ -81,13 +81,15 @@
"babel-jest": "^24.8.0",
"babel-loader": "8.0.6",
"babel-plugin-named-asset-import": "^0.3.2",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.23",
"babel-preset-react-app": "^9.0.0",
"bfj": "7.0.1",
"case-sensitive-paths-webpack-plugin": "2.2.0",
"chalk": "2.4.2",
"core-js": "^3.1.4",
"coveralls": "^3.0.2",
"cross-env": "^6.0.3",
"css-loader": "3.2.0",
"dotenv": "8.1.0",
"dotenv-expand": "5.1.0",
Expand Down Expand Up @@ -163,8 +165,5 @@
"not dead",
"not ie < 11",
"not op_mini all"
],
"files": [
"/lib"
]
}

0 comments on commit 5688d40

Please sign in to comment.