Skip to content

Commit

Permalink
Improve build system (#878)
Browse files Browse the repository at this point in the history
* Added yarn.lock to .gitignore

to open a PR changes are required

* Added basic typescript infrastructure and moved switch to typescript

* Sync with Prettier

* Readded webpack build

* Set target to es2015 and removed webpack again

* Migrated MaterialComponent and set up tslint

* Let typescript transpile jsx syntax

* Added updated .ignores

* Added typescript parser for prettier

* Reverted parser change

* Excluding future build artifacts

* Added babel for transpiling

* Added babel options

* Fixed travis doc test to fail, if no failed images are generated

* Improved failing if compile failed

* Updated babel version

* Fixed compile fail detection

* Migrated Typography

* Migrated TopAppBar

* Migrated Toolbar

* Sync with Prettier

* Migrated TextField

* Migrated Tabs and added linting to test

* Migrated Snackbar and Slider

* Migrated Select

* Migrated Radio

* Migrated Menu and List

* Sync with Prettier

* Migrated LineRipple

* Migrated LinearProgress and LayoutGrid

* Migrated ImageList

* Migrated IconButton, IconToggle and Icon and added types for mwc

* Migrated GridList, FormField, Fab and Elevation

* Sync with Prettier

* Migrated Drawer, Dialog, Chips, Checkbox, Card and Button

* Fixed wrong references

* Fixed lint issues and readded webpack to build

* Fixed type issue with html elements

* Added autogeneration of /Component/index.d.ts and started using autobind for Component classes

* Excluded declarations from git and prettier

* Removed accidental autobind-decorator from docs

* Implemented autobind

* Fixed tslint style

* Added tslint fixer

* Fixed test script

* Sync with Prettier

* Remove still tracked js file

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed missing props and children

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Set typescript to strict mode

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed Select Page

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Sync with Prettier

* Fixed sample

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed sample

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Cleared TODOs

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed componentWillUnmount() for IconButton

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Integrated primary and secondary into MaterialComponent

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Sync with Prettier

* Revert "Integrated primary and secondary into MaterialComponent"

This reverts commit a5498b9

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Migrated primary and secondary back to Button and Fab

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed props in materialDom()

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed LinearProgress themeProp declaration

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Added disables to IconButtons mdcProps

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed /index in import

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed /index in import in .js files

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed IconButton props

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed type for onChange

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed props and added TODOs for mismatching ones

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* removing sample

* fixing a few props

* bumping version

* dont compile sample

* fixing select

* fixing tests

* Fixed types.d.ts not in generated output and switched from this.base to this.control in Select and Switch
Fixes #918

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Fixed TextFieldProps becase TextField is not a MDComponent

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Letting babel only run once

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Added babel runtime

Signed-off-by: Cromefire_ <cromefirehd@gmail.com>

* Updated .ignore Files

Signed-off-by: Cromefire_ <tim.l@nghorst.net>

* Excluded .babelrc, .prettierignore and .eslintignore from npm package

Signed-off-by: Cromefire_ <tim.l@nghorst.net>
  • Loading branch information
Cromefire_ authored and prateekbh committed Aug 6, 2018
1 parent dc63c7d commit ecdc66e
Show file tree
Hide file tree
Showing 120 changed files with 8,480 additions and 8,662 deletions.
25 changes: 25 additions & 0 deletions .babelrc
@@ -0,0 +1,25 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 safari versions",
"last 2 ios versions",
"last 2 edge versions",
"Firefox ESR",
"ie 11"
]
}
}
]
],
"sourceMaps": "inline",
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-runtime"
]
}
193 changes: 191 additions & 2 deletions .eslintignore
@@ -1,2 +1,191 @@
/
/docs
# Created by .ignore support plugin (hsz.mobi)
### Windows template
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/
cmake-build-release/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests
### macOS template
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
ts/Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Linux template
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Exclude build artifacts
esm
*/*.js
*/*.js.map
*/*.d.ts
!/docs/prettier.config.js

package-lock.json
yarn.lock
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -54,3 +54,11 @@ jspm_packages

.DS_Store
.idea/
yarn.lock

# Exclude build artifacts
esm
*/*.js
*/*.js.map
*/*.d.ts
!/docs/prettier.config.js
7 changes: 6 additions & 1 deletion .npmignore
Expand Up @@ -45,4 +45,9 @@ webpack.config.js
copy-css.js
*.yml
.eslintrc
sample
tslint.json
prettier.config.js
CssMigrationWebpackPlugin.js
.babelrc
.prettierignore
.eslintignore

0 comments on commit ecdc66e

Please sign in to comment.