<commit_before>ATT - Auto Task Tool
====

ATT is a terminal tool for develop & deploy web project easier and faster.

Usage
----

```
att <plugin> <...args>
```

*att jshint */**/*.js  检查所有js文件
*att minify index.html  压缩html
*att minify icon.png  压缩png
*att minify app.js  压缩js
*att minify style.css  压缩css
*att datauri style.css  对css中的图片进行datauri编码

Plugins
----

*jslint
*jshint
*csslint
*minify
*datauri
*build

Build
----

```xml
<?xml version="1.0" encoding="utf-8"?>
<project name="att-project" description="att-project-description" default="clear" basedir=".">
	<property name="src" value="src"/>
	<property name="build" value="build"/>

	<target name="echo">
		<echo>hello, att</echo>
	</target>

	<target name="clear">
		<delete target="/your/file/or/dir/need/to/delete"/>
	</target>
	
	<target name="create">
	    <mkdir target="${build}"/>
	    <touch target="${build}/README"/>
	</target>
	<target name="minify">
		<concat to="${build}/combo.js" split="\r\n">
			<fileset>
				<include file="${src}/lib/mvc.js"/>
				<include file="${src}/js/model.js"/>
				<include file="${src}/js/view.js"/>
				<include file="${src}/js/controller.js"/>
				<include file="${src}/js/app.js"/>
			</fileset>
		</concat>
		<minify from="${build}/combo.js" to="${build}/combo-min.js"/>
	</target>

	<target name="ftp">
		<input name="ftp.password" label="ftp password:"/>
		<ftp host="your-ftp-host" username="root" password="${<PASSWORD>}" port="21" remotedir="/att">
			<upload>
				<fileset>
					<include file="${build}/combo-min.js"/>
				</fileset>
			</upload>
		</ftp>
	</target>

	<target name="deploy">
		<input name="mail.password" label="mail password:" type="password"/>
		<mail host="smtp.gmail.com" ssl="true" port="465" authentication="login"
			from="<EMAIL>" to="<EMAIL>"
			username="<EMAIL>" password="${<PASSWORD>}"  subject="att notification">
		<![CDATA[
		This is an email sent by att.
		]]>
	</target>

	<target name="build" depends="echo,clear,create,minify,ftp,notify">
	</target>
</project>
```

Licence
----

ATT is free to use under MIT license. 
<commit_msg>format README<commit_after>ATT - Auto Task Tool
====

ATT is a terminal tool for develop & deploy web project easier and faster.

Usage
----

```
att <plugin> <...args>
```

* att jshint */**/*.js  检查所有js文件
* att minify index.html  压缩html
* att minify icon.png  压缩png
* att minify app.js  压缩js
* att minify style.css  压缩css
* att datauri style.css  对css中的图片进行datauri编码

Plugins
----

* jslint
* jshint
* csslint
* minify
* datauri
* build

Build
----

```xml
<?xml version="1.0" encoding="utf-8"?>
<project name="att-project" description="att-project-description" default="clear" basedir=".">
	<property name="src" value="src"/>
	<property name="build" value="build"/>

	<target name="echo">
		<echo>hello, att</echo>
	</target>

	<target name="clear">
		<delete target="/your/file/or/dir/need/to/delete"/>
	</target>
	
	<target name="create">
	    <mkdir target="${build}"/>
	    <touch target="${build}/README"/>
	</target>
	<target name="minify">
		<concat to="${build}/combo.js" split="\r\n">
			<fileset>
				<include file="${src}/lib/mvc.js"/>
				<include file="${src}/js/model.js"/>
				<include file="${src}/js/view.js"/>
				<include file="${src}/js/controller.js"/>
				<include file="${src}/js/app.js"/>
			</fileset>
		</concat>
		<minify from="${build}/combo.js" to="${build}/combo-min.js"/>
	</target>

	<target name="ftp">
		<input name="ftp.password" label="ftp password:"/>
		<ftp host="your-ftp-host" username="root" password="${<PASSWORD>}" port="21" 
			remotedir="/att">
			<upload>
				<fileset>
					<include file="${build}/combo-min.js"/>
				</fileset>
			</upload>
		</ftp>
	</target>

	<target name="deploy">
		<input name="mail.password" label="mail password:" type="password"/>
		<mail host="smtp.gmail.com" ssl="true" port="465" authentication="login"
			from="<EMAIL>" to="<EMAIL>"
			username="<EMAIL>" password="${<PASSWORD>}"  subject="att notification">
		<![CDATA[
		This is an email sent by att.
		]]>
	</target>

	<target name="build" depends="echo,clear,create,minify,ftp,notify">
	</target>
</project>
```

Licence
----

ATT is free to use under MIT license. 

{'fraction_non_alphanumeric': 0.21548017200191114, 'fraction_numerical': 0.003822264691829909, 'mean_word_length': 3.9491725768321513, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 2, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3121475', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1527, 'n_words': 337}