One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'dart:ui'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| /// | |
| /// Preferences related | |
| /// | |
| const String _storageKey = "MyApplication_"; |
| language: node_js | |
| node_js: | |
| - '6' | |
| # 缓存依赖,节省持续集成时间 | |
| cache: | |
| directories: | |
| - node_modules | |
| - themes |
| /* | |
| * ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js | |
| */ | |
| /* | |
| * ESLint 配置文件优先级: | |
| * .eslintrc.js(输出一个配置对象) | |
| * .eslintrc.yaml | |
| * .eslintrc.yml |
| { | |
| "extends": ["tslint-react"], | |
| "rulesDirectory": "./node_modules/tslint-microsoft-contrib", | |
| "rules": { | |
| "function-name": [ | |
| true, | |
| { | |
| "method-regex": "^[a-z][\\w\\d]+$", | |
| "private-method-regex": "^_[a-z][\\w\\d]+$", | |
| "protected-method-regex": "^[_]?[a-z][\\w\\d]+$", |
Source: http://chris.beams.io/posts/git-commit/#seven-rules
| var debug = process.env.NODE_ENV !== "production"; | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| context: __dirname, | |
| devtool: debug ? "inline-sourcemap" : null, | |
| entry: "./js/scripts.js", | |
| output: { | |
| path: __dirname + "/js", | |
| filename: "scripts.min.js" |