-
Notifications
You must be signed in to change notification settings - Fork 0
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
422cabc
commit 00076b9
Showing
18 changed files
with
3,043 additions
and
4,917 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules/ | ||
dist/ | ||
build/ |
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 @@ | ||
{ | ||
"extends": "@magloft/eslint-config", | ||
"globals": { "MagloftApi": "readonly" }, | ||
"parserOptions": { "project": "./tsconfig.json" } | ||
} |
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
.DS_Store | ||
/node_modules/* | ||
dist/easy-parallax.js | ||
node_modules | ||
build |
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,4 +1,8 @@ | ||
.eslintignore | ||
.eslintrc.json | ||
dist/index.html | ||
webpack.config.js | ||
.eslintrc | ||
index.html | ||
rollup.config.js | ||
tsconfig.json | ||
.vscode/ | ||
src/ | ||
*.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,29 @@ | ||
{ | ||
"editor.rulers": [80], | ||
"editor.tabCompletion": "on", | ||
"editor.tabSize": 2, | ||
"editor.trimAutoWhitespace": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true, | ||
"source.fixAll.eslint": true | ||
}, | ||
"files.exclude": { | ||
"**/.DS_Store": true, | ||
"**/.git": true, | ||
"**/node_modules": true, | ||
"**/build": true | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, | ||
"typescript.preferences.quoteStyle": "single", | ||
"eslint.run": "onType", | ||
"eslint.nodePath": "./node_modules", | ||
"eslint.validate": ["javascript", "typescript"], | ||
"typescript.format.semicolons": "remove", | ||
"json.format.enable": false, | ||
"html.format.enable": false, | ||
"scss.format.enable": false | ||
} |
This file was deleted.
Oops, something went wrong.
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,36 +1,21 @@ | ||
{ | ||
"name": "easy-parallax", | ||
"version": "3.0.0", | ||
"main": "dist/easy-parallax.js", | ||
"types": "dist/easy-parallax.d.ts", | ||
"version": "4.0.0", | ||
"author": "Tobias Strebitzer <tobias.strebitzer@magloft.com>", | ||
"license": "MIT", | ||
"types": "build/cjs/index.d.ts", | ||
"main": "build/cjs/index.js", | ||
"module": "build/esm/index.js", | ||
"scripts": { | ||
"watch": "webpack --config webpack.config.js --mode=development --watch", | ||
"serve": "webpack-dev-server -d --config webpack.config.js --mode=development", | ||
"dev": "webpack --config webpack.config.js -d --watch", | ||
"prepack": "webpack --config webpack.config.js --mode=production", | ||
"postpack": "rm dist/easy-parallax.js" | ||
"clean": "rimraf build", | ||
"build": "rollup -c", | ||
"watch": "yarn build --watch", | ||
"prepack": "yarn clean && yarn build", | ||
"lint": "eslint 'src/**/*.ts'" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.5.4", | ||
"@babel/plugin-external-helpers": "^7.2.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-transform-runtime": "^7.5.0", | ||
"@babel/preset-env": "^7.5.4", | ||
"babel-loader": "^8.0.6", | ||
"eslint": "^4.17.0", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.6.1", | ||
"sass-loader": "^7.1.0", | ||
"uglifyjs-webpack-plugin": "^2.0.1", | ||
"webpack": "^4.20.2", | ||
"webpack-cli": "^3.1.0", | ||
"webpack-dev-server": "^3.1.8" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.5.5" | ||
"@magloft/eslint-config": "~1.0.10", | ||
"@magloft/devkit-core": "~1.0.10", | ||
"@magloft/devkit-rollup": "~1.0.10" | ||
} | ||
} |
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,26 @@ | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import json from '@rollup/plugin-json' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import typescript from '@rollup/plugin-typescript' | ||
import external from 'rollup-plugin-peer-deps-external' | ||
import postcss from 'rollup-plugin-postcss' | ||
import { terser } from 'rollup-plugin-terser' | ||
|
||
const packageJson = require('./package.json') | ||
|
||
export default { | ||
input: './src/index.ts', | ||
output: [ | ||
{ file: packageJson.main, format: 'cjs', sourcemap: true, name: 'easy-parallax', inlineDynamicImports: true }, | ||
{ file: packageJson.module, format: 'esm', sourcemap: true, inlineDynamicImports: true } | ||
], | ||
plugins: [ | ||
external(), | ||
resolve(), | ||
commonjs(), | ||
json(), | ||
typescript(), | ||
postcss({ modules: true, inject: false, extract: true }), | ||
terser() | ||
] | ||
} |
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
Oops, something went wrong.