-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9447449
commit 65e36f2
Showing
74 changed files
with
14,235 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
.vscode | ||
coverage | ||
package-lock.json | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# xw-scroll | ||
# magic-scroll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.