Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Jan 15, 2019
1 parent 9447449 commit 65e36f2
Show file tree
Hide file tree
Showing 74 changed files with 14,235 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.vscode
coverage
package-lock.json
yarn-error.log
20 changes: 20 additions & 0 deletions .jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
coverageReporters: ['lcov'],
collectCoverageFrom: [
'**/*.{ts,tsx}',
'!**/node_modules/**',
'!**/third-party/**'
],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
'.*\\.(css|less|scss)$': 'identity-obj-proxy'
},
transform: {
'^.+\\.jsx?$': 'babel7-jest',
'^.+\\.tsx?$': 'ts-jest'
},
setupFiles: ['<rootDir>/node_modules/regenerator-runtime/runtime'],
setupTestFrameworkScriptFile: '<rootDir>/setupTest.js',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
};
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018
Copyright (c) 2018 wangyi7099(Yi Wang)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# xw-scroll
# magic-scroll
1 change: 1 addition & 0 deletions __mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
1 change: 1 addition & 0 deletions __mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
28 changes: 28 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false
}
],
'@babel/preset-react'
],
env: {
build: {
plugins: ['external-helpers']
},
test: {
presets: [
[
'@babel/preset-env',
{
modules: 'commonjs',
debug: false
}
],
'@babel/preset-react'
]
}
}
};
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"lerna": "3.4.3",
"npmClient": "cnpm",
"useWorkspaces": true,
"version": "0.0.0"
}
68 changes: 68 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"private": true,
"workspaces": [
"packages/*"
],
"dependencies": {
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"@types/prop-types": "^15.5.3",
"@types/react": "^16.3.16",
"@types/react-dom": "^16.0.5",
"babel-cli": "^6.26.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.5",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-react": "^6.24.1",
"babel7-jest": "^1.0.1",
"chokidar": "^2.0.4",
"codecov": "^3.0.0",
"cross-env": "^5.1.5",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"identity-obj-proxy": "^3.0.0",
"inquirer": "^6.2.0",
"jest": "^23.6.0",
"lerna": "^3.4.3",
"react-test-renderer": "^16.6.1",
"rollup": "^0.55.1",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-postcss": "^1.6.3",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-scss": "^0.4.0",
"rollup-plugin-typescript": "^0.8.1",
"rollup-plugin-uglify": "^4.0.0",
"ts-jest": "^23.10.5",
"ts-loader": "^4.3.1",
"tslint": "5.10.0",
"typescript": "^2.9.1",
"uglify-es": "^3.3.9",
"webpack": "^4.0.0",
"webpack-cli": "^3.0.1",
"zlib": "^1.0.5"
},
"author": "Yves Wang",
"license": "MIT",
"repository": "",
"devEngines": {
"node": "8.x || 9.x"
},
"scripts": {
"build": "cross-env BABEL_ENV=build node scripts/build.js",
"debug-build": "cross-env BABEL_ENV=build node scripts/auto-build.js",
"demo": "cross-env NODE_ENV=development node ./packages/magic-scroll-demo/server.js",
"release": "node scripts/release.js",
"test": "jest --config .jest.js"
}
}
Loading

0 comments on commit 65e36f2

Please sign in to comment.