chore: Add test, build task to npm

This commit is contained in:
1ambda 2016-11-19 17:05:21 +09:00
parent 314dcd8b45
commit 6568960571
4 changed files with 7 additions and 47 deletions

View file

@ -1,17 +0,0 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"node/node" "./node_modules/bower/bin/bower" "$@"

View file

@ -1,18 +0,0 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"node/node" "./node_modules/.bin/grunt" "$@"

View file

@ -2,6 +2,11 @@
"name": "zeppelin-web",
"license": "Apache-2.0",
"version": "0.0.0",
"scripts": {
"postinstall": "node_modules/.bin/bower install --allow-root install",
"build": "./node_modules/.bin/grunt build",
"test": "./node_modules/.bin/grunt test"
},
"dependencies": {
"grunt-angular-templates": "^0.5.7",
"grunt-dom-munger": "^3.4.0"

View file

@ -111,20 +111,10 @@
</goals>
</execution>
<execution>
<id>bower install</id>
<goals>
<goal>bower</goal>
</goals>
<configuration>
<arguments>--allow-root install</arguments>
</configuration>
</execution>
<execution>
<id>grunt build</id>
<goals>
<goal>grunt</goal>
<goal>npm</goal>
</goals>
<configuration>
<arguments>build</arguments>
@ -134,7 +124,7 @@
<execution>
<id>grunt test</id>
<goals>
<goal>grunt</goal>
<goal>npm</goal>
</goals>
<phase>test</phase>
<configuration>