diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..1c6340a8e --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +/node-modules +/scripts +/src +/config +/ci-scripts \ No newline at end of file diff --git a/package.json b/package.json index bf1d06c44..11b6c440a 100644 --- a/package.json +++ b/package.json @@ -1,154 +1,154 @@ { - "name": "fundamental-react", - "version": "0.0.6-beta", - "private": false, - "license": "Apache-2.0", - "homepage": "http://sap.github.io/fundamental-react", - "repository": { - "type": "git", - "url": "http://sap.github.io/fundamental-react" - }, - "scripts": { - "build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", - "build-doc": "node scripts/build.js", - "build-js": "node scripts/build.js", - "build:lint:fix": "eslint --fix 'src/**' --ext .js,.jsx --env browser,node", - "build:lint": "eslint 'src/**' --ext .js,.jsx --env browser,node", - "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__,Component.js", - "deploy": "gh-pages -d build", - "lint:fix": "npm run build:lint:fix", - "lint:pre-commit": "printf \"running pre-commit lint...\" && npm run lint && printf \"done!\n\"", - "lint": "npm run build:lint", - "predeploy": "npm run build", - "start-js": "node scripts/start.js", - "start": "node scripts/start.js", - "test:coverage": "jest --coverage", - "test:dev": "jest", - "test": "node scripts/test.js", - "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive" - }, - "dependencies": { - "@babel/core": "7.1.0", - "@svgr/webpack": "2.4.1", - "babel-core": "7.0.0-bridge.0", - "babel-eslint": "9.0.0", - "babel-jest": "23.6.0", - "babel-loader": "8.0.4", - "babel-plugin-named-asset-import": "^0.2.3", - "babel-preset-react-app": "^6.1.0", - "bfj": "6.1.1", - "case-sensitive-paths-webpack-plugin": "2.1.2", - "chalk": "2.4.1", - "css-loader": "1.0.0", - "dotenv": "6.0.0", - "dotenv-expand": "4.2.0", - "eslint": "5.6.0", - "eslint-config-react-app": "^3.0.5", - "eslint-loader": "2.1.1", - "eslint-plugin-flowtype": "2.50.1", - "eslint-plugin-import": "2.14.0", - "eslint-plugin-jsx-a11y": "6.1.2", - "eslint-plugin-loosely-restrict-imports": "^0.1.15", - "eslint-plugin-react": "7.11.1", - "file-loader": "2.0.0", - "fork-ts-checker-webpack-plugin-alt": "0.4.14", - "fs-extra": "7.0.0", - "html-webpack-plugin": "4.0.0-alpha.2", - "identity-obj-proxy": "3.0.0", - "mini-css-extract-plugin": "0.4.3", - "node-sass-chokidar": "^1.3.4", - "npm-run-all": "^4.1.5", - "optimize-css-assets-webpack-plugin": "5.0.1", - "pnp-webpack-plugin": "1.1.0", - "postcss-flexbugs-fixes": "4.1.0", - "postcss-loader": "3.0.0", - "postcss-preset-env": "6.0.6", - "postcss-safe-parser": "4.0.1", - "react-app-polyfill": "^0.1.3", - "react-dev-utils": "^6.1.1", - "react-router": "^4.3.1", - "react-router-dom": "^4.3.1", - "react-syntax-highlighter": "^9.0.1", - "resolve": "1.8.1", - "sass-loader": "7.1.0", - "style-loader": "0.23.0", - "terser-webpack-plugin": "1.1.0", - "url-loader": "1.1.1", - "webpack": "4.19.1", - "webpack-dev-server": "3.1.14", - "webpack-manifest-plugin": "2.0.4", - "workbox-webpack-plugin": "3.6.3" - }, - "devDependencies": { - "@babel/cli": "^7.1.5", - "@babel/polyfill": "^7.1.5", - "enzyme-adapter-react-16": "^1.7.0", - "enzyme": "^3.7.0", - "eslint-plugin-ie11": "^1.0.0", - "fiori-fundamentals": "^1.4.0", - "gh-pages": "^2.0.1", - "jest-pnp-resolver": "1.0.1", - "jest-resolve": "23.6.0", - "jest": "23.6.0", - "pre-commit": "^1.2.2", - "react-dom": "^16.6.3", - "react-test-renderer": "^16.6.3", - "react": "^16.6.3" - }, - "pre-commit": { - "colors": true, - "run": [ - "lint:pre-commit" - ], - "silent": false - }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ], - "jest": { - "collectCoverageFrom": [ - "src/**/*.{js,jsx,ts,tsx}", - "!src/{App,Routes,index,registerServiceWorker}.js", - "!src/**/*.Component.js", - "!src/documentation/**" - ], - "resolver": "jest-pnp-resolver", - "setupFiles": [ - "react-app-polyfill/jsdom" - ], - "testMatch": [ - "/src/**/__tests__/**/*.{js,jsx,ts,tsx}", - "/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" - ], - "testEnvironment": "jsdom", - "testURL": "http://localhost", - "transform": { - "^.+\\.(js|jsx|ts|tsx)$": "/node_modules/babel-jest", - "^.+\\.css$": "/config/jest/cssTransform.js", - "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "/config/jest/fileTransform.js" + "name": "fundamental-react", + "version": "0.0.11-beta", + "private": false, + "license": "Apache-2.0", + "homepage": "http://sap.github.io/fundamental-react", + "repository": { + "type": "git", + "url": "http://sap.github.io/fundamental-react" }, - "transformIgnorePatterns": [ - "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", - "^.+\\.module\\.(css|sass|scss)$" - ], - "moduleNameMapper": { - "^react-native$": "react-native-web", - "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" + "scripts": { + "build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", + "build-doc": "node scripts/build.js", + "build-js": "node scripts/build.js", + "build:lint:fix": "eslint --fix 'src/**' --ext .js,.jsx --env browser,node", + "build:lint": "eslint 'src/**' --ext .js,.jsx --env browser,node", + "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__,Component.js", + "deploy": "gh-pages -d build", + "lint:fix": "npm run build:lint:fix", + "lint:pre-commit": "printf \"running pre-commit lint...\" && npm run lint && printf \"done!\n\"", + "lint": "npm run build:lint", + "predeploy": "npm run build", + "start-js": "node scripts/start.js", + "start": "node scripts/start.js", + "test:coverage": "jest --coverage", + "test:dev": "jest", + "test": "node scripts/test.js", + "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive" }, - "moduleFileExtensions": [ - "web.js", - "js", - "web.ts", - "ts", - "web.tsx", - "tsx", - "json", - "web.jsx", - "jsx", - "node" - ] - } + "dependencies": { + "@babel/core": "7.1.0", + "@svgr/webpack": "2.4.1", + "babel-core": "7.0.0-bridge.0", + "babel-eslint": "9.0.0", + "babel-jest": "23.6.0", + "babel-loader": "8.0.4", + "babel-plugin-named-asset-import": "^0.2.3", + "babel-preset-react-app": "^6.1.0", + "bfj": "6.1.1", + "case-sensitive-paths-webpack-plugin": "2.1.2", + "chalk": "2.4.1", + "css-loader": "1.0.0", + "dotenv": "6.0.0", + "dotenv-expand": "4.2.0", + "eslint": "5.6.0", + "eslint-config-react-app": "^3.0.5", + "eslint-loader": "2.1.1", + "eslint-plugin-flowtype": "2.50.1", + "eslint-plugin-import": "2.14.0", + "eslint-plugin-jsx-a11y": "6.1.2", + "eslint-plugin-loosely-restrict-imports": "^0.1.15", + "eslint-plugin-react": "7.11.1", + "file-loader": "2.0.0", + "fork-ts-checker-webpack-plugin-alt": "0.4.14", + "fs-extra": "7.0.0", + "html-webpack-plugin": "4.0.0-alpha.2", + "identity-obj-proxy": "3.0.0", + "mini-css-extract-plugin": "0.4.3", + "node-sass-chokidar": "^1.3.4", + "npm-run-all": "^4.1.5", + "optimize-css-assets-webpack-plugin": "5.0.1", + "pnp-webpack-plugin": "1.1.0", + "postcss-flexbugs-fixes": "4.1.0", + "postcss-loader": "3.0.0", + "postcss-preset-env": "6.0.6", + "postcss-safe-parser": "4.0.1", + "react-app-polyfill": "^0.1.3", + "react-dev-utils": "^6.1.1", + "react-router": "^4.3.1", + "react-router-dom": "^4.3.1", + "react-syntax-highlighter": "^9.0.1", + "resolve": "1.8.1", + "sass-loader": "7.1.0", + "style-loader": "0.23.0", + "terser-webpack-plugin": "1.1.0", + "url-loader": "1.1.1", + "webpack": "4.19.1", + "webpack-dev-server": "3.1.14", + "webpack-manifest-plugin": "2.0.4", + "workbox-webpack-plugin": "3.6.3" + }, + "devDependencies": { + "@babel/cli": "^7.1.5", + "@babel/polyfill": "^7.1.5", + "enzyme-adapter-react-16": "^1.7.0", + "enzyme": "^3.7.0", + "eslint-plugin-ie11": "^1.0.0", + "fiori-fundamentals": "^1.4.0", + "gh-pages": "^2.0.1", + "jest-pnp-resolver": "1.0.1", + "jest-resolve": "23.6.0", + "jest": "23.6.0", + "pre-commit": "^1.2.2", + "react-dom": "^16.6.3", + "react-test-renderer": "^16.6.3", + "react": "^16.6.3" + }, + "pre-commit": { + "colors": true, + "run": [ + "lint:pre-commit" + ], + "silent": false + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ], + "jest": { + "collectCoverageFrom": [ + "src/**/*.{js,jsx,ts,tsx}", + "!src/{App,Routes,index,registerServiceWorker}.js", + "!src/**/*.Component.js", + "!src/documentation/**" + ], + "resolver": "jest-pnp-resolver", + "setupFiles": [ + "react-app-polyfill/jsdom" + ], + "testMatch": [ + "/src/**/__tests__/**/*.{js,jsx,ts,tsx}", + "/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" + ], + "testEnvironment": "jsdom", + "testURL": "http://localhost", + "transform": { + "^.+\\.(js|jsx|ts|tsx)$": "/node_modules/babel-jest", + "^.+\\.css$": "/config/jest/cssTransform.js", + "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "/config/jest/fileTransform.js" + }, + "transformIgnorePatterns": [ + "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", + "^.+\\.module\\.(css|sass|scss)$" + ], + "moduleNameMapper": { + "^react-native$": "react-native-web", + "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" + }, + "moduleFileExtensions": [ + "web.js", + "js", + "web.ts", + "ts", + "web.tsx", + "tsx", + "json", + "web.jsx", + "jsx", + "node" + ] + } }