Update to ember-cli 2.7.0
This commit is contained in:
parent
a05a92736c
commit
7ae94e1e31
10 changed files with 88 additions and 52 deletions
|
@ -27,6 +27,6 @@
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"white": false,
|
"white": false,
|
||||||
"eqnull": true,
|
"eqnull": true,
|
||||||
"esnext": true,
|
"esversion": 6,
|
||||||
"unused": true
|
"unused": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,9 @@ cache:
|
||||||
before_install:
|
before_install:
|
||||||
- npm config set spin false
|
- npm config set spin false
|
||||||
- npm install -g bower
|
- npm install -g bower
|
||||||
|
- bower --version
|
||||||
- npm install phantomjs-prebuilt
|
- npm install phantomjs-prebuilt
|
||||||
|
- phantomjs --version
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
59
gui/Makefile
Normal file
59
gui/Makefile
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
# Copyright © 2016 Abcum Ltd
|
||||||
|
#
|
||||||
|
# Licensed 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.
|
||||||
|
|
||||||
|
GO ?= go
|
||||||
|
LDF :=
|
||||||
|
|
||||||
|
# The `make default` command cleans
|
||||||
|
# the go build and test files and
|
||||||
|
# then runs a build and install.
|
||||||
|
|
||||||
|
.PHONY: default
|
||||||
|
default:
|
||||||
|
@echo "Choose a Makefile target:"
|
||||||
|
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
|
||||||
|
|
||||||
|
# The `make setup` command installs
|
||||||
|
# the 3rd party dependencies needed
|
||||||
|
# to run this package.
|
||||||
|
|
||||||
|
.PHONY: setup
|
||||||
|
setup:
|
||||||
|
@echo "Setup..."
|
||||||
|
npm install -g bower
|
||||||
|
npm install -g ember-cli@2.7.0
|
||||||
|
|
||||||
|
# The `make install` command installs
|
||||||
|
# the 3rd party dependencies needed
|
||||||
|
# to run this package.
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install:
|
||||||
|
@echo "Installing..."
|
||||||
|
npm cache clean && bower cache clean
|
||||||
|
rm -rf node_modules bower_components dist tmp
|
||||||
|
npm install && bower install
|
||||||
|
|
||||||
|
# The `make upgrade` command updates
|
||||||
|
# ember-cli and runs the ember-cli
|
||||||
|
# init command.
|
||||||
|
|
||||||
|
.PHONY: upgrade
|
||||||
|
upgrade:
|
||||||
|
@echo "Upgrading..."
|
||||||
|
npm cache clean && bower cache clean
|
||||||
|
rm -rf node_modules bower_components dist tmp
|
||||||
|
npm install --save-dev ember-cli@2.7.0
|
||||||
|
npm install && bower install
|
||||||
|
ember init
|
|
@ -2,36 +2,11 @@
|
||||||
|
|
||||||
The web gui for Surreal built using ember.js.
|
The web gui for Surreal built using ember.js.
|
||||||
|
|
||||||
[![](https://img.shields.io/circleci/token/adb5ca379a334a4011fa894275c312fe35833d6d/project/abcum/surreal/master.svg?style=flat-square)](https://circleci.com/gh/abcum/surreal) [![](https://img.shields.io/badge/ember--cli-2.6.3-orange.svg?style=flat-square)](https://github.com/abcum/surreal) [![](https://img.shields.io/badge/license-Commercial-00bfff.svg?style=flat-square)](https://github.com/abcum/surreal)
|
[![](https://img.shields.io/circleci/token/adb5ca379a334a4011fa894275c312fe35833d6d/project/abcum/surreal/master.svg?style=flat-square)](https://circleci.com/gh/abcum/surreal) [![](https://img.shields.io/badge/ember--cli-2.7.0-orange.svg?style=flat-square)](https://github.com/abcum/surreal) [![](https://img.shields.io/badge/license-Commercial-00bfff.svg?style=flat-square)](https://github.com/abcum/surreal)
|
||||||
|
|
||||||
#### Setup
|
## Development
|
||||||
|
|
||||||
- Install node - `brew install node`
|
- `make setup` (install bower and ember-cli)
|
||||||
- Install bower - `npm install -g bower`
|
- `make install` (install bower and ember-cli dependencies)
|
||||||
- Install ember-cli - `npm install -g ember-cli@2.6.3`
|
- `make upgrade` (upgrade ember-cli to the specified version)
|
||||||
|
- `npm test` (run all tests defined in the package)
|
||||||
#### Installing
|
|
||||||
|
|
||||||
- Clean cache - `npm cache clean && bower cache clean`
|
|
||||||
- Clean build - `rm -rf node_modules bower_components dist tmp`
|
|
||||||
- Install application dependencies - `npm install && bower install`
|
|
||||||
|
|
||||||
#### Upgrading
|
|
||||||
|
|
||||||
- Clean cache - `npm cache clean && bower cache clean`
|
|
||||||
- Clean build - `rm -rf node_modules bower_components dist tmp`
|
|
||||||
- Upgrade project ember-cli `npm install --save-dev ember-cli@2.6.3`
|
|
||||||
- Install application dependencies - `npm install && bower install`
|
|
||||||
- Initialise ember - `ember init`
|
|
||||||
|
|
||||||
#### Development
|
|
||||||
|
|
||||||
- Serve application - `ember serve`
|
|
||||||
|
|
||||||
#### Testing
|
|
||||||
|
|
||||||
- Initialise tests - `npm test`
|
|
||||||
|
|
||||||
#### Deployment
|
|
||||||
|
|
||||||
- Deploy production app by pushing to master branch on github.com
|
|
||||||
|
|
|
@ -9,16 +9,16 @@
|
||||||
|
|
||||||
{{content-for "head"}}
|
{{content-for "head"}}
|
||||||
|
|
||||||
<link rel="stylesheet" href="assets/vendor.css">
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||||
<link rel="stylesheet" href="assets/gui.css">
|
<link rel="stylesheet" href="{{rootURL}}assets/gui.css">
|
||||||
|
|
||||||
{{content-for "head-footer"}}
|
{{content-for "head-footer"}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{content-for "body"}}
|
{{content-for "body"}}
|
||||||
|
|
||||||
<script src="assets/vendor.js"></script>
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
<script src="assets/gui.js"></script>
|
<script src="{{rootURL}}assets/gui.js"></script>
|
||||||
|
|
||||||
{{content-for "body-footer"}}
|
{{content-for "body-footer"}}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -2,7 +2,8 @@ import Ember from 'ember';
|
||||||
import config from './config/environment';
|
import config from './config/environment';
|
||||||
|
|
||||||
const Router = Ember.Router.extend({
|
const Router = Ember.Router.extend({
|
||||||
location: config.locationType
|
location: config.locationType,
|
||||||
|
rootURL: config.rootURL
|
||||||
});
|
});
|
||||||
|
|
||||||
Router.map(function() {
|
Router.map(function() {
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "gui",
|
"name": "gui",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ember": "~2.6.0",
|
"ember": "~2.7.0",
|
||||||
"ember-cli-shims": "0.1.1",
|
"ember-cli-shims": "0.1.1",
|
||||||
"ember-cli-test-loader": "0.2.2",
|
|
||||||
"ember-qunit-notifications": "0.1.0"
|
"ember-qunit-notifications": "0.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"broccoli-asset-rev": "^2.4.2",
|
"broccoli-asset-rev": "^2.4.2",
|
||||||
"ember-ajax": "^2.0.1",
|
"ember-ajax": "^2.0.1",
|
||||||
"ember-cli": "2.6.3",
|
"ember-cli": "2.7.0",
|
||||||
"ember-cli-app-version": "^1.0.0",
|
"ember-cli-app-version": "^1.0.0",
|
||||||
"ember-cli-babel": "^5.1.6",
|
"ember-cli-babel": "^5.1.6",
|
||||||
"ember-cli-dependency-checker": "^1.2.0",
|
"ember-cli-dependency-checker": "^1.2.0",
|
||||||
|
@ -29,11 +29,12 @@
|
||||||
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
|
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
|
||||||
"ember-cli-inject-live-reload": "^1.4.0",
|
"ember-cli-inject-live-reload": "^1.4.0",
|
||||||
"ember-cli-jshint": "^1.0.0",
|
"ember-cli-jshint": "^1.0.0",
|
||||||
"ember-cli-qunit": "^1.4.0",
|
"ember-cli-qunit": "^2.0.0",
|
||||||
"ember-cli-release": "^0.2.9",
|
"ember-cli-release": "^0.2.9",
|
||||||
"ember-cli-sri": "^2.1.0",
|
"ember-cli-sri": "^2.1.0",
|
||||||
|
"ember-cli-test-loader": "^1.1.0",
|
||||||
"ember-cli-uglify": "^1.2.0",
|
"ember-cli-uglify": "^1.2.0",
|
||||||
"ember-data": "^2.6.0",
|
"ember-data": "^2.7.0",
|
||||||
"ember-export-application-global": "^1.0.5",
|
"ember-export-application-global": "^1.0.5",
|
||||||
"ember-load-initializers": "^0.5.1",
|
"ember-load-initializers": "^0.5.1",
|
||||||
"ember-resolver": "^2.0.3",
|
"ember-resolver": "^2.0.3",
|
||||||
|
|
|
@ -47,6 +47,6 @@
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"white": false,
|
"white": false,
|
||||||
"eqnull": true,
|
"eqnull": true,
|
||||||
"esnext": true,
|
"esversion": 6,
|
||||||
"unused": true
|
"unused": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
{{content-for "head"}}
|
{{content-for "head"}}
|
||||||
{{content-for "test-head"}}
|
{{content-for "test-head"}}
|
||||||
|
|
||||||
<link rel="stylesheet" href="assets/vendor.css">
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
||||||
<link rel="stylesheet" href="assets/gui.css">
|
<link rel="stylesheet" href="{{rootURL}}assets/gui.css">
|
||||||
<link rel="stylesheet" href="assets/test-support.css">
|
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
||||||
|
|
||||||
{{content-for "head-footer"}}
|
{{content-for "head-footer"}}
|
||||||
{{content-for "test-head-footer"}}
|
{{content-for "test-head-footer"}}
|
||||||
|
@ -21,12 +21,11 @@
|
||||||
{{content-for "body"}}
|
{{content-for "body"}}
|
||||||
{{content-for "test-body"}}
|
{{content-for "test-body"}}
|
||||||
|
|
||||||
<script src="testem.js" integrity=""></script>
|
<script src="{{rootURL}}testem.js" integrity=""></script>
|
||||||
<script src="assets/vendor.js"></script>
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
||||||
<script src="assets/test-support.js"></script>
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
||||||
<script src="assets/gui.js"></script>
|
<script src="{{rootURL}}assets/gui.js"></script>
|
||||||
<script src="assets/tests.js"></script>
|
<script src="{{rootURL}}assets/tests.js"></script>
|
||||||
<script src="assets/test-loader.js"></script>
|
|
||||||
|
|
||||||
{{content-for "body-footer"}}
|
{{content-for "body-footer"}}
|
||||||
{{content-for "test-body-footer"}}
|
{{content-for "test-body-footer"}}
|
||||||
|
|
Loading…
Reference in a new issue