Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Jul 10, 2018
0 parents commit 0b58f24
Show file tree
Hide file tree
Showing 36 changed files with 1,056 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"exclude": "node_modules/**",
"presets": [
["@babel/preset-env", { "modules": false }],
["@babel/preset-stage-0", { "decoratorsLegacy": true }],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends browserslist-config-trigen
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = tab
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROXY_API_URI=
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "trigen",
"env": {
"browser": true
}
}
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage
.nyc_output

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

# node-waf configuration
.lock-wscript

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

# Dependency directory
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# OS stuff
._*
.DS_Store

# Some caches
.*cache

# Compiled dist
lib
package
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-push": "npm test"
}
}
3 changes: 3 additions & 0 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": {}
}
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-trigen/scss"
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 - present, TrigenSoftware

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

# <%= pkg.name %>

<%= pkg.description %>

## Basic commands

Start development server:

```bash
yarn start # or
npm start
```

Build sources for production:

```bash
yarn build # or
npm run build
```

Lint sources:

```bash
yarn test # or
npm test
```<% if (gulpTasks.includes('storybook')) { %>
Start storybook:
```bash
yarn storybook # or
npm run storybook
```
Build storybook:
```bash
yarn build:storybook # or
npm run build:storybook # or
```<% } %>
> This project generated with [generator-trigen-frontend](https://www.npmjs.com/package/generator-trigen-frontend)
38 changes: 38 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testRegex": "/test/.*\\.spec\\.ts$",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!**/node_modules/**"
],
"coverageReporters": [
"lcovonly",
"text"
],
"globals": {
"ts-jest": {
"babelConfig": {
"presets": [
["env", {
"modules": false,
"targets": { "node": 6 }
}],
["stage-0"]
],
"plugins": [
"transform-runtime"
]
}
}
}
}
13 changes: 13 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "My App",
"short_name": "My App",
"description": "This is my application",
"dir": "auto",
"lang": "en-US",
"display": "standalone",
"orientation": "portrait",
"scope": "/",
"start_url": "/?homescreen=1",
"background_color": "#42c88a",
"theme_color": "#42c88a"
}
86 changes: 86 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"name": "trigen-frontend-boilerplate",
"version": "0.6.0",
"description": "Boilerplate for frontend development.",
"author": "dangreen",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/TrigenSoftware/flexis-redux.git"
},
"bugs": {
"url": "https://github.com/TrigenSoftware/flexis-redux/issues"
},
"scripts": {
"generateDocs": "typedoc ./src --out ./docs --excludeExternals --mode modules; touch docs/.nojekyll",
"checkDeps": "npm-check -s; exit 0",
"lint:styles": "stylelint 'src/**/*.css'",
"lint:scripts": "tslint -p . -t stylish 'src/**/*.{ts,tsx}'",
"lint": "npm run lint:styles && npm run lint:scripts",
"jest": "NODE_ENV=test jest -c jest.config.json",
"test": "npm run checkDeps && npm run lint && npm run jest",
"start": "NODE_ENV=development babel-node scripts/webpackDevServer",
"build": "NODE_ENV=production babel-node scripts/webpackBuild",
"serve": "NODE_ENV=production babel-node scripts/startServer"
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.49",
"@types/prop-types": "^15.5.3",
"@types/react": "16.4.2",
"prop-types": "^15.6.0",
"react": "^16.3.1",
"react-dom": "^16.3.1"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.52",
"@babel/core": "^7.0.0-beta.49",
"@babel/plugin-transform-runtime": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@babel/preset-react": "^7.0.0-beta.52",
"@babel/preset-stage-0": "^7.0.0-beta.49",
"@types/jest": "^23.1.3",
"autoprefixer": "^8.6.5",
"awesome-typescript-loader": "^4.0.0",
"browserslist-config-trigen": "^1.0.0",
"babel-core": "^6.23.1",
"babel-loader": "^8.0.0-beta",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-preset-env": "^1.1.8",
"babel-preset-react": "^6.23.0",
"babel-preset-stage-0": "^6.22.0",
"browser-sync": "^2.18.13",
"connect-history-api-fallback": "^1.5.0",
"dotenv": "^4.0.0",
"eslint": "^5.0.1",
"eslint-config-trigen": "^3.2.0",
"husky": "^1.0.0-rc.10",
"npm-check": "^5.7.1",
"postcss-reporter": "^5.0.0",
"http-proxy-middleware": "^0.17.4",
"immutability-helper": "^2.1.1",
"node-notifier": "*",
"react-hot-loader": "next",
"stylelint": "^9.3.0",
"stylelint-config-trigen": "^2.0.1",
"webpack": "^3.5.5",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.18.2",
"humps": "^2.0.1",
"loader-utils": "^1.1.0",
"svg-sprite-loader": "^3.2.3",
"svgo": "^0.7.2",
"svgo-loader": "^1.2.1",
"tslint": "^5.10.0",
"tslint-config-trigen": "^3.0.5",
"tslint-loader": "^3.6.0",
"typedoc": "^0.11.1",
"typescript": "2.9.1",
"service-worker-loader": "*",
"stylable-webpack-plugin": "*",
"postcss": "*",
"file-loader": "*",
"html-webpack-plugin": "*"
}
}
5 changes: 5 additions & 0 deletions scripts/configs/browserSync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

export default {
open: false,
notify: false
};
13 changes: 13 additions & 0 deletions scripts/configs/htmlmin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

export default {
removeComments: true,
collapseWhitespace: true,
collapseBooleanAttributes: true,
removeAttributeQuotes: true,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
minifyJS: true
};
Loading

0 comments on commit 0b58f24

Please sign in to comment.